Wiki
Clone wikiRogueSharp / RogueSharp / MapState / README
MapState Class
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 Hierarchy
SystemObject
RogueSharpMapState
Namespace: RogueSharp
Assembly:
Syntax
publicclassMapState
The MapState type exposes the following members.
Constructors
Name | Description |
---|---|
MapState | Initializes a new instance of the MapState class |
Properties
Name | Description |
---|---|
Cells | 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 forumla: index = ( y * Width ) + x |
Height | How many Cells tall the Map is |
Width | How many Cells wide the Map is |
Methods
Name | Description |
---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
See Also
Reference
[6]: 2014-2016 Faron Bracy
Updated