world_generator/data/dungeon_data.h
Relintai fc7e054559 -Added environment to everything.
-Destructors will now clean up vectors.
-Fixed a few inheritances.
2019-10-08 00:18:51 +02:00

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