载入中...
搜索中...
未找到
WaterSystemBindings.cpp
浏览该文件的文档.
25 auto settings = table.addClass("WaterSystemSettings", ssq::Class::Ctor<WaterSystemSettings()>());
50 Diagnostic::error(DiagnosticCode::InvalidArgument, "water.system: non-null state, settings and scene required"));
60 Diagnostic::error(DiagnosticCode::InvalidArgument, "water.system: non-null state, settings and scene required")).status());
63 table.addFunc("updateWaterSeaLevel", [vm = table.getHandle()](WaterSystemState* state, float seaLevel,
67 Diagnostic::error(DiagnosticCode::InvalidArgument, "water.system: non-null state, settings and scene required")).status());
The single Squirrel projection for common Result, Status and Value.
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
void exposeWaterSystemBindings(ssq::Table &table)
Register water-system value types and checked operations with the VM owner thread.
Definition WaterSystemBindings.cpp:11
WaterAutoUpdateMode
Reflection refresh policy used by the caller-owned water controller.
Definition WaterSystem.h:16
Result< bool > updateWaterSeaLevel(WaterSystemState &state, float seaLevel, bool regenerateReflections)
Atomically move the water surface to a new sea level.
Definition WaterSystem.cpp:97
ssq::Table projectResult(HSQUIRRELVM vm, Result< void > &&result)
Consume and project a void native Result using the common schema.
Definition SquirrelBinding.cpp:470
@ 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
bool ignoreSceneConditions
Definition WaterSystem.h:35
Caller-owned water-system state; contains no scene pointers or hidden clock.
Definition WaterSystem.h:39
std::uint64_t refreshRevision
Definition WaterSystem.h:47