MapPiece
A class in Root.Township, Alta.Map.
One piece of a map that players discover: a sprite and where it sits on the map.
- Listed in World, chunks and saving
- Inherits or implements
HashedGeneralValue<MapPiece> - Derived types
MapPiece - Attributes
CreateAssetMenu - Documented in Map and landmarks
Constructors
| Member | What it is |
|---|---|
MapPiece() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
Properties
| Member | What it is |
|---|---|
Vector2 Offset { get; set; } | Where the piece sits on the map. |
Sprite Sprite { get; } | The piece's image. |
Used in
Members of other types that take, return or hold a MapPiece: