blob: c6df8c5f6771c14b61f4f835f7602528cd590fe9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include "ugc/types.hpp"
#include <map>
#include <string>
struct FeatureID;
namespace ugc
{
class Storage
{
public:
explicit Storage(std::string const & filename);
void GetUGCUpdate(FeatureID const & id, UGCUpdate & ugc) const;
void SetUGCUpdate(FeatureID const & id, UGCUpdate const & ugc);
void Save();
void Load();
private:
std::string m_filename;
std::map<FeatureID, UGCUpdate> m_ugc;
};
} // namespace ugc
|