载入中...
搜索中...
未找到
eve::rts::Player类 参考
Player domain root; selection is RTS-local, authority/economy/social are links. 更多...
#include <RTSTypes.h>
类 eve::rts::Player 继承关系图:
类 | |
| struct | Authority |
| Authority provider link. 更多... | |
| struct | Economy |
| Economy account/provider link. 更多... | |
| struct | GameEvent |
| Event stream/provider link. 更多... | |
| struct | Identity |
| Runtime identity. 更多... | |
| struct | Selection |
| RTS-owned selection handles; handles are generation checked on use. 更多... | |
| struct | Social |
| Social graph/provider link. 更多... | |
Public 成员函数 | |
| void | release () override |
| Entity. | |
静态 Public 成员函数 | |
| static Player * | createPlayer (SubjectRef subject={}) |
| Create a player and initialize its self handle and identity. | |
详细描述
Player domain root; selection is RTS-local, authority/economy/social are links.
在文件 RTSTypes.h 第 1119 行定义.
成员函数说明
◆ createPlayer()
|
static |
Create a player and initialize its self handle and identity.
- 返回
- Borrowed nullable pointer to the ECS-owned player; 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 第 676 行定义.
引用了 subject.
被这些函数引用 eve::rts::RTS::newPlayer().
◆ release()
|
inlineoverride |
该类的文档由以下文件生成:
- src/modules/rts/RTSTypes.h
- src/modules/rts/RTSTypes.cpp