载入中...
搜索中...
未找到
eve::game_event::CausationRef类 参考
Tagged direct causation reference to an event or command. 更多...
#include <GameEvent.h>
Public 类型 | |
| enum class | Kind : uint8_t { None , Event , Command , Legacy } |
| Kind public API. 更多... | |
Public 成员函数 | |
| CausationRef ()=default | |
| Constructs an absent causation reference. | |
| Kind | kind () const noexcept |
| Returns the tagged causation kind. | |
| bool | isCanonical () const noexcept |
| Returns whether this reference uses the canonical ID form. | |
| std::string | format () const |
| Returns the stable UUID or compatibility text projection. | |
静态 Public 成员函数 | |
| static CausationRef | fromEventId (EventId value) |
| Creates a causation reference to an event. | |
| static CausationRef | fromCommandId (CommandId value) |
| Creates a causation reference to a command. | |
| static CausationRef | fromLegacy (std::string value) |
| Creates a compatibility-only arbitrary string causation. | |
友元 | |
| bool | operator== (const CausationRef &, const CausationRef &) noexcept=default |
详细描述
Tagged direct causation reference to an event or command.
A legacy string can be carried by compatibility callers. New producers should use fromEventId or fromCommandId; append preserves legacy data.
在文件 GameEvent.h 第 96 行定义.
成员枚举类型说明
◆ Kind
|
strong |
构造及析构函数说明
◆ CausationRef()
|
default |
Constructs an absent causation reference.
成员函数说明
◆ format()
|
inline |
Returns the stable UUID or compatibility text projection.
在文件 GameEvent.h 第 139 行定义.
◆ fromCommandId()
|
inlinestatic |
◆ fromEventId()
|
inlinestatic |
Creates a causation reference to an event.
在文件 GameEvent.h 第 105 行定义.
◆ fromLegacy()
|
inlinestatic |
Creates a compatibility-only arbitrary string causation.
在文件 GameEvent.h 第 125 行定义.
◆ isCanonical()
|
inlinenoexcept |
◆ kind()
|
inlinenoexcept |
Returns the tagged causation kind.
在文件 GameEvent.h 第 133 行定义.
友元及相关函数文档
◆ operator==
|
friend |
该类的文档由以下文件生成:
- src/modules/game_event/GameEvent.h