载入中...
搜索中...
未找到
WaterSystem.cpp
浏览该文件的文档.
14 !std::isfinite(settings.refreshRate) || settings.refreshRate <= 0.0F || !finite3(scene.sunColor) ||
16 (scene.timeAvailable && (scene.hour < 0 || scene.hour > 23 || scene.minute < 0 || scene.minute > 59))) {
97Result<bool> updateWaterSeaLevel(WaterSystemState& state, float seaLevel, bool regenerateReflections) {
100 DiagnosticCode::InvalidArgument, "water.system: initialized state and finite sea level are required"));
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
Result< bool > advanceWaterSystem(WaterSystemState &state, const WaterSystemSettings &settings, const WaterSceneConditions &scene, float playerX, float playerZ, float dt, int nextSceneCheckFrames)
Advance infinite placement and Pcg-compatible reflection refresh scheduling.
Definition WaterSystem.cpp:50
Result< void > initializeWaterSystem(WaterSystemState &state, const WaterSystemSettings &settings, const WaterSceneConditions &scene, int initialSceneCheckFrames)
Initialize a water controller from an authored policy and current scene snapshot.
Definition WaterSystem.cpp:33
@ SceneConditions
Result< bool > updateWaterSeaLevel(WaterSystemState &state, float seaLevel, bool regenerateReflections)
Atomically move the water surface to a new sea level.
Definition WaterSystem.cpp:97
@ InvalidArgument
Immutable scene inputs used to decide whether water reflections are stale.
Definition WaterSystem.h:19
Authored policy for Pcg-compatible water placement and reflection refresh.
Definition WaterSystem.h:30
Caller-owned water-system state; contains no scene pointers or hidden clock.
Definition WaterSystem.h:39
std::uint64_t refreshRevision
Definition WaterSystem.h:47