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

SignatureNameDescription
WaterBodySystem() = defaultWaterBodySystem
~WaterBodySystem() override = default~WaterBodySystem
WaterBodySystem(const WaterBodySystem&) = deleteWaterBodySystem

Public functions

ReturnsNameDescription
WaterBodySystem&operator=
voidInitialize
voidShutdown
voidUpdate
voidInvalidateSpectrumCacheDrops the parsed .mwaves cache so the next tick re-reads every spectrum from disk.

Function details

WaterBodySystem

C++
WaterBodySystem() = default

~WaterBodySystem

C++
~WaterBodySystem() override = default

WaterBodySystem

C++
WaterBodySystem(const WaterBodySystem&) = delete

operator=

C++
WaterBodySystem& operator=(const WaterBodySystem&) = delete

Initialize

C++
void Initialize(World* world) override

Shutdown

C++
void Shutdown() override

Update

C++
void Update(float deltaTime) override

InvalidateSpectrumCache

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