Exposes server-probed climbing actions without accepting authored world targets. 更多...
#include <ClimbingControl.h>
Public 成员函数 | |
| ClimbingControl (SubjectRef instance, SubjectRef character, ClimbingRuntime &runtime, physics::World3D &world, const ClimbingPose &pose) | |
| Construct an adapter over one runtime, world and authoritative character pose. | |
| ~ClimbingControl () override | |
| Unpublish the capability without destroying borrowed authorities. | |
| ClimbingControl (const ClimbingControl &)=delete | |
| ClimbingControl & | operator= (const ClimbingControl &)=delete |
| std::string_view | gameplayDomain () const noexcept override |
| Stable provider domain used for discovery and routing. | |
| std::vector< SubjectRef > | gameplayInstances () const override |
| Instances currently served, in publication order. | |
| Result< GameplayObservation > | observeGameplay (const GameplaySession &session, SubjectRef instance) const override |
| Observe one provider-owned gameplay instance without mutation. | |
| Result< std::vector< GameplayActionDescriptor > > | availableGameplayActions (const GameplaySession &session, SubjectRef instance, SubjectRef subject) const override |
| Discover currently legal player-semantic actions for one subject. | |
| Result< GameplayCommandReceipt > | submitGameplay (const GameplaySession &session, SubjectRef instance, const GameplayCommand &command) override |
| Validate authority and atomically submit one domain command. | |
| Result< GameplayObservation > | advanceGameplay (const GameplaySession &session, SubjectRef instance, const SimulationStep &step) override |
| Advance one provider-owned instance using injected deterministic time. | |
| 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. | |
Public 成员函数 继承自 eve::IGameplayControlProvider | |
| virtual | ~IGameplayControlProvider ()=default |
| Releases IGameplayControlProvider resources. | |
Public 成员函数 继承自 eve::IGameplayInstanceCatalog | |
| virtual | ~IGameplayInstanceCatalog ()=default |
| Releases IGameplayInstanceCatalog resources. | |
额外继承的成员函数 | |
静态 Public 属性 继承自 eve::IGameplayControlProvider | |
| static constexpr const char * | capabilityName = "IGameplayControlProvider" |
静态 Public 属性 继承自 eve::IGameplayInstanceCatalog | |
| static constexpr const char * | capabilityName = "IGameplayInstanceCatalog" |
详细描述
Exposes server-probed climbing actions without accepting authored world targets.
Runtime, physics world and pose remain borrowed authoritative collaborators. They must outlive this owner-thread-affine adapter. Commands carry only player semantics; begin always re-probes the borrowed authoritative world.
在文件 ClimbingControl.h 第 23 行定义.
构造及析构函数说明
◆ ClimbingControl() [1/2]
| eve::climbing::ClimbingControl::ClimbingControl | ( | SubjectRef | instance, |
| SubjectRef | character, | ||
| ClimbingRuntime & | runtime, | ||
| physics::World3D & | world, | ||
| const ClimbingPose & | pose | ||
| ) |
Construct an adapter over one runtime, world and authoritative character pose.
- 参数
-
instance Stable identity of this climbing-control instance. character Stable player-controllable character identity. runtime Borrowed authoritative climbing lifecycle. world Borrowed physics world used synchronously for probing and movement. pose Borrowed server-owned pose used synchronously for every new probe.
在文件 ClimbingControl.cpp 第 56 行定义.
◆ ~ClimbingControl()
|
override |
Unpublish the capability without destroying borrowed authorities.
在文件 ClimbingControl.cpp 第 64 行定义.
◆ ClimbingControl() [2/2]
|
delete |
成员函数说明
◆ advanceGameplay()
|
overridevirtual |
Advance one provider-owned instance using injected deterministic time.
Advance gameplay.
实现了 eve::IGameplayControlProvider.
在文件 ClimbingControl.cpp 第 220 行定义.
引用了 eve::Conflict, eve::Diagnostic::error(), eve::Result< T >::failure(), session , 以及 step.
◆ availableGameplayActions()
|
overridevirtual |
Discover currently legal player-semantic actions for one subject.
Available gameplay actions.
实现了 eve::IGameplayControlProvider.
在文件 ClimbingControl.cpp 第 121 行定义.
引用了 actions, eve::Diagnostic::error(), eve::climbing::Hanging, id, observeGameplay(), eve::climbing::ClimbingRuntime::phase(), phase, eve::PreconditionViolation, session , 以及 subject.
◆ gameplayDomain()
|
overridevirtualnoexcept |
Stable provider domain used for discovery and routing.
Gameplay domain.
实现了 eve::IGameplayControlProvider.
在文件 ClimbingControl.cpp 第 69 行定义.
◆ gameplayEvents()
|
overridevirtual |
Return events strictly newer than an instance-local sequence cursor.
Gameplay events.
实现了 eve::IGameplayControlProvider.
在文件 ClimbingControl.cpp 第 241 行定义.
引用了 eve::Applied, eve::NoOp, eve::GameplayEvent::sequence, session , 以及 eve::Status::success().
◆ gameplayInstances()
|
overridevirtual |
Instances currently served, in publication order.
Gameplay instances.
实现了 eve::IGameplayInstanceCatalog.
在文件 ClimbingControl.cpp 第 71 行定义.
◆ observeGameplay()
|
overridevirtual |
Observe one provider-owned gameplay instance without mutation.
Observe gameplay.
实现了 eve::IGameplayControlProvider.
在文件 ClimbingControl.cpp 第 97 行定义.
引用了 eve::GameplayObservation::domain, eve::Diagnostic::error(), eve::Result< T >::failure(), id, eve::GameplayObservation::instance, eve::SubjectRef::isValid(), eve::NotFound, eve::climbing::ClimbingRuntime::phase(), eve::PreconditionViolation, eve::GameplayObservation::revision, revision, session, eve::climbing::ClimbingRuntime::snapshot(), eve::GameplayObservation::state, eve::Result< T >::success() , 以及 eve::GameplayObservation::tick.
被这些函数引用 availableGameplayActions().
◆ operator=()
|
delete |
◆ submitGameplay()
|
overridevirtual |
Validate authority and atomically submit one domain command.
Submit gameplay.
实现了 eve::IGameplayControlProvider.
在文件 ClimbingControl.cpp 第 164 行定义.
引用了 eve::GameplayCommandReceipt::acceptedTick, eve::GameplayCommand::action, eve::Applied, eve::GameplayCommandReceipt::commandId, eve::Conflict, eve::GameplayCommandReceipt::details, dropped, eve::Diagnostic::error(), eve::GameplayCommandReceipt::executionId, eve::GameplayCommand::expectedRevision, eve::Result< T >::failure(), eve::GameplayCommand::id, eve::InvalidArgument, eve::NotFound, eve::GameplayCommand::observedTick, operation, eve::PreconditionViolation, eve::GameplayCommandReceipt::resultingRevision, revision, session, eve::GameplayCommand::subject, eve::Status::success(), eve::Result< T >::success() , 以及 eve::Unsupported.
该类的文档由以下文件生成:
- src/modules/climbing/ClimbingControl.h
- src/modules/climbing/ClimbingControl.cpp
Public 成员函数 继承自