载入中...
搜索中...
未找到

RTS building domain root with placement and production composition. 更多...

#include <RTSTypes.h>

类 eve::rts::Building 继承关系图:

类

struct  Capture
 Deterministic contested capture state. 更多...
 
struct  Combat
 Automatic targeting policy for a stationary defensive building. 更多...
 
struct  Command
 Static command provider and hostile jamming policy. 更多...
 
struct  Construction
 Construction progress and generation-checked assigned builders. 更多...
 
struct  Definition
 Logical building definition identity. 更多...
 
struct  Dropoff
 Resource delivery policy; actual balances remain in the economy provider. 更多...
 
struct  Economy
 Economy account/provider link. 更多...
 
struct  Effects
 Lifecycle-only effects. 更多...
 
struct  Faction
 Owning faction link. 更多...
 
struct  Garrison
 Building garrison capacity and generation-checked occupants. 更多...
 
struct  Identity
 Runtime identity. 更多...
 
struct  IndirectFire
 Last indirect-fire exposure for static artillery and counter-battery observation. 更多...
 
struct  Infrastructure
 RTS infrastructure projection; economy balances remain owned by the linked provider. 更多...
 
struct  Integrity
 Building health and repair economy configuration. 更多...
 
struct  Orders
 Generic building orders. 更多...
 
struct  Placement
 Placement world key and authoritative cell state. 更多...
 
struct  Production
 Canonical production queue. 更多...
 
struct  Rally
 Rally order copied to newly produced units. 更多...
 
struct  Settlement
 Settlement provider link. 更多...
 
struct  Shield
 RTS shield layer for structures; canonical CombatState remains health authority. 更多...
 
struct  Supply
 Static ammunition stock and transfer policy for completed buildings. 更多...
 
struct  Tags
 Building-local tags. 更多...
 
struct  Technology
 Upgrade ids already projected onto this building. 更多...
 
struct  Vision
 Static vision contribution projected into a faction-owned canonical map FOV provider. 更多...
 
struct  Weapon
 Canonical weapon entity used by an armed building. 更多...
 

Public 成员函数

void release () override
 Entity.
 

静态 Public 成员函数

static Building * createBuilding (SubjectRef subject={}, LogicalId definition={})
 Create a building and initialize its self handle and identity.
 

详细描述

RTS building domain root with placement and production composition.

在文件 RTSTypes.h 第 840 行定义.

成员函数说明

◆ createBuilding()

Building * eve::rts::Building::createBuilding ( SubjectRef  subject = {},
LogicalId  definition = {} 
)
static

Create a building and initialize its self handle and identity.

参数
subjectStable persistent subject identity; may be nil for a low-level ECS fixture.
definitionOptional logical building definition.
返回
Borrowed nullable pointer to the ECS-owned building; 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 第 656 行定义.

引用了 subject.

被这些函数引用 eve::rts::RTS::newBuilding().

◆ release()

void eve::rts::Building::release ( )
inlineoverride

Entity.

Release the entity through the ECS generation boundary.

在文件 RTSTypes.h 第 846 行定义.

被这些函数引用 eve::rts::RTS::cancelScriptConstruction(), eve::rts::RTS::newBuilding(), eve::rts::RTS::newFactionBuilding(), eve::rts::RTS::sellScriptBuilding() , 以及 eve::rts::RTS::startScriptConstruction().


该类的文档由以下文件生成: