Table of Contents

Class InsectCoordinator

Namespace
Global
Assembly
Assembly-CSharp.dll
public class InsectCoordinator : UpdatableAndDeletable, Explosion.IReactToExplosions
Inheritance
InsectCoordinator
Implements
Inherited Members

Constructors

InsectCoordinator(Room)

public InsectCoordinator(Room room)

Parameters

room Room

Fields

allInsects

public List<CosmeticInsect> allInsects

Field Value

List<CosmeticInsect>

effects

public List<RoomSettings.RoomEffect> effects

Field Value

List<RoomSettings.RoomEffect>

swarms

public List<InsectCoordinator.Swarm> swarms

Field Value

List<InsectCoordinator.Swarm>

Methods

AddEffect(RoomEffect)

public void AddEffect(RoomSettings.RoomEffect roomEffect)

Parameters

roomEffect RoomSettings.RoomEffect

AddGroup(PlacedObject)

public void AddGroup(PlacedObject newpObj)

Parameters

newpObj PlacedObject

BringPosToGround(Vector2)

public Vector2 BringPosToGround(Vector2 pos)

Parameters

pos Vector2

Returns

Vector2

CreateInsect(Type, Vector2, Swarm)

public void CreateInsect(CosmeticInsect.Type type, Vector2 pos, InsectCoordinator.Swarm swarm)

Parameters

type CosmeticInsect.Type
pos Vector2
swarm InsectCoordinator.Swarm

EffectSpawnChanceForInsect(Type, Room, Vector2, float)

public static bool EffectSpawnChanceForInsect(CosmeticInsect.Type type, Room room, Vector2 testPos, float effectAmount)

Parameters

type CosmeticInsect.Type
room Room
testPos Vector2
effectAmount float

Returns

bool

Explosion(Explosion)

public void Explosion(Explosion explosion)

Parameters

explosion Explosion

NoLongerViewed()

public void NoLongerViewed()

NowViewed()

public void NowViewed()

RoomEffectToInsectType(Type)

public static CosmeticInsect.Type RoomEffectToInsectType(RoomSettings.RoomEffect.Type type)

Parameters

type RoomSettings.RoomEffect.Type

Returns

CosmeticInsect.Type

SpeciesDensity(Type)

public static float SpeciesDensity(CosmeticInsect.Type type)

Parameters

type CosmeticInsect.Type

Returns

float

SpeciesDensity(Type)

public static float SpeciesDensity(RoomSettings.RoomEffect.Type type)

Parameters

type RoomSettings.RoomEffect.Type

Returns

float

TileLegalForInsect(Type, Room, Vector2)

public static bool TileLegalForInsect(CosmeticInsect.Type type, Room room, Vector2 testPos)

Parameters

type CosmeticInsect.Type
room Room
testPos Vector2

Returns

bool