#pragma once
#include "stdafx.h"
#include <thread>
#include "../Utilities/Timer.h"
#include "../Utilities/AutoResetEvent.h"

class Console;

class AutoSaveManager
{
private:
	const uint32_t _autoSaveSlot = 11;
	std::thread _autoSaveThread;

	atomic<bool> _stopThread;
	AutoResetEvent _signal;
	Timer _timer;

public:
	AutoSaveManager(shared_ptr<Console> console);
	~AutoSaveManager();
};