ddnet/src/engine/client/demoedit.h

30 lines
665 B
C
Raw Normal View History

#ifndef ENGINE_CLIENT_DEMOEDIT_H
#define ENGINE_CLIENT_DEMOEDIT_H
#include <engine/shared/demo.h>
2021-12-24 11:16:43 +00:00
#include <engine/shared/jobs.h>
#include <engine/shared/snapshot.h>
2021-12-24 11:16:43 +00:00
class IStorage;
class CDemoEdit : public IJob
{
CSnapshotDelta m_SnapshotDelta;
IStorage *m_pStorage;
CDemoEditor m_DemoEditor;
char m_aDemo[256];
char m_aDst[256];
int m_StartTick;
int m_EndTick;
2024-02-26 17:44:11 +00:00
bool m_Success;
public:
2021-12-24 11:16:43 +00:00
CDemoEdit(const char *pNetVersion, CSnapshotDelta *pSnapshotDelta, IStorage *pStorage, const char *pDemo, const char *pDst, int StartTick, int EndTick);
void Run() override;
char *Destination() { return m_aDst; }
2024-02-26 17:44:11 +00:00
bool Success() { return m_Success; }
};
#endif