Barotrauma Client Doc
|
Public Member Functions | |
LevelObjectManager () | |
void | PlaceObjects (Level level, int amount) |
void | PlaceNestObjects (Level level, Level.Cave cave, Vector2 nestPosition, float nestRadius, int objectAmount) |
IEnumerable< LevelObject > | GetAllObjects () |
IEnumerable< LevelObject > | GetAllObjects (Vector2 worldPosition, float radius) |
void | Update (float deltaTime) |
override void | Remove () |
void | ServerEventWrite (IWriteMessage msg, Client c, NetEntityEvent.IData extraData=null) |
IEnumerable< LevelObject > | GetVisibleObjects () |
void | DrawObjectsBack (SpriteBatch spriteBatch, Camera cam) |
Draw the objects behind the level walls More... | |
void | DrawObjectsMid (SpriteBatch spriteBatch, Camera cam) |
Draw the objects in front of the level walls, but behind characters More... | |
void | DrawObjectsFront (SpriteBatch spriteBatch, Camera cam) |
Draw the objects in front of the level walls and characters More... | |
void | ClientEventRead (IReadMessage msg, float sendingTime) |
Public Member Functions inherited from Barotrauma.Entity | |
Entity (Submarine submarine, ushort id) | |
void | FreeID () |
Removes the entity from the entity dictionary and frees up the ID it was using. More... | |
Static Public Member Functions | |
static Point | GetGridIndices (Vector2 worldPosition) |
Static Public Member Functions inherited from Barotrauma.Entity | |
static IReadOnlyCollection< Entity > | GetEntities () |
static int | FindFreeIdBlock (int minBlockSize) |
Finds a contiguous block of free IDs of at least the given size More... | |
static Entity | FindEntityByID (ushort ID) |
Find an entity based on the ID More... | |
static void | RemoveAll () |
static void | DumpIds (int count, string filename) |
Public Attributes | |
bool | ForceRefreshVisibleObjects |
Public Attributes inherited from Barotrauma.Entity | |
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 |
Properties | |
float | GlobalForceDecreaseTimer [get] |
Properties inherited from Barotrauma.Entity | |
static int | EntityCount [get] |
bool | Removed [get] |
bool | IdFreed [get] |
virtual Vector2 | SimPosition [get] |
virtual Vector2 | Position [get] |
virtual Vector2 | WorldPosition [get] |
virtual Vector2 | DrawPosition [get] |
Submarine | Submarine [get, set] |
AITarget | AiTarget [get] |
bool | InDetectable [get, set] |
double | SpawnTime [get] |
string | ErrorLine [get] |
Properties inherited from Barotrauma.ISpatialEntity | |
Vector2 | Position [get] |
Vector2 | WorldPosition [get] |
Vector2 | SimPosition [get] |
Submarine | Submarine [get] |
Additional Inherited Members | |
Static Public Attributes inherited from Barotrauma.Entity | |
const ushort | NullEntityID = 0 |
const ushort | EntitySpawnerID = ushort.MaxValue |
const ushort | RespawnManagerID = ushort.MaxValue - 1 |
const ushort | DummyID = ushort.MaxValue - 2 |
const ushort | ReservedIDStart = ushort.MaxValue - 3 |
const ushort | MaxEntityCount = ushort.MaxValue - 4 |
static EntitySpawner | Spawner |
Protected Member Functions inherited from Barotrauma.Entity | |
virtual ushort | DetermineID (ushort id, Submarine submarine) |
Protected Attributes inherited from Barotrauma.Entity | |
AITarget | aiTarget |
Definition at line 15 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectManager.cs.
Barotrauma.LevelObjectManager.LevelObjectManager | ( | ) |
Definition at line 31 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectManager.cs.
void Barotrauma.LevelObjectManager.ClientEventRead | ( | IReadMessage | msg, |
float | sendingTime | ||
) |
Implements Barotrauma.Networking.IServerSerializable.
Definition at line 261 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObjectManager.cs.
void Barotrauma.LevelObjectManager.DrawObjectsBack | ( | SpriteBatch | spriteBatch, |
Camera | cam | ||
) |
Draw the objects behind the level walls
Definition at line 150 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObjectManager.cs.
void Barotrauma.LevelObjectManager.DrawObjectsFront | ( | SpriteBatch | spriteBatch, |
Camera | cam | ||
) |
Draw the objects in front of the level walls and characters
Definition at line 166 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObjectManager.cs.
void Barotrauma.LevelObjectManager.DrawObjectsMid | ( | SpriteBatch | spriteBatch, |
Camera | cam | ||
) |
Draw the objects in front of the level walls, but behind characters
Definition at line 158 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObjectManager.cs.
IEnumerable<LevelObject> Barotrauma.LevelObjectManager.GetAllObjects | ( | ) |
Definition at line 489 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectManager.cs.
IEnumerable<LevelObject> Barotrauma.LevelObjectManager.GetAllObjects | ( | Vector2 | worldPosition, |
float | radius | ||
) |
Definition at line 495 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectManager.cs.
|
static |
Definition at line 482 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectManager.cs.
IEnumerable<LevelObject> Barotrauma.LevelObjectManager.GetVisibleObjects | ( | ) |
Definition at line 50 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObjectManager.cs.
void Barotrauma.LevelObjectManager.PlaceNestObjects | ( | Level | level, |
Level.Cave | cave, | ||
Vector2 | nestPosition, | ||
float | nestRadius, | ||
int | objectAmount | ||
) |
Definition at line 263 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectManager.cs.
void Barotrauma.LevelObjectManager.PlaceObjects | ( | Level | level, |
int | amount | ||
) |
Definition at line 93 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectManager.cs.
|
virtual |
Reimplemented from Barotrauma.Entity.
Definition at line 640 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectManager.cs.
void Barotrauma.LevelObjectManager.ServerEventWrite | ( | IWriteMessage | msg, |
Client | c, | ||
NetEntityEvent.IData | extraData = null |
||
) |
Definition at line 659 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectManager.cs.
void Barotrauma.LevelObjectManager.Update | ( | float | deltaTime | ) |
Definition at line 560 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectManager.cs.
bool Barotrauma.LevelObjectManager.ForceRefreshVisibleObjects |
Definition at line 25 of file BarotraumaClient/ClientSource/Map/Levels/LevelObjects/LevelObjectManager.cs.
|
get |
Definition at line 25 of file BarotraumaShared/SharedSource/Map/Levels/LevelObjects/LevelObjectManager.cs.