mirror of
https://github.com/Relintai/world_generator.git
synced 2024-11-12 10:15:07 +01:00
51 lines
1.4 KiB
C++
51 lines
1.4 KiB
C++
#ifndef DUNGEON_DATA_H
|
|
#define DUNGEON_DATA_H
|
|
|
|
#include "core/resource.h"
|
|
#include "core/vector.h"
|
|
|
|
#include "../main/dungeon.h"
|
|
#include "dungeon_room_data.h"
|
|
#include "../../voxelman/world/environment_data.h"
|
|
|
|
class DungeonData : public Resource {
|
|
GDCLASS(DungeonData, Resource);
|
|
|
|
public:
|
|
//Rooms
|
|
Ref<DungeonRoomData> get_dungeon_room_data(const int index) const;
|
|
void set_dungeon_room_data(const int index, const Ref<DungeonRoomData> dungeon_room_data);
|
|
void add_dungeon_room_data(const Ref<DungeonRoomData> dungeon_room_data);
|
|
void remove_dungeon_room_data(const int index);
|
|
|
|
int get_dungeon_room_data_count() const;
|
|
|
|
Vector<Variant> get_dungeon_room_datas();
|
|
void set_dungeon_room_datas(const Vector<Variant> &dungeon_room_datas);
|
|
|
|
//Environments
|
|
Ref<EnvironmentData> get_environment_data(const int index) const;
|
|
void set_environment_data(const int index, const Ref<EnvironmentData> environment_data);
|
|
void add_environment_data(const Ref<EnvironmentData> environment_data);
|
|
void remove_environment_data(const int index);
|
|
|
|
int get_environment_data_count() const;
|
|
|
|
Vector<Variant> get_environment_datas();
|
|
void set_environment_datas(const Vector<Variant> &environment_datas);
|
|
|
|
Ref<Dungeon> setup_dungeon(int seed);
|
|
|
|
DungeonData();
|
|
~DungeonData();
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
private:
|
|
Vector<Ref<DungeonRoomData> > _dungeon_room_datas;
|
|
Vector<Ref<EnvironmentData> > _environment_datas;
|
|
};
|
|
|
|
#endif
|