aboutsummaryrefslogtreecommitdiff
path: root/source/game/planets/generation/IWorldGenerator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/planets/generation/IWorldGenerator.cs')
-rw-r--r--source/game/planets/generation/IWorldGenerator.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/game/planets/generation/IWorldGenerator.cs b/source/game/planets/generation/IWorldGenerator.cs
new file mode 100644
index 0000000..92b528b
--- /dev/null
+++ b/source/game/planets/generation/IWorldGenerator.cs
@@ -0,0 +1,18 @@
+using System;
+using Microsoft.Xna.Framework;
+
+namespace Celesteia.Game.Planets.Generation {
+ public interface IChunkProvider {
+ // Provide a chunk's tile map.
+ public void ProvideChunk(Chunk c);
+
+ // Get the natural block and wall at X and Y.
+ public byte[] GetNaturalBlocks(int x, int y);
+
+ // Get a safe spot to spawn the player.
+ public Vector2 GetSpawnpoint();
+
+ // Generate various structures in the world.
+ public void GenerateStructures(Action<string> progressReport = null);
+ }
+} \ No newline at end of file