Barotrauma Client Doc
Barotrauma.MapEntity Class Referenceabstract
Inheritance diagram for Barotrauma.MapEntity:
Barotrauma.Entity Barotrauma.ISpatialEntity Barotrauma.Entity Barotrauma.ISpatialEntity Barotrauma.ISpatialEntity Barotrauma.Gap Barotrauma.Gap Barotrauma.Hull Barotrauma.Hull Barotrauma.Item Barotrauma.Item Barotrauma.LinkedSubmarine Barotrauma.LinkedSubmarine Barotrauma.Structure Barotrauma.Structure Barotrauma.WayPoint Barotrauma.WayPoint

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...
 
virtual bool IsVisible (Rectangle worldView)
 
virtual void Draw (SpriteBatch spriteBatch, bool editing, bool back=true)
 
float GetDrawDepth (float baseDepth, Sprite sprite)
 A method that modifies the draw depth to prevent z-fighting between entities with the same sprite depth More...
 
MapEntity GetReplacementOrThis ()
 
virtual void AddToGUIUpdateList (int order=0)
 
virtual void UpdateEditing (Camera cam, float deltaTime)
 
virtual void DrawEditing (SpriteBatch spriteBatch, Camera cam)
 
- 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< MapEntityClone (List< MapEntity > entitiesToClone)
 
static void UpdateAll (float deltaTime, Camera cam)
 Call Update() on every object in Entity.list More...
 
static List< MapEntityLoadAll (Submarine submarine, XElement parentElement, string filePath, int idOffset)
 
static void MapLoaded (List< MapEntity > entities, bool updateHulls)
 
static void InitializeLoadedLinks (IEnumerable< MapEntity > entities)
 
static void UpdateSelecting (Camera cam)
 Update the selection logic in submarine editor More...
 
static void StopSelection ()
 
static Vector2 GetNudgeAmount (bool doHold=true)
 
static Item GetPotentialContainer (Vector2 position, HashSet< MapEntity > entities=null)
 
static void UpdateHighlighting (List< MapEntity > highlightedEntities, bool wiringMode=false)
 Updates the logic that runs the highlight box when the mouse is sitting still. More...
 
static void AddSelection (MapEntity entity)
 
static void RemoveSelection (MapEntity entity)
 
static void DrawSelecting (SpriteBatch spriteBatch, Camera cam)
 Draw the "selection rectangle" and outlines of entities that are being dragged (if any) More...
 
static void DrawSelectionRect (SpriteBatch spriteBatch, Vector2 pos, Vector2 size, Color color)
 
static void UpdateEditor (Camera cam, float deltaTime)
 
static void DrawEditor (SpriteBatch spriteBatch, Camera cam)
 
static void DeselectAll ()
 
static void SelectEntity (MapEntity entity)
 
static void Copy (List< MapEntity > entities)
 Copy the selected entities to the "clipboard" (copiedList) More...
 
static void Cut (List< MapEntity > entities)
 
static void Paste (Vector2 position)
 
static List< MapEntityCopyEntities (List< MapEntity > entities)
 copies a list of entities to the "clipboard" (copiedList) More...
 
static HashSet< MapEntityFindSelectedEntities (Vector2 pos, Vector2 size)
 Find entities whose rect intersects with the "selection rect" More...
 
- Static Public Member Functions inherited from Barotrauma.Entity
static IReadOnlyCollection< EntityGetEntities ()
 
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< IdentifierDisallowedUpgradeSet = new HashSet<Identifier>()
 
readonly List< MapEntitylinkedTo = 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
 
MapEntity ReplacedBy
 Used for undo/redo to determine what this item has been replaced with More...
 
- 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< MapEntityMapEntityList = new List<MapEntity>()
 
static int MapEntityUpdateInterval = 1
 
static int PoweredUpdateInterval = 1
 
static bool SelectionChanged
 
static List< MapEntityCopiedList = new List<MapEntity>()
 
- 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 ()
 
Vector2 GetCollapseEffectOffset ()
 
- Protected Member Functions inherited from Barotrauma.Entity
virtual ushort DetermineID (ushort id, Submarine submarine)
 

Static Protected Member Functions

static void ColorFlipButton (GUIButton btn, bool flip)
 
static void PositionEditingHUD ()
 

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< MapEntityhighlightedEntities = new HashSet<MapEntity>()
 
static Vector2 selectionPos = Vector2.Zero
 
static Vector2 selectionSize = Vector2.Zero
 
static GUIComponent editingHUD
 

Properties

string DisallowedUpgrades [get, set]
 
bool FlippedX [get]
 
bool FlippedY [get]
 
static IEnumerable< MapEntityHighlightedEntities [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< IdentifierAllowedLinks [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]
 
static Vector2 StartMovingPos [get]
 
static Vector2 SelectionPos [get]
 
static bool Resizing [get]
 
static HashSet< MapEntitySelectedList = new HashSet<MapEntity>() [get]
 
static GUIListBox HighlightedListBox [get]
 
static GUIComponent EditingHUD [get]
 
static bool DisableSelect [get, set]
 
virtual bool SelectableInEditor [get]
 
static bool SelectedAny [get]
 
bool IsSelected [get]
 
bool IsIncludedInSelection [get, set]
 
static List< MapEntityFilteredSelectedList = new List<MapEntity>() [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]
 

Events

Action< Rectangle > Resized
 

Detailed Description

Definition at line 89 of file LuaBarotraumaAdditions.cs.

Constructor & Destructor Documentation

◆ MapEntity()

Barotrauma.MapEntity.MapEntity ( MapEntityPrefab  prefab,
Submarine  submarine,
ushort  id 
)

Member Function Documentation

◆ AddLinked()

void Barotrauma.MapEntity.AddLinked ( MapEntity  entity)

Definition at line 91 of file LuaBarotraumaAdditions.cs.

◆ AddSelection()

static void Barotrauma.MapEntity.AddSelection ( MapEntity  entity)
static

◆ AddToGUIUpdateList()

virtual void Barotrauma.MapEntity.AddToGUIUpdateList ( int  order = 0)
virtual

Reimplemented in Barotrauma.Item.

Definition at line 1079 of file BarotraumaClient/ClientSource/Map/MapEntity.cs.

◆ AddUpgrade()

virtual bool Barotrauma.MapEntity.AddUpgrade ( Upgrade  upgrade,
bool  createNetworkEvent = false 
)
virtual

Adds a new upgrade to the item

Reimplemented in Barotrauma.Structure, and Barotrauma.Item.

Definition at line 364 of file BarotraumaShared/SharedSource/Map/MapEntity.cs.

◆ CheckIsHighlighted()

virtual void Barotrauma.MapEntity.CheckIsHighlighted ( )
protectedvirtual

Reimplemented in Barotrauma.Item.

Definition at line 390 of file BarotraumaShared/SharedSource/Map/MapEntity.cs.

◆ ClearHighlightedEntities()

static void Barotrauma.MapEntity.ClearHighlightedEntities ( )
static

◆ Clone() [1/2]

abstract MapEntity Barotrauma.MapEntity.Clone ( )
pure virtual

◆ Clone() [2/2]

static List<MapEntity> Barotrauma.MapEntity.Clone ( List< MapEntity entitiesToClone)
static

◆ ColorFlipButton()

static void Barotrauma.MapEntity.ColorFlipButton ( GUIButton  btn,
bool  flip 
)
staticprotected

◆ Copy()

static void Barotrauma.MapEntity.Copy ( List< MapEntity entities)
static

Copy the selected entities to the "clipboard" (copiedList)

Definition at line 1008 of file BarotraumaClient/ClientSource/Map/MapEntity.cs.

◆ CopyEntities()

static List<MapEntity> Barotrauma.MapEntity.CopyEntities ( List< MapEntity entities)
static

copies a list of entities to the "clipboard" (copiedList)

Definition at line 1063 of file BarotraumaClient/ClientSource/Map/MapEntity.cs.

◆ Cut()

static void Barotrauma.MapEntity.Cut ( List< MapEntity entities)
static

Copy the entities to the "clipboard" (copiedList) and delete them

Definition at line 1017 of file BarotraumaClient/ClientSource/Map/MapEntity.cs.

◆ DeselectAll()

static void Barotrauma.MapEntity.DeselectAll ( )
static

◆ Draw()

virtual void Barotrauma.MapEntity.Draw ( SpriteBatch  spriteBatch,
bool  editing,
bool  back = true 
)
virtual

◆ DrawEditing()

virtual void Barotrauma.MapEntity.DrawEditing ( SpriteBatch  spriteBatch,
Camera  cam 
)
virtual

◆ DrawEditor()

static void Barotrauma.MapEntity.DrawEditor ( SpriteBatch  spriteBatch,
Camera  cam 
)
static

◆ DrawSelecting()

static void Barotrauma.MapEntity.DrawSelecting ( SpriteBatch  spriteBatch,
Camera  cam 
)
static

Draw the "selection rectangle" and outlines of entities that are being dragged (if any)

Definition at line 756 of file BarotraumaClient/ClientSource/Map/MapEntity.cs.

◆ DrawSelectionRect()

static void Barotrauma.MapEntity.DrawSelectionRect ( SpriteBatch  spriteBatch,
Vector2  pos,
Vector2  size,
Color  color 
)
static

◆ FindSelectedEntities()

static HashSet<MapEntity> Barotrauma.MapEntity.FindSelectedEntities ( Vector2  pos,
Vector2  size 
)
static

Find entities whose rect intersects with the "selection rect"

Definition at line 1318 of file BarotraumaClient/ClientSource/Map/MapEntity.cs.

◆ FlipX()

virtual void Barotrauma.MapEntity.FlipX ( bool  relativeToSub)
virtual

Flip the entity horizontally

Parameters
relativeToSubShould 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 BarotraumaShared/SharedSource/Map/MapEntity.cs.

◆ FlipY()

virtual void Barotrauma.MapEntity.FlipY ( bool  relativeToSub)
virtual

Flip the entity vertically

Parameters
relativeToSubShould 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 BarotraumaShared/SharedSource/Map/MapEntity.cs.

◆ GetCollapseEffectOffset()

Vector2 Barotrauma.MapEntity.GetCollapseEffectOffset ( )
protected

◆ GetDrawDepth()

float Barotrauma.MapEntity.GetDrawDepth ( float  baseDepth,
Sprite  sprite 
)

A method that modifies the draw depth to prevent z-fighting between entities with the same sprite depth

Definition at line 97 of file BarotraumaClient/ClientSource/Map/MapEntity.cs.

◆ 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.

Type Constraints
T :MapEntity 

Definition at line 938 of file BarotraumaShared/SharedSource/Map/MapEntity.cs.

◆ GetNudgeAmount()

static Vector2 Barotrauma.MapEntity.GetNudgeAmount ( bool  doHold = true)
static

◆ GetPotentialContainer()

static Item Barotrauma.MapEntity.GetPotentialContainer ( Vector2  position,
HashSet< MapEntity entities = null 
)
static

◆ GetReplacementOrThis()

MapEntity Barotrauma.MapEntity.GetReplacementOrThis ( )

◆ GetTransformedQuad()

virtual Quad2D Barotrauma.MapEntity.GetTransformedQuad ( )
virtual

Reimplemented in Barotrauma.Structure, and Barotrauma.Item.

◆ 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

◆ IsVisible()

virtual bool Barotrauma.MapEntity.IsVisible ( Rectangle  worldView)
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

◆ Paste()

static void Barotrauma.MapEntity.Paste ( Vector2  position)
static

◆ PositionEditingHUD()

static void Barotrauma.MapEntity.PositionEditingHUD ( )
staticprotected

◆ Remove()

override void Barotrauma.MapEntity.Remove ( )
virtual

Reimplemented from Barotrauma.Entity.

Reimplemented in Barotrauma.WayPoint, and Barotrauma.Structure.

Definition at line 578 of file BarotraumaShared/SharedSource/Map/MapEntity.cs.

◆ RemoveLinked()

void Barotrauma.MapEntity.RemoveLinked ( MapEntity  e)

◆ RemoveSelection()

static void Barotrauma.MapEntity.RemoveSelection ( MapEntity  entity)
static

◆ ResolveLinks()

void Barotrauma.MapEntity.ResolveLinks ( IdRemap  childRemap)

◆ Save()

virtual XElement Barotrauma.MapEntity.Save ( XElement  parentElement)
virtual

◆ SelectEntity()

static void Barotrauma.MapEntity.SelectEntity ( MapEntity  entity)
static

◆ SetUpgrade()

void Barotrauma.MapEntity.SetUpgrade ( Upgrade  upgrade,
bool  createNetworkEvent = false 
)

◆ ShallowRemove()

virtual void Barotrauma.MapEntity.ShallowRemove ( )
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 BarotraumaShared/SharedSource/Map/MapEntity.cs.

◆ StopSelection()

static void Barotrauma.MapEntity.StopSelection ( )
static

◆ 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

Definition at line 606 of file BarotraumaShared/SharedSource/Map/MapEntity.cs.

◆ UpdateEditing()

virtual void Barotrauma.MapEntity.UpdateEditing ( Camera  cam,
float  deltaTime 
)
virtual

◆ UpdateEditor()

static void Barotrauma.MapEntity.UpdateEditor ( Camera  cam,
float  deltaTime 
)
static

◆ UpdateHighlighting()

static void Barotrauma.MapEntity.UpdateHighlighting ( List< MapEntity highlightedEntities,
bool  wiringMode = false 
)
static

Updates the logic that runs the highlight box when the mouse is sitting still.

UpdateHighlightedListBox

Parameters
highlightedEntities
wiringModetrue to give items tooltip showing their connection

Definition at line 574 of file BarotraumaClient/ClientSource/Map/MapEntity.cs.

◆ UpdateSelecting()

static void Barotrauma.MapEntity.UpdateSelecting ( Camera  cam)
static

Update the selection logic in submarine editor

Definition at line 122 of file BarotraumaClient/ClientSource/Map/MapEntity.cs.

Member Data Documentation

◆ CopiedList

List<MapEntity> Barotrauma.MapEntity.CopiedList = new List<MapEntity>()
static

◆ DisallowedUpgradeSet

readonly HashSet<Identifier> Barotrauma.MapEntity.DisallowedUpgradeSet = new HashSet<Identifier>()

◆ editingHUD

GUIComponent Barotrauma.MapEntity.editingHUD
staticprotected

◆ flippedX

bool Barotrauma.MapEntity.flippedX
protected

◆ highlightedEntities

readonly HashSet<MapEntity> Barotrauma.MapEntity.highlightedEntities = new HashSet<MapEntity>()
staticprotected

◆ linkedTo

readonly List<MapEntity> Barotrauma.MapEntity.linkedTo = new List<MapEntity>()

◆ linkedToID

List<ushort> Barotrauma.MapEntity.linkedToID
protected

◆ MapEntityList

readonly List<MapEntity> Barotrauma.MapEntity.MapEntityList = new List<MapEntity>()
static

◆ 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)

Definition at line 265 of file BarotraumaShared/SharedSource/Map/MapEntity.cs.

◆ PoweredUpdateInterval

int Barotrauma.MapEntity.PoweredUpdateInterval = 1
static

◆ Prefab

readonly MapEntityPrefab Barotrauma.MapEntity.Prefab

◆ rect

Rectangle Barotrauma.MapEntity.rect
protected

◆ ReplacedBy

MapEntity Barotrauma.MapEntity.ReplacedBy

Used for undo/redo to determine what this item has been replaced with

Definition at line 90 of file BarotraumaClient/ClientSource/Map/MapEntity.cs.

◆ SelectionChanged

bool Barotrauma.MapEntity.SelectionChanged
static

◆ selectionPos

Vector2 Barotrauma.MapEntity.selectionPos = Vector2.Zero
staticprotected

◆ selectionSize

Vector2 Barotrauma.MapEntity.selectionSize = Vector2.Zero
staticprotected

◆ 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

Definition at line 29 of file BarotraumaShared/SharedSource/Map/MapEntity.cs.

Property Documentation

◆ AllowedLinks

IEnumerable<Identifier> Barotrauma.MapEntity.AllowedLinks
get

◆ DisableSelect

bool Barotrauma.MapEntity.DisableSelect
staticgetset

◆ DisallowedUpgrades

string Barotrauma.MapEntity.DisallowedUpgrades
getset

◆ DrawBelowWater

virtual bool Barotrauma.MapEntity.DrawBelowWater
get

◆ DrawOverWater

virtual bool Barotrauma.MapEntity.DrawOverWater
get

◆ EditingHUD

GUIComponent Barotrauma.MapEntity.EditingHUD
staticget

◆ ExternalHighlight

bool Barotrauma.MapEntity.ExternalHighlight
getset

◆ FilteredSelectedList

List<MapEntity> Barotrauma.MapEntity.FilteredSelectedList = new List<MapEntity>()
staticget

◆ 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

◆ HighlightedListBox

GUIListBox Barotrauma.MapEntity.HighlightedListBox
staticget

◆ IsHighlighted

bool Barotrauma.MapEntity.IsHighlighted
getset

◆ IsIncludedInSelection

bool Barotrauma.MapEntity.IsIncludedInSelection
getset

◆ IsSelected

bool Barotrauma.MapEntity.IsSelected
get

◆ 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

◆ Resizing

bool Barotrauma.MapEntity.Resizing
staticget

◆ Scale

virtual float Barotrauma.MapEntity.Scale = 1
getset

◆ SelectableInEditor

virtual bool Barotrauma.MapEntity.SelectableInEditor
get

◆ SelectedAny

bool Barotrauma.MapEntity.SelectedAny
staticget

◆ SelectedList

HashSet<MapEntity> Barotrauma.MapEntity.SelectedList = new HashSet<MapEntity>()
staticget

◆ SelectionPos

Vector2 Barotrauma.MapEntity.SelectionPos
staticget

◆ 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

◆ StartMovingPos

Vector2 Barotrauma.MapEntity.StartMovingPos
staticget

◆ WorldRect

Rectangle? Barotrauma.MapEntity.WorldRect
get

Event Documentation

◆ Resized

Action<Rectangle> Barotrauma.MapEntity.Resized