|
readonly ushort | ID |
| Unique, but non-persistent identifier. Stays the same if the entities are created in the exactly same order, but doesn't persist e.g. between the rounds. More...
|
|
readonly string | CreationStackTrace |
|
readonly UInt64 | CreationIndex |
|
Definition at line 12 of file Entity.cs.
◆ Entity()
Barotrauma.Entity.Entity |
( |
Submarine |
submarine, |
|
|
ushort |
id |
|
) |
| |
◆ DetermineID()
virtual ushort Barotrauma.Entity.DetermineID |
( |
ushort |
id, |
|
|
Submarine |
submarine |
|
) |
| |
|
protectedvirtual |
◆ DumpIds()
static void Barotrauma.Entity.DumpIds |
( |
int |
count, |
|
|
string |
filename |
|
) |
| |
|
static |
◆ FindEntityByID()
static Entity Barotrauma.Entity.FindEntityByID |
( |
ushort |
ID | ) |
|
|
static |
Find an entity based on the ID
Definition at line 201 of file Entity.cs.
◆ FindFreeIdBlock()
static int Barotrauma.Entity.FindFreeIdBlock |
( |
int |
minBlockSize | ) |
|
|
static |
Finds a contiguous block of free IDs of at least the given size
- Returns
- The first ID in the found block, or zero if none are found
Definition at line 177 of file Entity.cs.
◆ FreeID()
void Barotrauma.Entity.FreeID |
( |
| ) |
|
Removes the entity from the entity dictionary and frees up the ID it was using.
Definition at line 299 of file Entity.cs.
◆ GetEntities()
static IReadOnlyCollection<Entity> Barotrauma.Entity.GetEntities |
( |
| ) |
|
|
static |
◆ Remove()
virtual void Barotrauma.Entity.Remove |
( |
| ) |
|
|
virtual |
◆ RemoveAll()
static void Barotrauma.Entity.RemoveAll |
( |
| ) |
|
|
static |
◆ aiTarget
◆ CreationIndex
readonly UInt64 Barotrauma.Entity.CreationIndex |
◆ CreationStackTrace
readonly string Barotrauma.Entity.CreationStackTrace |
◆ DummyID
const ushort Barotrauma.Entity.DummyID = ushort.MaxValue - 2 |
|
static |
◆ EntitySpawnerID
const ushort Barotrauma.Entity.EntitySpawnerID = ushort.MaxValue |
|
static |
◆ ID
readonly ushort Barotrauma.Entity.ID |
Unique, but non-persistent identifier. Stays the same if the entities are created in the exactly same order, but doesn't persist e.g. between the rounds.
Definition at line 43 of file Entity.cs.
◆ MaxEntityCount
const ushort Barotrauma.Entity.MaxEntityCount = ushort.MaxValue - 4 |
|
static |
◆ NullEntityID
const ushort Barotrauma.Entity.NullEntityID = 0 |
|
static |
◆ ReservedIDStart
const ushort Barotrauma.Entity.ReservedIDStart = ushort.MaxValue - 3 |
|
static |
◆ RespawnManagerID
const ushort Barotrauma.Entity.RespawnManagerID = ushort.MaxValue - 1 |
|
static |
◆ Spawner
◆ AiTarget
◆ DrawPosition
virtual Vector2 Barotrauma.Entity.DrawPosition |
|
get |
◆ EntityCount
int Barotrauma.Entity.EntityCount |
|
staticget |
◆ ErrorLine
string Barotrauma.Entity.ErrorLine |
|
get |
◆ IdFreed
bool Barotrauma.Entity.IdFreed |
|
get |
◆ InDetectable
bool Barotrauma.Entity.InDetectable |
|
getset |
◆ Position
virtual Vector2 Barotrauma.Entity.Position |
|
get |
◆ Removed
bool Barotrauma.Entity.Removed |
|
get |
◆ SimPosition
virtual Vector2 Barotrauma.Entity.SimPosition |
|
get |
◆ SpawnTime
double Barotrauma.Entity.SpawnTime |
|
get |
◆ Submarine
◆ WorldPosition
virtual Vector2 Barotrauma.Entity.WorldPosition |
|
get |