Wiki
Clone wikiRogueSharp / RogueSharp / Map / Create
MapCreate Method
Static factory method which creates a new Map using the specified IMapCreationStrategy
Namespace: RogueSharp
Assembly:
Syntax
public static Map Create( IMapCreationStrategy<Map> mapCreationStrategy )
Parameters
mapCreationStrategy
Type: RogueSharp.MapCreationIMapCreationStrategyMap
A class that implements IMapCreationStrategy and has CreateMap method which defines algorithms for creating interesting Maps
Return Value
Type: Map
Map created by calling CreateMap from the specified IMapCreationStrategy
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown on null map creation strategy |
Remarks
Several classes implementing IMapCreationStrategy are included with RogueSharp but they are very basic It recommended that you create your own class implementing this interface to create more interesting Maps
See Also
Reference
Map Class
RogueSharp Namespace
[4]: 2014-2016 Faron Bracy
Updated