mirror of
https://github.com/Relintai/voxelman.git
synced 2024-11-22 10:57:30 +01:00
21 lines
534 B
C++
21 lines
534 B
C++
|
#include "mesh_data_resource.h"
|
||
|
|
||
|
Array MeshDataResource::get_array() {
|
||
|
return _arrays;
|
||
|
}
|
||
|
void MeshDataResource::set_array(const Array &p_arrays) {
|
||
|
_arrays.clear();
|
||
|
|
||
|
_arrays = p_arrays.duplicate(true);
|
||
|
}
|
||
|
|
||
|
MeshDataResource::MeshDataResource() {
|
||
|
|
||
|
}
|
||
|
|
||
|
void MeshDataResource::_bind_methods() {
|
||
|
ClassDB::bind_method(D_METHOD("get_array"), &MeshDataResource::get_array);
|
||
|
ClassDB::bind_method(D_METHOD("set_array", "array"), &MeshDataResource::set_array);
|
||
|
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "array"), "set_array", "get_array");
|
||
|
}
|