Entity
Barotrauma Entity class with some additional functions and fields
Barotrauma source code: Entity.cs
Functions
Entity(submarine, id)
Entity
Parameters
-
submarine
Submarine
-
id
number
Entity.DumpIds(count, filename)
DumpIds
Parameters
-
count
number
-
filename
string
Entity.FindEntityByID(ID)
FindEntityByID
Parameters
-
ID
number
Returns
Entity.FindFreeIdBlock(minBlockSize)
FindFreeIdBlock
Parameters
-
minBlockSize
number
Returns
-
number
Entity.GetEntities()
GetEntities
Returns
-
IReadOnlyCollection
Entity.RemoveAll()
RemoveAll
Equals(obj)
Equals
Parameters
-
obj
Object
Returns
-
bool
FreeID()
FreeID
GetHashCode()
GetHashCode
Returns
-
number
GetType()
GetType
Returns
-
Type
Remove()
Remove
ToString()
ToString
Returns
Fields
AiTarget
AiTarget, field of type AITarget
-
AiTarget
CreationIndex
CreationIndex, field of type number
-
CreationIndex
CreationStackTrace
CreationStackTrace, field of type string
-
CreationStackTrace
DrawPosition
DrawPosition, field of type Microsoft.Xna.Framework.Vector2
-
DrawPosition
Entity.DummyID
Entity.DummyID, field of type number
Entity.EntityCount
Entity.EntityCount, field of type number
Entity.EntitySpawnerID
Entity.EntitySpawnerID, field of type number
Entity.MaxEntityCount
Entity.MaxEntityCount, field of type number
Entity.NullEntityID
Entity.NullEntityID, field of type number
Entity.ReservedIDStart
Entity.ReservedIDStart, field of type number
Entity.RespawnManagerID
Entity.RespawnManagerID, field of type number
Entity.Spawner
Entity.Spawner, field of type EntitySpawner
ErrorLine
ErrorLine, field of type string
-
ErrorLine
ID
ID, field of type number
-
ID
IdFreed
IdFreed, field of type bool
-
IdFreed
InDetectable
InDetectable, field of type bool
-
InDetectable
Position
Position, field of type Microsoft.Xna.Framework.Vector2
-
Position
Removed
Removed, field of type bool
-
Removed
SimPosition
SimPosition, field of type Microsoft.Xna.Framework.Vector2
-
SimPosition
SpawnTime
SpawnTime, field of type number
-
SpawnTime
Submarine
Submarine, field of type Submarine
-
Submarine
WorldPosition
WorldPosition, field of type Microsoft.Xna.Framework.Vector2
-
WorldPosition