Class MapState
A class representing the state of a Map which can be used to Restore a Map to a previously Saved state This POCO (Plain Old C# Object) can be easily serialized and deserialized
Inheritance
System.Object
MapState
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: RogueSharp
Assembly: RogueSharp.dll
Syntax
public class MapState
Properties
| Improve this Doc View SourceCells
An array of the Flags Enumeration of CellProperties for each Cell in the Map. The index of the array corresponds to the location of the Cell within the Map using the formula: index = ( y * Width ) + x
Declaration
public MapState.CellProperties[] Cells { get; set; }
Property Value
Type | Description |
---|---|
MapState.CellProperties[] |
Height
How many Cells tall the Map is
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Width
How many Cells wide the Map is
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |