public MapGeneratorConfiguration(ParseBlock Block) { var attributes = Block.BreakToAttributes <object>(typeof(Attribute), true); UniqueKey = Block.Name; NameGenerator = (MarkovGenerator <char>)attributes[(int)Attribute.NAME_GENERATOR]; TerrainGenerator = (TerrainGeneratorConfiguration)attributes[(int)Attribute.TERRAIN_GENERATOR]; }
public MapGeneratorConfiguration( string UniqueKey, MarkovGenerator <char> NameGenerator, TerrainGeneratorConfiguration TerrainGenerator) { this.UniqueKey = UniqueKey; this.NameGenerator = NameGenerator; this.TerrainGenerator = TerrainGenerator; }