载入中...
搜索中...
未找到
eve::rts::ResourceNode类 参考

Harvestable RTS resource node; deposited balances are owned by an external resource account. 更多...

#include <RTSTypes.h>

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

类

struct  Harvest
 Concurrent worker capacity and current generation-checked assignments. 更多...
 
struct  Identity
 Runtime and persistent identity. 更多...
 
struct  Position
 Authoritative world position and interaction radius. 更多...
 
struct  Stock
 Authoritative remaining resource stock. 更多...
 

Public 成员函数

void release () override
 Entity.
 

静态 Public 成员函数

static ResourceNode * createResourceNode (SubjectRef subject={})
 Create a resource node and initialize all composition components. @ownership The active ECS table owns the entity; the returned pointer is borrowed. @lifetime Valid until that entity is destroyed or its ECS table is cleared. @thread ECS owner thread only.
 

详细描述

Harvestable RTS resource node; deposited balances are owned by an external resource account.

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

成员函数说明

◆ createResourceNode()

ResourceNode * eve::rts::ResourceNode::createResourceNode ( SubjectRef  subject = {})
static

Create a resource node and initialize all composition components. @ownership The active ECS table owns the entity; the returned pointer is borrowed. @lifetime Valid until that entity is destroyed or its ECS table is cleared. @thread ECS owner thread only.

在文件 RTSTypes.cpp 第 668 行定义.

引用了 node , 以及 subject.

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

◆ release()

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

Entity.

Release the node through the ECS generation boundary.

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


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