mirror of
https://github.com/Relintai/world_generator.git
synced 2025-04-13 21:30:51 +02:00
Fix a few getters and setters.
This commit is contained in:
parent
a279e97720
commit
977114f072
@ -756,7 +756,7 @@ Vector<Variant> Dungeon::get_voxel_surfaces() {
|
||||
void Dungeon::set_voxel_surfaces(const Vector<Variant> &voxel_surfaces) {
|
||||
_voxel_surfaces.clear();
|
||||
for (int i = 0; i < voxel_surfaces.size(); i++) {
|
||||
Ref<EnvironmentData> voxel_surface = Ref<EnvironmentData>(voxel_surfaces[i]);
|
||||
Ref<VoxelSurface> voxel_surface = Ref<VoxelSurface>(voxel_surfaces[i]);
|
||||
|
||||
_voxel_surfaces.push_back(voxel_surface);
|
||||
}
|
||||
@ -913,7 +913,7 @@ Vector<Variant> Dungeon::get_terra_surfaces() {
|
||||
void Dungeon::set_terra_surfaces(const Vector<Variant> &terra_surfaces) {
|
||||
_terra_surfaces.clear();
|
||||
for (int i = 0; i < terra_surfaces.size(); i++) {
|
||||
Ref<EnvironmentData> terra_surface = Ref<EnvironmentData>(terra_surfaces[i]);
|
||||
Ref<TerraSurface> terra_surface = Ref<TerraSurface>(terra_surfaces[i]);
|
||||
|
||||
_terra_surfaces.push_back(terra_surface);
|
||||
}
|
||||
|
@ -413,7 +413,7 @@ Vector<Variant> DungeonRoom::get_voxel_surfaces() {
|
||||
void DungeonRoom::set_voxel_surfaces(const Vector<Variant> &voxel_surfaces) {
|
||||
_voxel_surfaces.clear();
|
||||
for (int i = 0; i < voxel_surfaces.size(); i++) {
|
||||
Ref<TerraSurface> voxel_surface = Ref<TerraSurface>(voxel_surfaces[i]);
|
||||
Ref<VoxelSurface> voxel_surface = Ref<VoxelSurface>(voxel_surfaces[i]);
|
||||
|
||||
_voxel_surfaces.push_back(voxel_surface);
|
||||
}
|
||||
|
@ -318,7 +318,7 @@ Vector<Variant> Planet::get_voxel_surfaces() {
|
||||
void Planet::set_voxel_surfaces(const Vector<Variant> &voxel_surfaces) {
|
||||
_voxel_surfaces.clear();
|
||||
for (int i = 0; i < voxel_surfaces.size(); i++) {
|
||||
Ref<EnvironmentData> voxel_surface = Ref<EnvironmentData>(voxel_surfaces[i]);
|
||||
Ref<VoxelSurface> voxel_surface = Ref<VoxelSurface>(voxel_surfaces[i]);
|
||||
|
||||
_voxel_surfaces.push_back(voxel_surface);
|
||||
}
|
||||
@ -456,7 +456,7 @@ Vector<Variant> Planet::get_terra_surfaces() {
|
||||
void Planet::set_terra_surfaces(const Vector<Variant> &terra_surfaces) {
|
||||
_terra_surfaces.clear();
|
||||
for (int i = 0; i < terra_surfaces.size(); i++) {
|
||||
Ref<EnvironmentData> terra_surface = Ref<EnvironmentData>(terra_surfaces[i]);
|
||||
Ref<TerraSurface> terra_surface = Ref<TerraSurface>(terra_surfaces[i]);
|
||||
|
||||
_terra_surfaces.push_back(terra_surface);
|
||||
}
|
||||
@ -483,7 +483,7 @@ void Planet::_setup_terra_library(Ref<TerramanLibrary> library) {
|
||||
Ref<Biome> s = get_biome(i);
|
||||
|
||||
if (s.is_valid()) {
|
||||
// s->setup_terra_library(library);
|
||||
s->setup_terra_library(library);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user