|
Barotrauma Server Doc
|
Public Member Functions | |
| void | AddLinked (MapEntity entity) |
| MapEntity (MapEntityPrefab prefab, Submarine submarine, ushort id) | |
| void | ResolveLinks (IdRemap childRemap) |
| virtual void | Move (Vector2 amount, bool ignoreContacts=true) |
| virtual bool | IsMouseOn (Vector2 position) |
| bool | HasUpgrade (Identifier identifier) |
| Upgrade | GetUpgrade (Identifier identifier) |
| List< Upgrade > | GetUpgrades () |
| void | SetUpgrade (Upgrade upgrade, bool createNetworkEvent=false) |
| virtual bool | AddUpgrade (Upgrade upgrade, bool createNetworkEvent=false) |
| Adds a new upgrade to the item More... | |
| abstract MapEntity | Clone () |
| virtual void | ShallowRemove () |
| Remove the entity from the entity list without removing links to other entities More... | |
| override void | Remove () |
| virtual void | Update (float deltaTime, Camera cam) |
| virtual void | FlipX (bool relativeToSub) |
| Flip the entity horizontally More... | |
| virtual void | FlipY (bool relativeToSub) |
| Flip the entity vertically More... | |
| virtual Quad2D | GetTransformedQuad () |
| virtual void | OnMapLoaded () |
| virtual XElement | Save (XElement parentElement) |
| void | RemoveLinked (MapEntity e) |
| HashSet< T > | GetLinkedEntities< T > (HashSet< T > list=null, int? maxDepth=null, Func< T, bool > filter=null) |
| Gets all linked entities of specific type. More... | |
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 void | ClearHighlightedEntities () |
| static List< MapEntity > | Clone (List< MapEntity > entitiesToClone) |
| static void | UpdateAll (float deltaTime, Camera cam) |
| Call Update() on every object in Entity.list More... | |
| static List< MapEntity > | LoadAll (Submarine submarine, XElement parentElement, string filePath, int idOffset) |
| static void | MapLoaded (List< MapEntity > entities, bool updateHulls) |
| static void | InitializeLoadedLinks (IEnumerable< MapEntity > entities) |
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 | |
| readonly MapEntityPrefab | Prefab |
| List< ushort > | unresolvedLinkedToID |
| readonly HashSet< Identifier > | DisallowedUpgradeSet = new HashSet<Identifier>() |
| readonly List< MapEntity > | linkedTo = new List<MapEntity>() |
| bool | ShouldBeSaved = true |
| int | OriginalModuleIndex = -1 |
| The index of the outpost module this entity originally spawned in (-1 if not an outpost item) More... | |
| int | OriginalContainerIndex = -1 |
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 |
Static Public Attributes | |
| static readonly List< MapEntity > | MapEntityList = new List<MapEntity>() |
| static int | MapEntityUpdateInterval = 1 |
| static int | PoweredUpdateInterval = 1 |
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 | |
| void | ParseLinks (XElement element, IdRemap idRemap) |
| virtual void | CheckIsHighlighted () |
| void | InsertToList () |
Protected Member Functions inherited from Barotrauma.Entity | |
| virtual ushort | DetermineID (ushort id, Submarine submarine) |
Protected Attributes | |
| List< ushort > | linkedToID |
| readonly List< Upgrade > | Upgrades = new List<Upgrade>() |
| List of upgrades this item has More... | |
| bool | flippedX |
| Rectangle | rect |
Protected Attributes inherited from Barotrauma.Entity | |
| AITarget | aiTarget |
Static Protected Attributes | |
| static readonly HashSet< MapEntity > | highlightedEntities = new HashSet<MapEntity>() |
Properties | |
| string | DisallowedUpgrades [get, set] |
| bool | FlippedX [get] |
| bool | FlippedY [get] |
| static IEnumerable< MapEntity > | HighlightedEntities [get] |
| bool | ExternalHighlight [get, set] |
| bool | IsHighlighted [get, set] |
| virtual Rectangle | Rect [get, set] |
| Rectangle? | WorldRect [get] |
| virtual Sprite | Sprite [get] |
| virtual bool | DrawBelowWater [get] |
| virtual bool | DrawOverWater [get] |
| virtual bool | Linkable [get] |
| IEnumerable< Identifier > | AllowedLinks [get] |
| bool | ResizeHorizontal [get] |
| bool | ResizeVertical [get] |
| int | RectWidth [get, set] |
| int | RectHeight [get, set] |
| bool | SpriteDepthOverrideIsSet [get] |
| float | SpriteOverrideDepth [get] |
| float? | SpriteDepth [get, set] |
| virtual float | Scale = 1 [get, set] |
| bool | HiddenInGame [get, set] |
| override Vector2 | Position [get] |
| override Vector2 | SimPosition [get] |
| float | SoundRange [get, set] |
| float | SightRange [get, set] |
| bool | RemoveIfLinkedOutpostDoorInUse = true [get, protected set] |
| string | Layer [get, set] |
| virtual string | Name [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] |
Definition at line 89 of file BarotraumaShared/SharedSource/LuaCs/Lua/LuaBarotraumaAdditions.cs.
| Barotrauma.MapEntity.MapEntity | ( | MapEntityPrefab | prefab, |
| Submarine | submarine, | ||
| ushort | id | ||
| ) |
Definition at line 274 of file MapEntity.cs.
| void Barotrauma.MapEntity.AddLinked | ( | MapEntity | entity | ) |
Definition at line 91 of file BarotraumaShared/SharedSource/LuaCs/Lua/LuaBarotraumaAdditions.cs.
|
virtual |
Adds a new upgrade to the item
Reimplemented in Barotrauma.Structure.
Definition at line 364 of file MapEntity.cs.
|
protectedvirtual |
Definition at line 390 of file MapEntity.cs.
|
static |
Definition at line 403 of file MapEntity.cs.
|
pure virtual |
Implemented in Barotrauma.WayPoint, Barotrauma.Structure, Barotrauma.LinkedSubmarine, Barotrauma.Hull, Barotrauma.Gap, and Barotrauma.Item.
Definition at line 417 of file MapEntity.cs.
|
virtual |
Flip the entity horizontally
| relativeToSub | Should the entity be flipped across the y-axis of the sub it's inside |
Reimplemented in Barotrauma.Structure, and Barotrauma.Item.
Definition at line 690 of file MapEntity.cs.
|
virtual |
Flip the entity vertically
| relativeToSub | Should the entity be flipped across the x-axis of the sub it's inside |
Reimplemented in Barotrauma.Structure, and Barotrauma.Item.
Definition at line 704 of file MapEntity.cs.
| HashSet<T> Barotrauma.MapEntity.GetLinkedEntities< T > | ( | HashSet< T > | list = null, |
| int? | maxDepth = null, |
||
| Func< T, bool > | filter = null |
||
| ) |
Gets all linked entities of specific type.
| T | : | MapEntity |
Definition at line 938 of file MapEntity.cs.
|
virtual |
Reimplemented in Barotrauma.Structure, and Barotrauma.Item.
| Upgrade Barotrauma.MapEntity.GetUpgrade | ( | Identifier | identifier | ) |
Definition at line 335 of file MapEntity.cs.
| List<Upgrade> Barotrauma.MapEntity.GetUpgrades | ( | ) |
Definition at line 340 of file MapEntity.cs.
| bool Barotrauma.MapEntity.HasUpgrade | ( | Identifier | identifier | ) |
Definition at line 330 of file MapEntity.cs.
|
static |
Definition at line 892 of file MapEntity.cs.
|
protected |
Definition at line 534 of file MapEntity.cs.
|
virtual |
Reimplemented in Barotrauma.Structure, Barotrauma.LinkedSubmarine, Barotrauma.Gap, and Barotrauma.Hull.
Definition at line 325 of file MapEntity.cs.
|
static |
Definition at line 717 of file MapEntity.cs.
|
static |
Definition at line 832 of file MapEntity.cs.
|
virtual |
Reimplemented in Barotrauma.Structure, Barotrauma.Hull, Barotrauma.Gap, and Barotrauma.Item.
Definition at line 319 of file MapEntity.cs.
|
virtual |
Reimplemented in Barotrauma.WayPoint, Barotrauma.Structure, Barotrauma.LinkedSubmarine, Barotrauma.Hull, Barotrauma.Gap, and Barotrauma.Item.
Definition at line 921 of file MapEntity.cs.
|
protected |
Definition at line 280 of file MapEntity.cs.
|
virtual |
Reimplemented from Barotrauma.Entity.
Reimplemented in Barotrauma.WayPoint, and Barotrauma.Structure.
Definition at line 578 of file MapEntity.cs.
| void Barotrauma.MapEntity.RemoveLinked | ( | MapEntity | e | ) |
Definition at line 929 of file MapEntity.cs.
| void Barotrauma.MapEntity.ResolveLinks | ( | IdRemap | childRemap | ) |
Definition at line 301 of file MapEntity.cs.
|
virtual |
Reimplemented in Barotrauma.WayPoint, Barotrauma.Structure, Barotrauma.LinkedSubmarine, Barotrauma.Hull, Barotrauma.Gap, and Barotrauma.Item.
Definition at line 923 of file MapEntity.cs.
| void Barotrauma.MapEntity.SetUpgrade | ( | Upgrade | upgrade, |
| bool | createNetworkEvent = false |
||
| ) |
Definition at line 345 of file MapEntity.cs.
|
virtual |
Remove the entity from the entity list without removing links to other entities
Reimplemented in Barotrauma.WayPoint, Barotrauma.Structure, Barotrauma.Hull, Barotrauma.Gap, and Barotrauma.Item.
Definition at line 569 of file MapEntity.cs.
|
virtual |
Reimplemented in Barotrauma.Structure, Barotrauma.Hull, Barotrauma.Gap, and Barotrauma.Item.
Definition at line 684 of file MapEntity.cs.
|
static |
Call Update() on every object in Entity.list
Definition at line 606 of file MapEntity.cs.
| readonly HashSet<Identifier> Barotrauma.MapEntity.DisallowedUpgradeSet = new HashSet<Identifier>() |
Definition at line 31 of file MapEntity.cs.
|
protected |
Definition at line 54 of file MapEntity.cs.
|
staticprotected |
Definition at line 63 of file MapEntity.cs.
Definition at line 52 of file MapEntity.cs.
|
protected |
Definition at line 19 of file MapEntity.cs.
Definition at line 15 of file MapEntity.cs.
|
static |
Definition at line 22 of file MapEntity.cs.
| int Barotrauma.MapEntity.OriginalContainerIndex = -1 |
Definition at line 267 of file MapEntity.cs.
| int Barotrauma.MapEntity.OriginalModuleIndex = -1 |
The index of the outpost module this entity originally spawned in (-1 if not an outpost item)
Definition at line 265 of file MapEntity.cs.
|
static |
Definition at line 23 of file MapEntity.cs.
| readonly MapEntityPrefab Barotrauma.MapEntity.Prefab |
Definition at line 17 of file MapEntity.cs.
|
protected |
Definition at line 61 of file MapEntity.cs.
| bool Barotrauma.MapEntity.ShouldBeSaved = true |
Definition at line 58 of file MapEntity.cs.
| List<ushort> Barotrauma.MapEntity.unresolvedLinkedToID |
Definition at line 20 of file MapEntity.cs.
|
protected |
List of upgrades this item has
Definition at line 29 of file MapEntity.cs.
|
get |
Definition at line 135 of file MapEntity.cs.
|
getset |
Definition at line 34 of file MapEntity.cs.
|
get |
Definition at line 114 of file MapEntity.cs.
|
get |
Definition at line 122 of file MapEntity.cs.
|
getset |
Definition at line 69 of file MapEntity.cs.
|
get |
Definition at line 55 of file MapEntity.cs.
|
get |
Definition at line 56 of file MapEntity.cs.
|
getset |
Definition at line 197 of file MapEntity.cs.
|
staticget |
Definition at line 65 of file MapEntity.cs.
|
getset |
Definition at line 85 of file MapEntity.cs.
|
getset |
Definition at line 260 of file MapEntity.cs.
|
get |
Definition at line 130 of file MapEntity.cs.
|
get |
Definition at line 269 of file MapEntity.cs.
|
get |
Definition at line 203 of file MapEntity.cs.
|
getset |
Definition at line 98 of file MapEntity.cs.
|
getset |
Definition at line 159 of file MapEntity.cs.
|
getset |
Definition at line 148 of file MapEntity.cs.
|
getprotected set |
Definition at line 253 of file MapEntity.cs.
|
get |
Definition at line 137 of file MapEntity.cs.
|
get |
Definition at line 141 of file MapEntity.cs.
|
getset |
Definition at line 194 of file MapEntity.cs.
|
getset |
Definition at line 238 of file MapEntity.cs.
|
get |
Definition at line 216 of file MapEntity.cs.
|
getset |
Definition at line 224 of file MapEntity.cs.
|
get |
Definition at line 109 of file MapEntity.cs.
|
getset |
Definition at line 175 of file MapEntity.cs.
|
get |
Definition at line 171 of file MapEntity.cs.
|
get |
Definition at line 172 of file MapEntity.cs.
|
get |
Definition at line 104 of file MapEntity.cs.