#ifndef PLANET_H #define PLANET_H #include "core/reference.h" #include "core/image.h" #include "../../voxelman/world/voxel_chunk.h" #include "biome.h" #include "../../voxelman/world/environment_data.h" class Planet : public Reference { GDCLASS(Planet, Reference); public: int get_seed(); void set_seed(int value); //Environment Ref get_environment(); void set_environment(Ref value); Ref get_biome(const int index) const; void set_biome(const int index, const Ref biome); void add_biome(const Ref biome); void remove_biome(const int index); int get_biome_count() const; void setup(); void generate_chunk(Ref chunk, bool spawn_mobs); Ref generate_map(); Planet(); ~Planet(); protected: static void _bind_methods(); private: int _seed; Ref _environment; Vector > _biomes; }; #endif