1#ifndef ENGINE_CLIENT_DEMOEDIT_H
2#define ENGINE_CLIENT_DEMOEDIT_H
3
4#include <engine/shared/demo.h>
5#include <engine/shared/jobs.h>
6#include <engine/shared/snapshot.h>
7
8class IStorage;
9
10class CDemoEdit : public IJob
11{
12 CSnapshotDelta m_SnapshotDelta;
13 CSnapshotDelta m_SnapshotDeltaSixup;
14 IStorage *m_pStorage;
15
16 CDemoEditor m_DemoEditor;
17
18 char m_aDemo[256];
19 char m_aDst[256];
20 int m_StartTick;
21 int m_EndTick;
22 bool m_Success;
23
24public:
25 CDemoEdit(const char *pNetVersion, CSnapshotDelta *pSnapshotDelta, CSnapshotDelta *pSnapshotDeltaSixup, IStorage *pStorage, const char *pDemo, const char *pDst, int StartTick, int EndTick);
26 void Run() override;
27 char *Destination() { return m_aDst; }
28 bool Success() const { return m_Success; }
29};
30#endif
31