载入中...
搜索中...
未找到
eve::rts::Unit类 参考
#include <RTSTypes.h>
类 eve::rts::Unit 继承关系图:
类 | |
| struct | Abilities |
| Ability cooldowns and an optional deterministic cast/channel in progress. 更多... | |
| struct | Action |
| Shared action runtime/provider link. 更多... | |
| struct | Artillery |
| Indirect-fire deployment and deterministic area-fire policy. 更多... | |
| struct | Attributes |
| Canonical attribute state. 更多... | |
| struct | Capture |
| Capture contribution while executing a Capture order. 更多... | |
| struct | Combat |
| RTS stance and pursuit limits used by automatic combat policies. 更多... | |
| struct | Command |
| Command-network policy and derived connection state for a mobile unit or relay. 更多... | |
| struct | Containment |
| Unit containment state for transports and building garrisons. 更多... | |
| struct | Crowd |
| Crowd provider link. 更多... | |
| struct | Definition |
| Logical unit definition identity. 更多... | |
| struct | Durability |
| Canonical combat durability state consumed by combat::DamageRuntime. 更多... | |
| struct | Effects |
| Lifecycle-only active effects. 更多... | |
| struct | Faction |
| Owning faction link. 更多... | |
| struct | Identity |
| Runtime identity and logical unit definition. 更多... | |
| struct | Morale |
| Suppression, recovery, retreat policy, and friendly morale aura. 更多... | |
| struct | Motion |
| Authoritative kinematic state used by the phase-one move slice. 更多... | |
| struct | Navigation |
| RTS projection of a canonical map path; the map provider remains the grid authority. 更多... | |
| struct | Orders |
| Generic command/order state. 更多... | |
| struct | Sensing |
| Sensing provider link. 更多... | |
| struct | Settlement |
| Settlement provider link. 更多... | |
| struct | Shield |
| RTS shield layer consumed before canonical health damage and regenerated deterministically. 更多... | |
| struct | Steering |
| Steering provider link. 更多... | |
| struct | Supply |
| Tactical ammunition logistics; weapon ammunition remains authoritative in WeaponEntity. 更多... | |
| struct | Tactics |
| Escort geometry and combat-group coordination state. 更多... | |
| struct | Tags |
| Entity-local tags. 更多... | |
| struct | Technology |
| Upgrade ids already projected onto this unit, preventing repeated multiplicative application. 更多... | |
| struct | Veterancy |
| Persistent combat experience and deterministic veteran/elite modifiers. 更多... | |
| struct | Vision |
| Vision contribution projected into a faction-owned canonical map FOV provider. 更多... | |
| struct | Weapon |
| Weapon entity link. 更多... | |
| struct | Worker |
| Worker gathering and delivery state; balances remain owned by the linked economy account. 更多... | |
Public 成员函数 | |
| void | release () override |
| Entity. | |
静态 Public 成员函数 | |
| static Unit * | createUnit (SubjectRef subject={}, LogicalId definition={}) |
| Create a unit and initialize its self handle and identity. | |
详细描述
RTS unit domain root.
This class owns no generic gameplay behavior. Its components are the composition points consumed by RTS systems and adapters.
在文件 RTSTypes.h 第 495 行定义.
成员函数说明
◆ createUnit()
|
static |
Create a unit and initialize its self handle and identity.
- 参数
-
subject Stable persistent subject identity; may be nil for a low-level ECS fixture. definition Optional logical unit definition.
- 返回
- Borrowed nullable pointer to the ECS-owned unit; 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 第 644 行定义.
被这些函数引用 eve::rts::RTS::newUnit().
◆ release()
|
inlineoverride |
该类的文档由以下文件生成:
- src/modules/rts/RTSTypes.h
- src/modules/rts/RTSTypes.cpp