载入中...
搜索中...
未找到
eve::rts::CommandSpec结构体 参考

One domain-neutral command submitted to a unit's generic order queue. 更多...

#include <RTSTypes.h>

Public 成员函数

Result< void > validate () const
 Validate coordinates and command metadata without mutating state.
 

Public 属性

OrderKind kind = OrderKind::Move
 
WorldPosition target
 
std::string definitionId
 
int priority = 0
 
double timeoutSeconds = 0.0
 
ecs::EntityHandle targetEntity {}
 
WorldPosition secondaryTarget
 
float radius = 0.0f
 
bool append = false
 

详细描述

One domain-neutral command submitted to a unit's generic order queue.

The definition id is a logical recipe/action id. It is not an ECS handle and is intentionally copied into the order payload.

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

成员函数说明

◆ validate()

类成员变量说明

◆ append

◆ definitionId

std::string eve::rts::CommandSpec::definitionId

◆ kind

◆ priority

int eve::rts::CommandSpec::priority = 0

◆ radius

◆ secondaryTarget

◆ target

◆ targetEntity

◆ timeoutSeconds

double eve::rts::CommandSpec::timeoutSeconds = 0.0

该结构体的文档由以下文件生成: