using System; using Cerios.Miner.Blocks; namespace Cerios.Miner.Worlds.Generation { /// /// The base class of all world generators /// public abstract class Generator { /// /// The seed of the map to be generated /// private long Seed { get; set; } /// /// Create a new instance of the map generator /// /// The seed of the map to be generated public Generator(long seed) { // Add the generator to the game's generator list CeriosMiner.Instance.Generators.Add(this); // Set the seed to be used when generating the map Seed = seed; } /// /// Get the block at the specified position /// /// The X coordinate /// The Y coordinate /// The block at the location public abstract Block GetMaterialAtPosition(int x, int y); } }