载入中...
搜索中...
未找到
eve::rts::Faction类 参考
Faction domain root; membership is a set of typed runtime handles. 更多...
#include <RTSTypes.h>
类 eve::rts::Faction 继承关系图:
类 | |
| struct | Authority |
| Authority provider link. 更多... | |
| struct | Economy |
| Economy account/provider link. 更多... | |
| struct | GameEvent |
| Event stream/provider link. 更多... | |
| struct | Identity |
| Runtime identity. 更多... | |
| struct | Intel |
| Persistent last-known enemy contacts derived from the faction's canonical FOV provider. 更多... | |
| struct | Members |
| Authoritative faction membership handles. 更多... | |
| struct | ProductionPolicy |
| Cross-factory resource floors reserved for production at or above a priority threshold. 更多... | |
| struct | Social |
| Social graph/provider link. 更多... | |
| struct | Strategy |
| Deterministic high-level production and attack policy for an AI-controlled faction. 更多... | |
| struct | Technology |
| Completed research definitions and canonical production tasks already consumed. 更多... | |
| struct | Workforce |
| Deterministic idle-worker assignment policy for construction and repair. 更多... | |
Public 成员函数 | |
| void | release () override |
| Entity. | |
静态 Public 成员函数 | |
| static Faction * | createFaction (SubjectRef subject={}) |
| Create a faction and initialize its self handle and identity. | |
详细描述
Faction domain root; membership is a set of typed runtime handles.
在文件 RTSTypes.h 第 1178 行定义.
成员函数说明
◆ createFaction()
|
static |
Create a faction and initialize its self handle and identity.
- 返回
- Borrowed nullable pointer to the ECS-owned faction; null means creation failed. @ownership The current ECS world owns the entity; callers must release it through ECS and must not delete it. @lifetime Valid until ECS destruction of the entity or its world; retain an EntityHandle across frames instead. @thread Call on the owning ECS/simulation thread. @reentrancy Creation does not invoke user callbacks; do not re-enter ECS mutation while using the returned pointer.
在文件 RTSTypes.cpp 第 684 行定义.
引用了 subject.
被这些函数引用 eve::rts::RTS::newFaction().
◆ release()
|
inlineoverride |
Entity.
Release the entity through the ECS generation boundary.
在文件 RTSTypes.h 第 1184 行定义.
被这些函数引用 eve::rts::RTS::newFaction() , 以及 eve::rts::RTS::newFactionUnit().
该类的文档由以下文件生成:
- src/modules/rts/RTSTypes.h
- src/modules/rts/RTSTypes.cpp