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 IStorage *m_pStorage;
14
15 CDemoEditor m_DemoEditor;
16
17 char m_aDemo[256];
18 char m_aDst[256];
19 int m_StartTick;
20 int m_EndTick;
21 bool m_Success;
22
23public:
24 CDemoEdit(const char *pNetVersion, CSnapshotDelta *pSnapshotDelta, IStorage *pStorage, const char *pDemo, const char *pDst, int StartTick, int EndTick);
25 void Run() override;
26 char *Destination() { return m_aDst; }
27 bool Success() { return m_Success; }
28};
29#endif
30