world_generator/data/dungeon_data.h

37 lines
875 B
C
Raw Normal View History

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"
#include "core/vector.h"
2019-09-22 22:12:20 +02:00
2019-09-24 02:42:42 +02:00
#include "../main/dungeon.h"
#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:
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:
Vector<Ref<DungeonRoomData> > _dungeon_room_datas;
2019-09-22 22:12:20 +02:00
};
#endif