#ifndef VOXELMAN_PROP_H #define VOXELMAN_PROP_H #include "core/reference.h" #include "core/vector.h" #include "voxelman_prop_data.h" class VoxelmanProp : public Resource { GDCLASS(VoxelmanProp, Resource); public: Ref get_prop(const int index) const; void set_prop(const int index, const Ref prop); int get_num_props(const int index) const; void set_num_props(const int size); VoxelmanProp(); ~VoxelmanProp(); enum { MAX_PROPS = 36 }; protected: static void _bind_methods(); void _validate_property(PropertyInfo &property) const; private: Vector > _props; int _num_props; }; #endif