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

One move step request, expressed in the host's own movement space. 更多...

#include <RpgDialect.h>

Public 属性

std::string actorId
 Authored actor=<id> verbatim; the host's own subject space.
 
RPGActor * actor = nullptr
 Actor resolved through the binding, or nullptr.
 
double x = 0.0
 Requested destination.
 
double y = 0.0
 
bool hasDuration = false
 Whether the authored step carried a duration field at all.
 
double duration = 0.0
 Authored travel time in seconds; only meaningful when hasDuration.
 

详细描述

One move step request, expressed in the host's own movement space.

x and y carry whatever the game's movement model uses — tile indices for a grid or tactics game, world units for a continuous one, lanes for a rail sequence. The engine never interprets them and never assumes a path model, so one authored .dnut story is not tied to one kind of game; the meaning is settled by whoever installs the handler.

@thread Filled and consumed synchronously inside one step dispatch.

在文件 RpgDialect.h 第 55 行定义.

类成员变量说明

◆ actor

RPGActor* eve::rpg::StoryMoveRequest::actor = nullptr

Actor resolved through the binding, or nullptr.

A convenience for hosts whose subjects are party members: it is non-null exactly when RpgStoryBinding::resolveActor or party resolved actorId. It is visibly null when the id belongs to another subject space (a map object, a camera, a squad), so a host must not read a null here as "the actor does not exist" — use actorId and resolve it yourself.

在文件 RpgDialect.h 第 67 行定义.

◆ actorId

std::string eve::rpg::StoryMoveRequest::actorId

Authored actor=<id> verbatim; the host's own subject space.

在文件 RpgDialect.h 第 57 行定义.

◆ duration

double eve::rpg::StoryMoveRequest::duration = 0.0

Authored travel time in seconds; only meaningful when hasDuration.

在文件 RpgDialect.h 第 74 行定义.

◆ hasDuration

bool eve::rpg::StoryMoveRequest::hasDuration = false

Whether the authored step carried a duration field at all.

在文件 RpgDialect.h 第 72 行定义.

◆ x

double eve::rpg::StoryMoveRequest::x = 0.0

Requested destination.

在文件 RpgDialect.h 第 69 行定义.

◆ y

double eve::rpg::StoryMoveRequest::y = 0.0

在文件 RpgDialect.h 第 70 行定义.


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