载入中...
搜索中...
未找到
RpgDialect.h
浏览该文件的文档.
158using StoryAnimationHandler = std::function<eve::Result<StoryAnimationStatus>(const StoryAnimationRequest&)>;
250 [[nodiscard]] static eve::Result<int> replaceFromDnutStrict(const std::string& source, const std::string& path);
Move-only, checked operation results for the common layer.
Owning, renderer-independent dynamic values.
Canonical step vocabulary owner and runtime handler router.
Definition StepKindRegistry.h:108
Authoritative ordered relationship between stable party member IDs and RPG actors....
Definition Party.h:24
Strict process-local catalogue of .dnut story assets.
Definition RpgDialect.h:240
Caller-owned cursor over one published .dnut story.
Definition RpgDialect.h:275
RpgStorySession(RpgStorySession &&) noexcept
Rpg story session.
Definition ConversationDialect.cpp:13
运行时容器:固定格数的背包 / 箱子 / 商店栏等。 行为由 InventorySystem 提供;本类暴露便于脚本绑定的薄封装方法。
Definition AvatarInstance.h:37
std::function< eve::Result< StoryMoveStatus >(const StoryMoveRequest &)> StoryMoveHandler
Host movement controller invoked by the move step.
Definition RpgDialect.h:93
StepKindRegistry & rpgStoryStepRegistry()
Process-local step vocabulary for the RPG story dialect.
Definition RpgDialect.cpp:548
@ Unavailable
The target or the clip cannot be played, so the animation step fails.
@ Finished
The clip was applied instantaneously, so the step completes inline.
@ Playing
Playback was accepted and is still running; the host acknowledges the step when it ends.
std::function< eve::Result< StoryAnimationStatus >(const StoryAnimationRequest &)> StoryAnimationHandler
Host animation controller invoked by the animation step.
Definition RpgDialect.h:158
@ Arrived
The actor is already at the destination, so the step completes inline.
@ Unreachable
The destination cannot be reached, so the move step fails.
@ Travelling
The move was accepted and is still running; the host acknowledges the step when it ends.
Definition Container.h:602
Borrowed domain objects an RPG story step runs against.
Definition RpgDialect.h:169
eve::inventory::EquipmentSet * equipment
Equipment set used by equipment steps, or nullptr when unavailable.
Definition RpgDialect.h:177
GameState * gameState
Owner of switches, variables and per-story completion facts.
Definition RpgDialect.h:171
Party * party
Party used to resolve actor=<memberId> when no custom resolver is set.
Definition RpgDialect.h:173
std::function< RPGActor *(const std::string &actorId)> resolveActor
Optional actor resolver that overrides party member lookup.
Definition RpgDialect.h:184
eve::inventory::Bag * bag
Bag used by item and equipment steps, or nullptr when unavailable.
Definition RpgDialect.h:175
StoryAnimationHandler playAnimation
Optional animation controller for animation steps.
Definition RpgDialect.h:216
One animation step request, expressed in the host's own animation space.
Definition RpgDialect.h:121
std::string targetId
Authored target=<id> verbatim; the host's own subject space.
Definition RpgDialect.h:123
One move step request, expressed in the host's own movement space.
Definition RpgDialect.h:55
bool hasDuration
Whether the authored step carried a duration field at all.
Definition RpgDialect.h:72
std::string actorId
Authored actor=<id> verbatim; the host's own subject space.
Definition RpgDialect.h:57
double duration
Authored travel time in seconds; only meaningful when hasDuration.
Definition RpgDialect.h:74