|
| | Entity (Submarine submarine, ushort id) |
| |
| void | FreeID () |
| | Removes the entity from the entity dictionary and frees up the ID it was using.
|
| |
| virtual void | Remove () |
| |
|
| 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.
|
| |
| readonly string | CreationStackTrace |
| |
| readonly UInt64 | CreationIndex |
| |
◆ 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.
◆ 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
◆ FreeID()
| void Barotrauma.Entity.FreeID |
( |
| ) |
|
Removes the entity from the entity dictionary and frees up the ID it was using.
◆ 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.
◆ 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 |
Indetectable characters can't be spotted by AIs and aren't visible on the sonar or health scanner.
◆ 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 |
The documentation for this class was generated from the following file:
- /home/runner/work/Luatrauma.Docs/Luatrauma.Docs/libs/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/Map/Entity.cs