Fixed linker errors aswell.

This commit is contained in:
Relintai 2019-11-18 22:40:58 +01:00
parent de103a3fdf
commit 5bfe5e7905
2 changed files with 5 additions and 5 deletions

View File

@ -197,14 +197,14 @@ void VoxelChunk::set_size(int size_x, int size_y, int siye_z, int margin_start,
} }
_FORCE_INLINE_ bool VoxelChunk::validate_channel_position(int x, int y, int z) const { bool VoxelChunk::validate_channel_position(int x, int y, int z) const {
return false; return false;
} }
_FORCE_INLINE_ uint8_t VoxelChunk::get_voxel(int x, int y, int z, int channel_index) const { uint8_t VoxelChunk::get_voxel(int x, int y, int z, int channel_index) const {
return 0; return 0;
} }
_FORCE_INLINE_ void VoxelChunk::set_voxel(uint8_t value, int x, int y, int z, int channel_index) { void VoxelChunk::set_voxel(uint8_t value, int x, int y, int z, int channel_index) {
} }

View File

@ -171,9 +171,9 @@ void VoxelStructure::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_voxel", "x", "y", "z", "channel_index"), &VoxelStructure::get_voxel, DEFVAL(0)); ClassDB::bind_method(D_METHOD("get_voxel", "x", "y", "z", "channel_index"), &VoxelStructure::get_voxel, DEFVAL(0));
ClassDB::bind_method(D_METHOD("set_voxel", "value", "x", "y", "z", "channel_index"), &VoxelStructure::set_voxel, DEFVAL(0)); ClassDB::bind_method(D_METHOD("set_voxel", "value", "x", "y", "z", "channel_index"), &VoxelStructure::set_voxel, DEFVAL(0));
ClassDB::bind_method(D_METHOD("set_voxel_v", "value", "pos", "channel_index"), &VoxelStructure::set_voxel_v, DEFVAL(0)); //ClassDB::bind_method(D_METHOD("set_voxel_v", "value", "pos", "channel_index"), &VoxelStructure::set_voxel_v, DEFVAL(0));
ClassDB::bind_method(D_METHOD("add_chunk", "chunk", "x", "y", "z"), &VoxelStructure::add_chunk_bind); //ClassDB::bind_method(D_METHOD("add_chunk", "chunk", "x", "y", "z"), &VoxelStructure::add_chunk_bind);
ClassDB::bind_method(D_METHOD("get_chunk", "x", "y", "z"), &VoxelStructure::get_chunk); ClassDB::bind_method(D_METHOD("get_chunk", "x", "y", "z"), &VoxelStructure::get_chunk);
ClassDB::bind_method(D_METHOD("remove_chunk", "x", "y", "z"), &VoxelStructure::remove_chunk); ClassDB::bind_method(D_METHOD("remove_chunk", "x", "y", "z"), &VoxelStructure::remove_chunk);