A class in Root.Township, Alta.Map.
A hashed map asset: the map pieces players can uncover and the world area it covers.
Constructors
| Member | What it is |
|---|
Map() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
5 private and internal fields
| Member | What it is |
|---|
private uint firstNonReservedIndex | Backing field for FirstNonReservedIndex. Landmark indexes below it are reserved; new ones start here. 1000 by default. |
private MapPiece[] globalMapPieces | Backing field for GlobalMapPieces. |
private MapPiece[] pieces | Backing field for Pieces, the map pieces players can discover. |
private Vector2 worldPositionBottomLeft | Backing field for WorldPositionBottomLeft: the world x/z of the map's bottom-left corner. |
private Vector2 worldPositionTopRight | Backing field for WorldPositionTopRight: the world x/z of the map's top-right corner. |
Properties
| Member | What it is |
|---|
uint FirstNonReservedIndex { get; } | First landmark index not reserved for fixed landmarks (default 1000). |
MapPiece[] GlobalMapPieces { get; } | Map pieces shown to everyone. |
MapPiece[] Pieces { get; } | The map pieces that can be uncovered. |
Vector2 WorldPositionBottomLeft { get; } | World XZ of the map's bottom-left corner. |
Vector2 WorldPositionTopRight { get; } | World XZ of the map's top-right corner. |
Events
| Member | What it is |
|---|
event Action<int, MapPiece> PieceDiscovered | Raised with the index and piece when a map piece is uncovered. |
Methods
| Member | What it is |
|---|
void OnPieceDiscovered(int pieceIndex) | Raises PieceDiscovered for a piece index. |
Used in
Members of other types that take, return or hold a Map:
ClientLandmarkManager.map, Landmark.map, Landmark.Map, LandmarkManager.map, LandmarkSaveData.Map, MapBoard.map, MapBoard.Map, MapBoardSaveData1.map, MapManager.DiscoverPiece, MapManager.MapPieceIdentifier.map, MapManager.MapPieceIdentifier.MapPieceIdentifier, MapSaveFormat.MapPieceStates, MarkerInfo.Map, OldLandmarkSaveData1.Map, PlayerMapManager.DiscoverPiece, PlayerMapManager.GetUndiscoveredMapPieces, PlayerMapManager.IsThisMapPieceDiscovered, PlayerMapManager.SerializeMap, ServerLandmarkManager.ServerLandmarkManager.