|
| void | OnGapStateChanged (bool open, Gap gap) |
| | Only called by a Gap when the state changes. So in practice used like an event callback, although technically just a method (It would be cleaner to use an actual event in Gap.cs, but event registering and unregistering might cause an extra hassle)
|
| |
| | WayPoint (Vector2 position, SpawnType spawnType, Submarine submarine, Gap gap=null) |
| |
| | WayPoint (MapEntityPrefab prefab, Rectangle rectangle) |
| |
| | WayPoint (Rectangle newRect, Submarine submarine) |
| |
| | WayPoint (Type type, Rectangle newRect, Submarine submarine, ushort id=Entity.NullEntityID) |
| |
| override MapEntity | Clone () |
| |
| void | ConnectTo (WayPoint wayPoint2) |
| |
| void | FindHull () |
| |
| override void | OnMapLoaded () |
| |
| void | InitializeLinks () |
| |
| override XElement | Save (XElement parentElement) |
| |
| override void | ShallowRemove () |
| | Remove the entity from the entity list without removing links to other entities.
|
| |
| override void | Remove () |
| |
| 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 | 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 () |
| |
| 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.
|
| |
|
| static bool | GenerateSubWaypoints (Submarine submarine) |
| |
| static WayPoint | GetRandom (SpawnType spawnType=SpawnType.Human, JobPrefab assignedJob=null, Submarine sub=null, bool useSyncedRand=false, string spawnPointTag=null, bool ignoreSubmarine=false) |
| |
| static WayPoint[] | SelectCrewSpawnPoints (List< CharacterInfo > crew, Submarine submarine) |
| |
| static WayPoint | Load (ContentXElement element, Submarine submarine, IdRemap idRemap) |
| |
| 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.
|
| |
| 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 IReadOnlyCollection< Entity > | GetEntities () |
| |
| static int | FindFreeIdBlock (int minBlockSize) |
| | Finds a contiguous block of free IDs of at least the given size.
|
| |
| static Entity | FindEntityByID (ushort ID) |
| | Find an entity based on the ID.
|
| |
| static void | RemoveAll () |
| |
| static void | DumpIds (int count, string filename) |
| |
|
| bool | IsInWater [get] |
| |
| bool | IsTraversable [get] |
| |
| Gap | ConnectedGap [get, set] |
| |
| Door | ConnectedDoor [get] |
| |
| Hull | CurrentHull [get] |
| |
| SpawnType | SpawnType [get, set] |
| |
| Point | ExitPointSize [get] |
| |
| Rectangle | ExitPointWorldRect [get] |
| |
| Action< WayPoint > | OnLinksChanged [get, set] |
| |
| override string | Name [get] |
| |
| string | IdCardDesc [get] |
| |
| string[] | IdCardTags [get] |
| |
| IEnumerable< Identifier > | Tags [get] |
| |
| JobPrefab | AssignedJob [get] |
| |
| 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] |
| |