载入中...
搜索中...
未找到
DialogueControl.h
浏览该文件的文档.
89 [[nodiscard]] Result<GameplayCommandReceipt> submitGameplay(const GameplaySession& session, SubjectRef instance,
93 [[nodiscard]] Result<GameplayObservation> advanceGameplay(const GameplaySession& session, SubjectRef instance,
97 [[nodiscard]] Result<std::vector<GameplayEvent>> gameplayEvents(const GameplaySession& session, SubjectRef instance,
Host-neutral player-equivalent command and observation protocol.
Optional companion surface for gameplay providers that can enumerate instances.
Multi-provider gameplay boundary consumed by input, scripts and automation.
Definition GameplayControl.h:90
Optional read-only discovery surface implemented beside a gameplay provider.
Definition GameplayInstanceCatalog.h:32
static constexpr StrongUint64 zero() noexcept
Returns the zero value for this strong type.
Definition StrongUint64.h:24
Exposes the module's conversation runner through the shared gameplay protocol.
Definition DialogueControl.h:44
Result< std::vector< GameplayEvent > > gameplayEvents(const GameplaySession &session, SubjectRef instance, std::uint64_t afterSequence) const override
Return events strictly newer than an instance-local sequence cursor.
Definition DialogueControl.cpp:273
Result< GameplayCommandReceipt > submitGameplay(const GameplaySession &session, SubjectRef instance, const GameplayCommand &command) override
Validate authority and atomically submit one domain command.
Definition DialogueControl.cpp:178
std::string_view gameplayDomain() const noexcept override
Stable provider domain used for discovery and routing.
Definition DialogueControl.cpp:87
~DialogueControl() override
Unpublish without touching the borrowed runner.
Definition DialogueControl.cpp:49
DialogueControl(const DialogueControl &)=delete
Result< GameplayObservation > observeGameplay(const GameplaySession &session, SubjectRef instance) const override
Observe one provider-owned gameplay instance without mutation.
Definition DialogueControl.cpp:122
Result< void > publish(SubjectRef instance, SubjectRef owner)
Publish the conversation runner under a stable instance identity.
Definition DialogueControl.cpp:54
std::vector< SubjectRef > instances() const
Published instance identities, in publication order.
Definition DialogueControl.cpp:81
DialogueControl & operator=(const DialogueControl &)=delete
Result< void > unpublish(SubjectRef instance)
Drop the publication; NotFound when that instance is not published.
Definition DialogueControl.cpp:69
std::vector< SubjectRef > gameplayInstances() const override
Instances currently served, in publication order.
Definition DialogueControl.cpp:89
Result< GameplayObservation > advanceGameplay(const GameplaySession &session, SubjectRef instance, const SimulationStep &step) override
Advance one provider-owned instance using injected deterministic time.
Definition DialogueControl.cpp:259
Result< std::vector< GameplayActionDescriptor > > availableGameplayActions(const GameplaySession &session, SubjectRef instance, SubjectRef subject) const override
Discover currently legal player-semantic actions for one subject.
Definition DialogueControl.cpp:139
Script-facing registry and runner for compiled .dnut conversations.
Definition DialogueFlow.h:42
Definition ConversationAuthoring.cpp:12
Definition Container.h:602
One discoverable domain action and its owning schema projection.
Definition GameplayControl.h:37
Owning evidence that a gameplay authority accepted one command.
Definition GameplayControl.h:62
One player-semantic command submitted to a domain authority.
Definition GameplayControl.h:52
Owning event projection safe across frames and process boundaries.
Definition GameplayControl.h:71
Immutable owning observation of one authoritative gameplay instance.
Definition GameplayControl.h:43
Owning authorization context shared by player, script and automation adapters.
Definition GameplayControl.h:30