#ifndef WORLD_GENERATOR_H #define WORLD_GENERATOR_H #include "core/resource.h" #include "core/vector.h" #include "data/planet_data.h" #include "main/planet.h" class WorldGenerator : public Resource { GDCLASS(WorldGenerator, Resource); public: Ref get_planet_data(const int index) const; void set_planet_data(const int index, const Ref planet_data); void add_planet_data(const Ref planet_data); void remove_planet_data(const int index); int get_planet_data_count() const; Vector get_planet_datas(); void set_planet_datas(const Vector &planet_datas); Ref setup_planet(int seed); WorldGenerator(); ~WorldGenerator(); protected: static void _bind_methods(); private: Vector > _planet_datas; }; #endif