2019-09-24 02:42:42 +02:00
|
|
|
#ifndef DUNGEON_DATA_H
|
|
|
|
#define DUNGEON_DATA_H
|
2019-09-22 22:12:20 +02:00
|
|
|
|
|
|
|
#include "core/resource.h"
|
2019-09-24 15:08:43 +02:00
|
|
|
#include "core/vector.h"
|
2019-09-22 22:12:20 +02:00
|
|
|
|
2019-09-24 02:42:42 +02:00
|
|
|
#include "../main/dungeon.h"
|
2019-09-24 15:08:43 +02:00
|
|
|
#include "dungeon_room_data.h"
|
2019-09-24 02:42:42 +02:00
|
|
|
|
|
|
|
class DungeonData : public Resource {
|
|
|
|
GDCLASS(DungeonData, Resource);
|
2019-09-22 22:12:20 +02:00
|
|
|
|
|
|
|
public:
|
2019-09-24 15:08:43 +02:00
|
|
|
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);
|
|
|
|
|
2019-09-22 22:12:20 +02:00
|
|
|
Ref<Dungeon> setup_dungeon(int seed);
|
|
|
|
|
2019-09-24 02:42:42 +02:00
|
|
|
DungeonData();
|
|
|
|
~DungeonData();
|
2019-09-22 22:12:20 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
|
|
|
private:
|
2019-09-24 15:08:43 +02:00
|
|
|
Vector<Ref<DungeonRoomData> > _dungeon_room_datas;
|
2019-09-22 22:12:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|