载入中...
搜索中...
未找到
RPGGameSaveParticipant.cpp
浏览该文件的文档.
23RPGGameSaveParticipant::RPGGameSaveParticipant(RPGSaveSession& session) noexcept : session_(&session) {}
33Result<std::unique_ptr<IPreparedGameRestore>> RPGGameSaveParticipant::prepare(const Value& state) {
37 if (!prepared.ok()) return Result<std::unique_ptr<IPreparedGameRestore>>::failure(prepared.status());
Transactional composition of persistent RPG state owners.
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
static Result< Value > fromJson(std::string_view json)
Parse one strict JSON value into an owning Value.
Definition Value.cpp:177
Result< Value > capture() const override
Capture an independent owning snapshot of this domain.
Definition RPGGameSaveParticipant.cpp:27
Result< std::unique_ptr< IPreparedGameRestore > > prepare(const Value &state) override
Definition RPGGameSaveParticipant.cpp:33
RPGGameSaveParticipant(RPGSaveSession &session) noexcept
The bound session must outlive this adapter and any game-save transaction.
Definition RPGGameSaveParticipant.cpp:23
std::string_view saveKey() const noexcept override
Stable unique participant key within the game-save schema.
Definition RPGGameSaveParticipant.cpp:25
A non-owning save boundary for the persistent classic-RPG state owners.
Definition RPGSaveSession.h:49
eve::Result< std::string > snapshotJson() const
Capture every bound participant into one deterministic versioned JSON document.
Definition RPGSaveSession.cpp:362
eve::Result< PreparedRestore > prepareRestoreSnapshotJson(std::string_view json)
Parse, migrate and validate every RPG participant without publishing live state.
Definition RPGSaveSession.cpp:414
Result< VehiclePhysicsStatus > commit(physics::World &world, physics::ForceBatch &batch, std::shared_ptr< VehicleWheelRuntime > &runtime, std::vector< VehicleEntity::SuspensionState::WheelState > candidate, const SimulationStep &step)
Definition VehicleTireRuntime.cpp:87
Definition Container.h:602