|
| 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.
|
| |
| MapEntity | Clone () |
| |
| virtual void | ShallowRemove () |
| | Remove the entity from the entity list without removing links to other entities.
|
| |
| override void | Remove () |
| |
| virtual void | Update (float deltaTime, Camera cam) |
| |
| virtual void | FlipX (bool relativeToSub) |
| | Flip the entity horizontally.
|
| |
| virtual void | FlipY (bool relativeToSub) |
| | Flip the entity vertically.
|
| |
| 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.
|
| |
| | Entity (Submarine submarine, ushort id) |
| |
| void | FreeID () |
| | Removes the entity from the entity dictionary and frees up the ID it was using.
|
| |
|
| 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] |
| |
| bool | IsLayerHidden [get, set] |
| | Is the layer this entity is in currently hidden? If it is, the entity is not updated and should do nothing.
|
| |
| bool | IsHidden [get] |
| | Is the entity hidden due to HiddenInGame being enabled or the layer the entity is in being hidden?
|
| |
| 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] |
| |
| 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] |
| | Indetectable characters can't be spotted by AIs and aren't visible on the sonar or health scanner.
|
| |
| double | SpawnTime [get] |
| |
| string | ErrorLine [get] |
| |
◆ MapEntity()
◆ AddLinked()
| void Barotrauma.MapEntity.AddLinked |
( |
MapEntity | entity | ) |
|
◆ AddUpgrade()
| virtual bool Barotrauma.MapEntity.AddUpgrade |
( |
Upgrade | upgrade, |
|
|
bool | createNetworkEvent = false ) |
|
virtual |
◆ CheckIsHighlighted()
| virtual void Barotrauma.MapEntity.CheckIsHighlighted |
( |
| ) |
|
|
protectedvirtual |
◆ ClearHighlightedEntities()
| static void Barotrauma.MapEntity.ClearHighlightedEntities |
( |
| ) |
|
|
static |
◆ Clone() [1/2]
◆ Clone() [2/2]
◆ FlipX()
| virtual void Barotrauma.MapEntity.FlipX |
( |
bool | relativeToSub | ) |
|
|
virtual |
Flip the entity horizontally.
- Parameters
-
| relativeToSub | Should the entity be flipped across the y-axis of the sub it's inside |
Reimplemented in Barotrauma.Item, and Barotrauma.Structure.
◆ FlipY()
| virtual void Barotrauma.MapEntity.FlipY |
( |
bool | relativeToSub | ) |
|
|
virtual |
Flip the entity vertically.
- Parameters
-
| relativeToSub | Should the entity be flipped across the x-axis of the sub it's inside |
Reimplemented in Barotrauma.Item, and Barotrauma.Structure.
◆ GetLinkedEntities< T >()
| 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.
◆ GetTransformedQuad()
| virtual Quad2D Barotrauma.MapEntity.GetTransformedQuad |
( |
| ) |
|
|
virtual |
◆ GetUpgrade()
| Upgrade Barotrauma.MapEntity.GetUpgrade |
( |
Identifier | identifier | ) |
|
◆ GetUpgrades()
| List< Upgrade > Barotrauma.MapEntity.GetUpgrades |
( |
| ) |
|
◆ HasUpgrade()
| bool Barotrauma.MapEntity.HasUpgrade |
( |
Identifier | identifier | ) |
|
◆ InitializeLoadedLinks()
| static void Barotrauma.MapEntity.InitializeLoadedLinks |
( |
IEnumerable< MapEntity > | entities | ) |
|
|
static |
◆ InsertToList()
| void Barotrauma.MapEntity.InsertToList |
( |
| ) |
|
|
protected |
◆ IsMouseOn()
| virtual bool Barotrauma.MapEntity.IsMouseOn |
( |
Vector2 | position | ) |
|
|
virtual |
◆ LoadAll()
| static List< MapEntity > Barotrauma.MapEntity.LoadAll |
( |
Submarine | submarine, |
|
|
XElement | parentElement, |
|
|
string | filePath, |
|
|
int | idOffset ) |
|
static |
◆ MapLoaded()
| static void Barotrauma.MapEntity.MapLoaded |
( |
List< MapEntity > | entities, |
|
|
bool | updateHulls ) |
|
static |
◆ Move()
| virtual void Barotrauma.MapEntity.Move |
( |
Vector2 | amount, |
|
|
bool | ignoreContacts = true ) |
|
virtual |
◆ OnMapLoaded()
| virtual void Barotrauma.MapEntity.OnMapLoaded |
( |
| ) |
|
|
virtual |
◆ ParseLinks()
| void Barotrauma.MapEntity.ParseLinks |
( |
XElement | element, |
|
|
IdRemap | idRemap ) |
|
protected |
◆ Remove()
| override void Barotrauma.MapEntity.Remove |
( |
| ) |
|
|
virtual |
◆ RemoveLinked()
| void Barotrauma.MapEntity.RemoveLinked |
( |
MapEntity | e | ) |
|
◆ ResolveLinks()
| void Barotrauma.MapEntity.ResolveLinks |
( |
IdRemap | childRemap | ) |
|
◆ Save()
| virtual XElement Barotrauma.MapEntity.Save |
( |
XElement | parentElement | ) |
|
|
virtual |
◆ SetUpgrade()
| void Barotrauma.MapEntity.SetUpgrade |
( |
Upgrade | upgrade, |
|
|
bool | createNetworkEvent = false ) |
◆ ShallowRemove()
| virtual void Barotrauma.MapEntity.ShallowRemove |
( |
| ) |
|
|
virtual |
◆ Update()
| virtual void Barotrauma.MapEntity.Update |
( |
float | deltaTime, |
|
|
Camera | cam ) |
|
virtual |
◆ UpdateAll()
| static void Barotrauma.MapEntity.UpdateAll |
( |
float | deltaTime, |
|
|
Camera | cam ) |
|
static |
Call Update() on every object in Entity.list.
◆ DisallowedUpgradeSet
| readonly HashSet<Identifier> Barotrauma.MapEntity.DisallowedUpgradeSet = new HashSet<Identifier>() |
◆ flippedX
| bool Barotrauma.MapEntity.flippedX |
|
protected |
◆ flippedY
| bool Barotrauma.MapEntity.flippedY |
|
protected |
◆ highlightedEntities
| readonly HashSet<MapEntity> Barotrauma.MapEntity.highlightedEntities = new HashSet<MapEntity>() |
|
staticprotected |
◆ linkedTo
◆ linkedToID
| List<ushort> Barotrauma.MapEntity.linkedToID |
|
protected |
◆ MapEntityList
◆ MapEntityUpdateInterval
| int Barotrauma.MapEntity.MapEntityUpdateInterval = 1 |
|
static |
◆ OriginalContainerIndex
| int Barotrauma.MapEntity.OriginalContainerIndex = -1 |
◆ OriginalModuleIndex
| int Barotrauma.MapEntity.OriginalModuleIndex = -1 |
The index of the outpost module this entity originally spawned in (-1 if not an outpost item)
◆ PoweredUpdateInterval
| int Barotrauma.MapEntity.PoweredUpdateInterval = 1 |
|
static |
◆ Prefab
◆ rect
| Rectangle Barotrauma.MapEntity.rect |
|
protected |
◆ ShouldBeSaved
| bool Barotrauma.MapEntity.ShouldBeSaved = true |
◆ unresolvedLinkedToID
| List<ushort> Barotrauma.MapEntity.unresolvedLinkedToID |
◆ Upgrades
| readonly List<Upgrade> Barotrauma.MapEntity.Upgrades = new List<Upgrade>() |
|
protected |
List of upgrades this item has.
◆ AllowedLinks
| IEnumerable<Identifier> Barotrauma.MapEntity.AllowedLinks |
|
get |
◆ DisallowedUpgrades
| string Barotrauma.MapEntity.DisallowedUpgrades |
|
getset |
◆ DrawBelowWater
| virtual bool Barotrauma.MapEntity.DrawBelowWater |
|
get |
◆ DrawOverWater
| virtual bool Barotrauma.MapEntity.DrawOverWater |
|
get |
◆ ExternalHighlight
| bool Barotrauma.MapEntity.ExternalHighlight |
|
getset |
◆ FlippedX
| bool Barotrauma.MapEntity.FlippedX |
|
get |
◆ FlippedY
| bool Barotrauma.MapEntity.FlippedY |
|
get |
◆ HiddenInGame
| bool Barotrauma.MapEntity.HiddenInGame |
|
getset |
◆ HighlightedEntities
| IEnumerable<MapEntity> Barotrauma.MapEntity.HighlightedEntities |
|
staticget |
◆ IsHidden
| bool Barotrauma.MapEntity.IsHidden |
|
get |
Is the entity hidden due to HiddenInGame being enabled or the layer the entity is in being hidden?
◆ IsHighlighted
| bool Barotrauma.MapEntity.IsHighlighted |
|
getset |
◆ IsLayerHidden
| bool Barotrauma.MapEntity.IsLayerHidden |
|
getset |
Is the layer this entity is in currently hidden? If it is, the entity is not updated and should do nothing.
◆ Layer
| string Barotrauma.MapEntity.Layer |
|
getset |
◆ Linkable
| virtual bool Barotrauma.MapEntity.Linkable |
|
get |
◆ Name
| virtual string Barotrauma.MapEntity.Name |
|
get |
◆ Position
| override Vector2 Barotrauma.MapEntity.Position |
|
get |
◆ Rect
| virtual Rectangle Barotrauma.MapEntity.Rect |
|
getset |
◆ RectHeight
| int Barotrauma.MapEntity.RectHeight |
|
getset |
◆ RectWidth
| int Barotrauma.MapEntity.RectWidth |
|
getset |
◆ RemoveIfLinkedOutpostDoorInUse
| bool Barotrauma.MapEntity.RemoveIfLinkedOutpostDoorInUse = true |
|
getprotected set |
◆ ResizeHorizontal
| bool Barotrauma.MapEntity.ResizeHorizontal |
|
get |
◆ ResizeVertical
| bool Barotrauma.MapEntity.ResizeVertical |
|
get |
◆ Scale
| virtual float Barotrauma.MapEntity.Scale = 1 |
|
getset |
◆ SightRange
| float Barotrauma.MapEntity.SightRange |
|
getset |
◆ SimPosition
| override Vector2 Barotrauma.MapEntity.SimPosition |
|
get |
◆ SoundRange
| float Barotrauma.MapEntity.SoundRange |
|
getset |
◆ Sprite
| virtual Sprite Barotrauma.MapEntity.Sprite |
|
get |
◆ SpriteDepth
| float Barotrauma.MapEntity.SpriteDepth |
|
getset |
◆ SpriteDepthOverrideIsSet
| bool Barotrauma.MapEntity.SpriteDepthOverrideIsSet |
|
get |
◆ SpriteOverrideDepth
| float Barotrauma.MapEntity.SpriteOverrideDepth |
|
get |
◆ WorldRect
| Rectangle Barotrauma.MapEntity.WorldRect |
|
get |
The documentation for this class was generated from the following files:
- /home/runner/work/Luatrauma.Docs/Luatrauma.Docs/libs/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/Lua/LuaBarotraumaAdditions.cs
- /home/runner/work/Luatrauma.Docs/Luatrauma.Docs/libs/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/Map/MapEntity.cs