Process-owned append buffer for trace=append.
更多...
#include <PlayTrace.h>
Public 成员函数 | |
| void | clear () |
| Clears . | |
| bool | isReplaying () const |
True while replayPlayTrace is executing. | |
| void | setReplaying (bool value) |
| void | begin (std::string contractId, std::string contractHash, std::int64_t seed, std::string startCheckpoint) |
| Begins . | |
| void | append (const Value &request, const Value &response, std::uint64_t hostFrame) |
| Append. | |
| bool | isRecording () const |
| True when recording. | |
| bool | empty () const |
| Empty. | |
| Value | exportTrace () const |
| Export trace. | |
静态 Public 成员函数 | |
| static PlayTraceBuffer & | instance () |
| Instance. | |
详细描述
Process-owned append buffer for trace=append.
Does not own game state. Replay sets a replaying flag so nested Play requests do not record. Main-thread affinity; no callbacks.
在文件 PlayTrace.h 第 58 行定义.
成员函数说明
◆ append()
| void eve::dev::PlayTraceBuffer::append | ( | const Value & | request, |
| const Value & | response, | ||
| std::uint64_t | hostFrame | ||
| ) |
Append.
在文件 PlayTrace.cpp 第 177 行定义.
引用了 begin, digest, eve::Value::getIf(), name, object, path, eve::dev::playObservationDigest(), request, state , 以及 step.
◆ begin()
| void eve::dev::PlayTraceBuffer::begin | ( | std::string | contractId, |
| std::string | contractHash, | ||
| std::int64_t | seed, | ||
| std::string | startCheckpoint | ||
| ) |
◆ clear()
| void eve::dev::PlayTraceBuffer::clear | ( | ) |
◆ empty()
|
inline |
Empty.
在文件 PlayTrace.h 第 76 行定义.
◆ exportTrace()
| Value eve::dev::PlayTraceBuffer::exportTrace | ( | ) | const |
Export trace.
在文件 PlayTrace.cpp 第 203 行定义.
◆ instance()
|
static |
Instance.
在文件 PlayTrace.cpp 第 152 行定义.
引用了 buffer.
被这些函数引用 eve::dev::PlayReplayGuard::PlayReplayGuard() , 以及 eve::dev::PlayReplayGuard::~PlayReplayGuard().
◆ isRecording()
|
inline |
True when recording.
在文件 PlayTrace.h 第 74 行定义.
◆ isReplaying()
|
inline |
True while replayPlayTrace is executing.
在文件 PlayTrace.h 第 66 行定义.
◆ setReplaying()
|
inline |
在文件 PlayTrace.h 第 67 行定义.
引用了 value.
被这些函数引用 eve::dev::PlayReplayGuard::PlayReplayGuard() , 以及 eve::dev::PlayReplayGuard::~PlayReplayGuard().
该类的文档由以下文件生成:
- src/engine/devtools/PlayTrace.h
- src/engine/devtools/PlayTrace.cpp