2019-09-24 02:42:42 +02:00
|
|
|
#include "planet.h"
|
2019-09-22 22:12:20 +02:00
|
|
|
|
2019-09-24 02:42:42 +02:00
|
|
|
void Planet::generate_chunk(Ref<VoxelChunk> chunk) {
|
|
|
|
if (has_method("_generate_chunk")) {
|
|
|
|
call("_generate_chunk", chunk);
|
|
|
|
}
|
2019-09-22 22:12:20 +02:00
|
|
|
}
|
|
|
|
|
2019-09-24 02:42:42 +02:00
|
|
|
Planet::Planet() {
|
2019-09-22 22:12:20 +02:00
|
|
|
|
|
|
|
}
|
2019-09-24 02:42:42 +02:00
|
|
|
Planet::~Planet() {
|
2019-09-22 22:12:20 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-09-24 02:42:42 +02:00
|
|
|
void Planet::_bind_methods() {
|
|
|
|
BIND_VMETHOD(MethodInfo("_generate_chunk", PropertyInfo(Variant::OBJECT, "structure", PROPERTY_HINT_RESOURCE_TYPE, "VoxelChunk")));
|
|
|
|
|
|
|
|
ClassDB::bind_method(D_METHOD("generate_chunk", "chunk"), &Planet::generate_chunk);
|
2019-09-22 22:12:20 +02:00
|
|
|
}
|