载入中...
搜索中...
未找到
GameWorldContext.hpp
浏览该文件的文档.
94[[nodiscard]] EVENGINE_API_FOUNDATION Result<Value> buildGameWorldSnapshot(const GameWorldSnapshotInput& input);
106[[nodiscard]] EVENGINE_API_FOUNDATION std::vector<std::string> readConfiguredModules(HSQUIRRELVM vm);
Move-only, checked operation results for the common layer.
Owning, renderer-independent dynamic values.
Definition ActionGuideExport.cpp:13
std::vector< std::string > readConfiguredModules(HSQUIRRELVM vm)
Read config.modules / optionalModules from the attached VM root.
Definition GameWorldContext.cpp:229
Result< Value > buildGameWorldSnapshot(const GameWorldSnapshotInput &input)
Assemble runtime world brief plus live system lists.
Definition GameWorldContext.cpp:179
constexpr std::int64_t kGameWorldSchemaVersion
Schema version for the game-world snapshot.
Definition GameWorldContext.hpp:38
constexpr std::string_view kGameWorldSchemaId
Schema id for the game-world snapshot returned to agents.
Definition GameWorldContext.hpp:36
std::string readConfigTitle(HSQUIRRELVM vm)
Read config.title from the attached VM root.
Definition GameWorldContext.cpp:215
Result< Value > liveGameWorldSnapshot()
Build the Discover snapshot against the live engine.
Definition GameWorldContext.cpp:292
void clearWorldContext()
Drop the runtime world brief (soft restart with script reload).
Definition GameWorldContext.cpp:168
std::vector< std::string > readLiveModules(HSQUIRRELVM vm)
List instantiated module slots declared in eve.moduleList.
Definition GameWorldContext.cpp:243
Result< Value > parseWorldObject(const Value &world)
Validate one runtime-published world object.
Definition GameWorldContext.cpp:109
const Value * runtimeWorldContext() noexcept
Current runtime brief, or null when none is published. @ownership Borrowed; valid until the next publ...
Definition GameWorldContext.cpp:175
Result< void > publishWorldContext(Value world)
Replace the runtime world brief published by the live game script.
Definition GameWorldContext.cpp:160
bool hasWorldContext() noexcept
Whether a runtime brief is currently published.
Definition GameWorldContext.cpp:173
Inputs used to assemble one Discover snapshot. @ownership Callers own the pointed-to Values; they are...
Definition GameWorldContext.hpp:72
std::string gameRoot
Absolute or relative game root reported to agents.
Definition GameWorldContext.hpp:78
std::vector< std::string > liveModules
Instantiated module slot names when readable from the VM.
Definition GameWorldContext.hpp:86
std::vector< std::string > configuredModules
config.modules (+ optionalModules) when readable from the VM.
Definition GameWorldContext.hpp:84
std::string configTitle
config.title when readable from the VM (window / project title).
Definition GameWorldContext.hpp:80
std::string contractId
Contract id when a Play contract loaded; empty otherwise.
Definition GameWorldContext.hpp:74
std::vector< std::string > domains
Published gameplay-control domain names (sorted).
Definition GameWorldContext.hpp:82