mirror of
https://github.com/Relintai/terraman.git
synced 2025-04-21 21:41:20 +02:00
Fix a few return values.
This commit is contained in:
parent
f3c3bac3d1
commit
951e01a66e
@ -67,11 +67,11 @@ Ref<Material> TerramanLibrary::material_lod_get(const int index) {
|
||||
return _materials[index];
|
||||
}
|
||||
|
||||
Variant TerramanLibrary::material_cached_get_key(const Ref<TerraChunk> &chunk) {
|
||||
int TerramanLibrary::material_cached_get_key(const Ref<TerraChunk> &chunk) {
|
||||
return call("_material_cached_get_key", chunk);
|
||||
}
|
||||
|
||||
Variant TerramanLibrary::_material_cached_get_key(Ref<TerraChunk> chunk) {
|
||||
int TerramanLibrary::_material_cached_get_key(Ref<TerraChunk> chunk) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -142,11 +142,11 @@ Ref<Material> TerramanLibrary::liquid_material_lod_get(const int index) {
|
||||
return _liquid_materials[index];
|
||||
}
|
||||
|
||||
Variant TerramanLibrary::liquid_material_cached_get_key(const Ref<TerraChunk> &chunk) {
|
||||
int TerramanLibrary::liquid_material_cached_get_key(const Ref<TerraChunk> &chunk) {
|
||||
return call("_liquid_material_cached_get_key", chunk);
|
||||
}
|
||||
|
||||
Variant TerramanLibrary::_liquid_material_cached_get_key(Ref<TerraChunk> chunk) {
|
||||
int TerramanLibrary::_liquid_material_cached_get_key(Ref<TerraChunk> chunk) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -217,11 +217,11 @@ Ref<Material> TerramanLibrary::prop_material_lod_get(const int index) {
|
||||
return _prop_materials[index];
|
||||
}
|
||||
|
||||
Variant TerramanLibrary::prop_material_cached_get_key(const Ref<TerraChunk> &chunk) {
|
||||
int TerramanLibrary::prop_material_cached_get_key(const Ref<TerraChunk> &chunk) {
|
||||
return call("_prop_material_cached_get_key", chunk);
|
||||
}
|
||||
|
||||
Variant TerramanLibrary::_prop_material_cached_get_key(Ref<TerraChunk> chunk) {
|
||||
int TerramanLibrary::_prop_material_cached_get_key(Ref<TerraChunk> chunk) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -71,8 +71,8 @@ public:
|
||||
Ref<Material> material_get(const int index);
|
||||
Ref<Material> material_lod_get(const int index);
|
||||
|
||||
Variant material_cached_get_key(const Ref<TerraChunk> &chunk);
|
||||
virtual Variant _material_cached_get_key(Ref<TerraChunk> chunk);
|
||||
int material_cached_get_key(const Ref<TerraChunk> &chunk);
|
||||
virtual int _material_cached_get_key(Ref<TerraChunk> chunk);
|
||||
Ref<Material> material_lod_cached_get(const int index, const int key);
|
||||
virtual Ref<Material> _material_lod_cached_get(const int index, const int key);
|
||||
|
||||
@ -88,8 +88,8 @@ public:
|
||||
Ref<Material> liquid_material_get(const int index);
|
||||
Ref<Material> liquid_material_lod_get(const int index);
|
||||
|
||||
Variant liquid_material_cached_get_key(const Ref<TerraChunk> &chunk);
|
||||
virtual Variant _liquid_material_cached_get_key(Ref<TerraChunk> chunk);
|
||||
int liquid_material_cached_get_key(const Ref<TerraChunk> &chunk);
|
||||
virtual int _liquid_material_cached_get_key(Ref<TerraChunk> chunk);
|
||||
Ref<Material> liquid_material_lod_cached_get(const int index, const int key);
|
||||
virtual Ref<Material> _liquid_material_lod_cached_get(const int index, const int key);
|
||||
|
||||
@ -105,8 +105,8 @@ public:
|
||||
Ref<Material> prop_material_get(const int index);
|
||||
Ref<Material> prop_material_lod_get(const int index);
|
||||
|
||||
Variant prop_material_cached_get_key(const Ref<TerraChunk> &chunk);
|
||||
virtual Variant _prop_material_cached_get_key(Ref<TerraChunk> chunk);
|
||||
int prop_material_cached_get_key(const Ref<TerraChunk> &chunk);
|
||||
virtual int _prop_material_cached_get_key(Ref<TerraChunk> chunk);
|
||||
Ref<Material> prop_material_lod_cached_get(const int index, const int key);
|
||||
virtual Ref<Material> _prop_material_lod_cached_get(const int index, const int key);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user