C# Class fCraft.MapGeneration.MapGenUtil

Mostrar archivo Open project: fragmer/fCraft

Private Properties

Property Type Description
GetGeneratorByName MapGenerator
LoadParamsFromMap MapGeneratorParameters

Public Methods

Method Description
ContainsMapGenParams ( [ map ) : bool

Determines whether given map contains embedded map generation parameters.

Init ( ) : void
RegisterGenerator ( [ gen ) : void

Registers a new map generator.

SaveToMap ( [ mapGenParams, [ map ) : void

Embeds given map generation parameters in a map file.

Private Methods

Method Description
GetGeneratorByName ( [ genName ) : MapGenerator
LoadParamsFromMap ( [ map ) : MapGeneratorParameters

Method Details

ContainsMapGenParams() public static method

Determines whether given map contains embedded map generation parameters.
map is null.
public static ContainsMapGenParams ( [ map ) : bool
map [ Map from which to read parameters.
return bool

Init() public static method

public static Init ( ) : void
return void

RegisterGenerator() public static method

Registers a new map generator.
gen is null. A generator with the same name has already been registered.
public static RegisterGenerator ( [ gen ) : void
gen [ MapGenerator to register. Must have a unique name.
return void

SaveToMap() public static method

Embeds given map generation parameters in a map file.
mapGenParams or map is null.
public static SaveToMap ( [ mapGenParams, [ map ) : void
mapGenParams [ Parameters to embed.
map [ Map to embed parameters in.
return void