class
WaterBodySystem
Builds and shades spline-driven water bodies (Ocean / Lake / River). Runs alongside the global WaterSystem: each WaterBodyComponent gets its own surface mesh regenerated when the spline changes, its own water material, and a published surface descriptor the buoyancy / underwater / character water paths query per body.
- Module
- Game
- Header
#include "Water/WaterBodySystem.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
WaterBodySystem() = default | WaterBodySystem | |
~WaterBodySystem() override = default | ~WaterBodySystem | |
WaterBodySystem(const WaterBodySystem&) = delete | WaterBodySystem |
Public functions
| Returns | Name | Description |
|---|---|---|
WaterBodySystem& | operator= | |
void | Initialize | |
void | Shutdown | |
void | Update | |
void | InvalidateSpectrumCache | Drops the parsed .mwaves cache so the next tick re-reads every spectrum from disk. |
Function details
WaterBodySystem
C++
WaterBodySystem() = default~WaterBodySystem
C++
~WaterBodySystem() override = defaultWaterBodySystem
C++
WaterBodySystem(const WaterBodySystem&) = deleteoperator=
C++
WaterBodySystem& operator=(const WaterBodySystem&) = deleteInitialize
C++
void Initialize(World* world) overrideShutdown
C++
void Shutdown() overrideUpdate
C++
void Update(float deltaTime) overrideInvalidateSpectrumCache
C++
void InvalidateSpectrumCache()Drops the parsed .mwaves cache so the next tick re-reads every spectrum from disk. The editor calls it after saving one — without it a body keeps the waves it was built with and the asset editor looks broken.
Generated from Water/WaterBodySystem.h via game.json · Nov 5, 2026Version 1.0.0