Class StringDeserializeMapCreationStrategy<T>
The StringDeserializeMapCreationStrategy creates a Map of the specified type from a string representation of the Map
Inheritance
System.Object
StringDeserializeMapCreationStrategy<T>
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.MapCreation
Assembly: RogueSharp.dll
Syntax
public class StringDeserializeMapCreationStrategy<T> : IMapCreationStrategy<T> where T : IMap, new()
Type Parameters
Name | Description |
---|---|
T | The type of IMap that will be created |
Constructors
| Improve this Doc View SourceStringDeserializeMapCreationStrategy(String)
Constructs a new StringDeserializeMapCreationStrategy with the specified parameters
Declaration
public StringDeserializeMapCreationStrategy(string mapRepresentation)
Parameters
Type | Name | Description |
---|---|---|
System.String | mapRepresentation | A string representation of the Map to be created |
Methods
| Improve this Doc View SourceCreateMap()
Creates a Map of the specified type from a string representation of the Map
Declaration
public T CreateMap()
Returns
Type | Description |
---|---|
T | An IMap of the specified type |
Remarks
The following symbols represent Cells on the Map:
.
:Cell
is transparent and walkables
:Cell
is walkable (but not transparent)o
:Cell
is transparent (but not walkable)#
:Cell
is not transparent or walkable