Multi-provider gameplay boundary consumed by input, scripts and automation. 更多...
#include <GameplayControl.h>
Public 成员函数 | |
| virtual | ~IGameplayControlProvider ()=default |
| Releases IGameplayControlProvider resources. | |
| virtual std::string_view | gameplayDomain () const noexcept=0 |
| Stable provider domain used for discovery and routing. | |
| virtual Result< GameplayObservation > | observeGameplay (const GameplaySession &session, SubjectRef instance) const =0 |
| Observe one provider-owned gameplay instance without mutation. | |
| virtual Result< std::vector< GameplayActionDescriptor > > | availableGameplayActions (const GameplaySession &session, SubjectRef instance, SubjectRef subject) const =0 |
| Discover currently legal player-semantic actions for one subject. | |
| virtual Result< GameplayCommandReceipt > | submitGameplay (const GameplaySession &session, SubjectRef instance, const GameplayCommand &command)=0 |
| Validate authority and atomically submit one domain command. | |
| virtual Result< GameplayObservation > | advanceGameplay (const GameplaySession &session, SubjectRef instance, const SimulationStep &step)=0 |
| Advance one provider-owned instance using injected deterministic time. | |
| virtual Result< std::vector< GameplayEvent > > | gameplayEvents (const GameplaySession &session, SubjectRef instance, std::uint64_t afterSequence) const =0 |
| Return events strictly newer than an instance-local sequence cursor. | |
静态 Public 属性 | |
| static constexpr const char * | capabilityName = "IGameplayControlProvider" |
详细描述
Multi-provider gameplay boundary consumed by input, scripts and automation.
Implementations are registered as Capability listeners because several gameplay domains may coexist. Registration and every method are owner-simulation-thread affine. Implementations must not retain argument references or invoke unknown callbacks. Domain objects remain the only mutable authorities; returned Values are owning projections. Missing providers are observable through an empty listener set.
在文件 GameplayControl.h 第 90 行定义.
构造及析构函数说明
◆ ~IGameplayControlProvider()
|
virtualdefault |
Releases IGameplayControlProvider resources.
成员函数说明
◆ advanceGameplay()
|
pure virtual |
Advance one provider-owned instance using injected deterministic time.
在 eve::card::CardControl, eve::climbing::ClimbingControl, eve::dialogue::DialogueControl, eve::economy::EconomyControl, eve::inventory::InventoryControl, eve::rpg::BattleControl, eve::rpg::ProductControl, eve::rts::RTS, eve::tactics::Tactics , 以及 eve::weapon::WeaponControl 内被实现.
◆ availableGameplayActions()
|
pure virtual |
Discover currently legal player-semantic actions for one subject.
在 eve::card::CardControl, eve::climbing::ClimbingControl, eve::dialogue::DialogueControl, eve::economy::EconomyControl, eve::inventory::InventoryControl, eve::rpg::BattleControl, eve::rpg::ProductControl, eve::rts::RTS, eve::tactics::Tactics , 以及 eve::weapon::WeaponControl 内被实现.
◆ gameplayDomain()
|
pure virtualnoexcept |
Stable provider domain used for discovery and routing.
在 eve::card::CardControl, eve::climbing::ClimbingControl, eve::dialogue::DialogueControl, eve::economy::EconomyControl, eve::inventory::InventoryControl, eve::rpg::BattleControl, eve::rpg::ProductControl, eve::rts::RTS, eve::tactics::Tactics , 以及 eve::weapon::WeaponControl 内被实现.
◆ gameplayEvents()
|
pure virtual |
Return events strictly newer than an instance-local sequence cursor.
在 eve::card::CardControl, eve::climbing::ClimbingControl, eve::dialogue::DialogueControl, eve::economy::EconomyControl, eve::inventory::InventoryControl, eve::rpg::BattleControl, eve::rpg::ProductControl, eve::rts::RTS, eve::tactics::Tactics , 以及 eve::weapon::WeaponControl 内被实现.
◆ observeGameplay()
|
pure virtual |
Observe one provider-owned gameplay instance without mutation.
在 eve::card::CardControl, eve::climbing::ClimbingControl, eve::dialogue::DialogueControl, eve::economy::EconomyControl, eve::inventory::InventoryControl, eve::rpg::BattleControl, eve::rpg::ProductControl, eve::rts::RTS, eve::tactics::Tactics , 以及 eve::weapon::WeaponControl 内被实现.
◆ submitGameplay()
|
pure virtual |
Validate authority and atomically submit one domain command.
在 eve::card::CardControl, eve::climbing::ClimbingControl, eve::dialogue::DialogueControl, eve::economy::EconomyControl, eve::inventory::InventoryControl, eve::rpg::BattleControl, eve::rpg::ProductControl, eve::rts::RTS, eve::tactics::Tactics , 以及 eve::weapon::WeaponControl 内被实现.
类成员变量说明
◆ capabilityName
|
staticconstexpr |
在文件 GameplayControl.h 第 92 行定义.
该类的文档由以下文件生成:
- src/engine/common/GameplayControl.h