Fixes in modules

This commit is contained in:
2025-12-02 14:30:05 +03:00
parent 5b014dcb65
commit 6eed5063e6
16 changed files with 121 additions and 20 deletions

View File

@@ -59,6 +59,10 @@ static const uint32_t WATER_MASK = 0xF00;
WaterModule::WaterModule(flecs::world &ecs)
{
ecs.module<WaterModule>();
ecs.component<InWater>();
ecs.component<WaterReady>().add(flecs::Singleton);
ecs.component<WaterAlmostReady>().add(flecs::Singleton);
ecs.component<GroundCheckReady>().add(flecs::Singleton);
ecs.component<WaterSurface>()
.on_add([](flecs::entity e, WaterSurface &water) {
water.mAbove = false;