@@ -18,9 +18,10 @@ namespace tsom
1818 {
1919 registry.RegisterClass (EntityClass (" planet" , {
2020 {
21- EntityClass::Property { .name = " CellSize" , .type = EntityPropertyType::Float, .defaultValue = EntityPropertySingleValue<EntityPropertyType::Float>(1 .f ), .isNetworked = true },
22- EntityClass::Property { .name = " CornerRadius" , .type = EntityPropertyType::Float, .defaultValue = EntityPropertySingleValue<EntityPropertyType::Float>(16 .f ), .isNetworked = true },
23- EntityClass::Property { .name = " Gravity" , .type = EntityPropertyType::Float, .defaultValue = EntityPropertySingleValue<EntityPropertyType::Float>(9 .81f ), .isNetworked = true }
21+ EntityClass::Property { .name = " CellSize" , .type = EntityPropertyType::Float, .defaultValue = EntityPropertySingleValue<EntityPropertyType::Float>(1 .f ), .isNetworked = true },
22+ EntityClass::Property { .name = " CornerRadius" , .type = EntityPropertyType::Float, .defaultValue = EntityPropertySingleValue<EntityPropertyType::Float>(16 .f ), .isNetworked = true },
23+ EntityClass::Property { .name = " Gravity" , .type = EntityPropertyType::Float, .defaultValue = EntityPropertySingleValue<EntityPropertyType::Float>(9 .81f ), .isNetworked = true },
24+ EntityClass::Property { .name = " AtmospherePlanetDims" , .type = EntityPropertyType::FloatSize3D, .defaultValue = EntityPropertySingleValue<EntityPropertyType::FloatSize3D>(Nz::Vector3f (60 .f )), .isNetworked = true },
2425 }
2526 },
2627 {
@@ -45,7 +46,7 @@ namespace tsom
4546 planetComponent.planetEntities [layerIndex]->SetParentEntity (entity);
4647 }
4748
48- InitializeChunkEntity (entity);
49+ InitializePlanetEntity (entity);
4950 }
5051 },
5152 {}));
@@ -75,13 +76,17 @@ namespace tsom
7576 shipComponent.shipEntities [layerIndex]->SetParentEntity (entity);
7677 }
7778
78- InitializeChunkEntity (entity);
79+ InitializeShipEntity (entity);
7980 }
8081 },
8182 {}));
8283 }
8384
84- void ChunkClassLibrary::InitializeChunkEntity (entt::handle entity)
85+ void ChunkClassLibrary::InitializePlanetEntity (entt::handle entity)
86+ {
87+ }
88+
89+ void ChunkClassLibrary::InitializeShipEntity (entt::handle entity)
8590 {
8691 }
8792
0 commit comments