RogueSharp
Show / Hide Table of Contents

Class StringDeserializeMapCreationStrategy<T>

The StringDeserializeMapCreationStrategy creates a Map of the specified type from a string representation of the Map

Inheritance
System.Object
StringDeserializeMapCreationStrategy<T>
Implements
IMapCreationStrategy<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 Source

StringDeserializeMapCreationStrategy(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 Source

CreateMap()

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 walkable
  • s: Cell is walkable (but not transparent)
  • o: Cell is transparent (but not walkable)
  • #: Cell is not transparent or walkable

Implements

IMapCreationStrategy<T>
  • Improve this Doc
  • View Source
RogueSharp © 2014-2020 Faron Bracy
Back to top