Barotrauma Server Doc
|
Public Member Functions | |
LinkedSubmarine (Submarine submarine, ushort id=Entity.NullEntityID) | |
override bool | IsMouseOn (Vector2 position) |
override MapEntity | Clone () |
void | LinkDummyToMainSubmarine () |
void | SetPositionRelativeToMainSub () |
override void | OnMapLoaded () |
override XElement | Save (XElement parentElement) |
Public Member Functions inherited from Barotrauma.MapEntity | |
void | AddLinked (MapEntity entity) |
MapEntity (MapEntityPrefab prefab, Submarine submarine, ushort id) | |
void | ResolveLinks (IdRemap childRemap) |
virtual void | Move (Vector2 amount, bool ignoreContacts=true) |
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... | |
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 () |
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 LinkedSubmarine | CreateDummy (Submarine mainSub, Submarine linkedSub) |
static LinkedSubmarine | CreateDummy (Submarine mainSub, string filePath, Vector2 position) |
static LinkedSubmarine | CreateDummy (Submarine mainSub, XElement element, Vector2 position, ushort id=Entity.NullEntityID) |
static LinkedSubmarine | Load (ContentXElement element, Submarine submarine, IdRemap idRemap) |
Static Public Member Functions inherited from Barotrauma.MapEntity | |
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) |
Properties | |
bool | LoadSub [get] |
ushort | OriginalLinkedToID [get] |
Submarine | Sub [get] |
override bool | Linkable [get] |
int | CargoCapacity [get] |
Properties inherited from Barotrauma.MapEntity | |
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] |
Additional Inherited Members | |
Public Attributes inherited from Barotrauma.MapEntity | |
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 inherited from Barotrauma.MapEntity | |
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 inherited from Barotrauma.MapEntity | |
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 inherited from Barotrauma.MapEntity | |
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 inherited from Barotrauma.MapEntity | |
static readonly HashSet< MapEntity > | highlightedEntities = new HashSet<MapEntity>() |
Definition at line 46 of file LinkedSubmarine.cs.
Barotrauma.LinkedSubmarine.LinkedSubmarine | ( | Submarine | submarine, |
ushort | id = Entity.NullEntityID |
||
) |
Definition at line 88 of file LinkedSubmarine.cs.
|
virtual |
Implements Barotrauma.MapEntity.
Definition at line 151 of file LinkedSubmarine.cs.
|
static |
Definition at line 108 of file LinkedSubmarine.cs.
|
static |
Definition at line 98 of file LinkedSubmarine.cs.
|
static |
Definition at line 122 of file LinkedSubmarine.cs.
|
virtual |
Reimplemented from Barotrauma.MapEntity.
Definition at line 146 of file LinkedSubmarine.cs.
void Barotrauma.LinkedSubmarine.LinkDummyToMainSubmarine | ( | ) |
Definition at line 242 of file LinkedSubmarine.cs.
|
static |
Definition at line 190 of file LinkedSubmarine.cs.
|
virtual |
Reimplemented from Barotrauma.MapEntity.
Definition at line 263 of file LinkedSubmarine.cs.
|
virtual |
Reimplemented from Barotrauma.MapEntity.
Definition at line 425 of file LinkedSubmarine.cs.
void Barotrauma.LinkedSubmarine.SetPositionRelativeToMainSub | ( | ) |
Definition at line 254 of file LinkedSubmarine.cs.
|
get |
Definition at line 86 of file LinkedSubmarine.cs.
|
get |
Definition at line 78 of file LinkedSubmarine.cs.
|
get |
Definition at line 53 of file LinkedSubmarine.cs.
|
get |
Definition at line 61 of file LinkedSubmarine.cs.
|
get |
Definition at line 66 of file LinkedSubmarine.cs.