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