Merge pull request #207 from tdaffin/fix_mono_glue

Fix bindings so that generate-mono-glue for C# bindings works
master
Marc 2020-11-08 00:04:49 +00:00 committed by GitHub
commit 507b4c8922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -410,7 +410,7 @@ void Voxel::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_transparent", "transparent"), &Voxel::set_transparent);
ClassDB::bind_method(D_METHOD("is_transparent"), &Voxel::is_transparent);
ClassDB::bind_method(D_METHOD("set_transparency_index", "transparent"), &Voxel::set_transparency_index);
ClassDB::bind_method(D_METHOD("set_transparency_index", "transparency_index"), &Voxel::set_transparency_index);
ClassDB::bind_method(D_METHOD("get_transparency_index"), &Voxel::get_transparency_index);
ClassDB::bind_method(D_METHOD("set_random_tickable", "rt"), &Voxel::set_random_tickable);

View File

@ -96,7 +96,7 @@ public:
_FORCE_INLINE_ bool is_transparent() const { return _transparency_index != 0; }
void set_transparency_index(int i);
uint8_t get_transparency_index() const { return _transparency_index; }
int get_transparency_index() const { return _transparency_index; }
void set_custom_mesh(Ref<Mesh> mesh);
Ref<Mesh> get_custom_mesh() const { return _custom_mesh; }