Materializes canonical unit/building definitions into RTS composition components. 更多...
#include <RTSArchetype.h>
静态 Public 成员函数 | |
| static Result< void > | apply (definitions::DefinitionRegistry ®istry, Unit &unit, const ArchetypeWeaponFactory &weaponFactory={}) |
| Apply the Unit root's logical definition atomically. | |
| static Result< void > | apply (definitions::DefinitionRegistry ®istry, Building &building, const ArchetypeWeaponFactory &weaponFactory={}) |
| Apply the Building root's logical definition atomically. | |
详细描述
Materializes canonical unit/building definitions into RTS composition components.
DefinitionRegistry remains the archetype authority. This adapter copies only per-instance runtime state and delegates weapon creation to the canonical weapon runtime supplied by the caller.
在文件 RTSArchetype.h 第 27 行定义.
成员函数说明
◆ apply() [1/2]
|
static |
Apply the Building root's logical definition atomically.
在文件 RTSArchetype.cpp 第 284 行定义.
引用了 eve::Applied, eve::rts::EntityLink< WeaponLinkTag >::bind(), boolean, created, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, number, radius, eve::Status::success(), eve::Result< T >::success() , 以及 text.
◆ apply() [2/2]
|
static |
Apply the Unit root's logical definition atomically.
在文件 RTSArchetype.cpp 第 119 行定义.
引用了 eve::Applied, eve::rts::EntityLink< WeaponLinkTag >::bind(), boolean, capacity, created, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, number, radius, range, eve::Status::success(), eve::Result< T >::success(), text , 以及 unit.
该类的文档由以下文件生成:
- src/modules/rts/RTSArchetype.h
- src/modules/rts/RTSArchetype.cpp