|
OpenEnroth 39d87c6
|
#include <EngineTraceSimplePlayer.h>
Public Member Functions | |
| EngineTraceSimplePlayer () | |
| ~EngineTraceSimplePlayer () | |
| void | playTrace (EngineController *game, std::vector< std::unique_ptr< PlatformEvent > > events, std::string_view traceDisplayPath, EngineTracePlaybackFlags flags) |
| bool | isPlaying () const |
Private Member Functions | |
| void | checkTime (const PaintEvent *paintEvent) |
| void | checkRng (const PaintEvent *paintEvent) |
Private Member Functions inherited from PlatformApplicationAware | |
| ~PlatformApplicationAware ()=default | |
| PlatformApplication * | application () const |
| template<class T > | |
| T * | component () const |
| virtual void | installNotify () |
| virtual void | removeNotify () |
Private Attributes | |
| bool | _playing = false |
| std::string | _traceDisplayPath |
| EngineTracePlaybackFlags | _flags |
Friends | |
| class | PlatformIntrospection |
Component that can be used to play recorded events.
Note that this component is intentionally very dumb. Calling playTrace just plays all the passed events in sequence.
|
default |
|
default |
|
private |
|
private |
|
inline |
| void EngineTraceSimplePlayer::playTrace | ( | EngineController * | game, |
| std::vector< std::unique_ptr< PlatformEvent > > | events, | ||
| std::string_view | traceDisplayPath, | ||
| EngineTracePlaybackFlags | flags | ||
| ) |
| game | Engine controller. |
| events | Vector of events to play. Passed vector is consumed by this function. |
| traceDisplayPath | Path to trace file that the events were loaded from. Used only for error reporting. |
| flags | Playback flags. |
|
friend |
|
private |
|
private |
|
private |