2022-03-17 22:33:22 +01:00
|
|
|
#ifndef MESH_DATA_REOURCE_COLLECTION_H
|
|
|
|
#define MESH_DATA_REOURCE_COLLECTION_H
|
2023-12-17 22:59:50 +01:00
|
|
|
|
2022-03-15 13:29:32 +01:00
|
|
|
|
2022-08-17 13:45:14 +02:00
|
|
|
#include "core/object/resource.h"
|
2022-08-17 12:53:49 +02:00
|
|
|
#include "core/containers/vector.h"
|
2022-03-15 13:29:32 +01:00
|
|
|
|
|
|
|
#include "mesh_data_resource.h"
|
|
|
|
|
|
|
|
class MeshDataResourceCollection : public Resource {
|
|
|
|
GDCLASS(MeshDataResourceCollection, Resource);
|
|
|
|
|
|
|
|
public:
|
|
|
|
void add_mdr(Ref<MeshDataResource> mdr);
|
|
|
|
|
|
|
|
Vector<Variant> get_mdrs();
|
|
|
|
void set_mdrs(const Vector<Variant> &p_arrays);
|
|
|
|
|
|
|
|
MeshDataResourceCollection();
|
|
|
|
~MeshDataResourceCollection();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
|
|
|
private:
|
2022-03-18 03:46:14 +01:00
|
|
|
Vector<Ref<MeshDataResource>> _mdrs;
|
2022-03-15 13:29:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|