blob: 2086dbad158db1f9da755cf699032fc630d52315 (
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);
UGCUpdate const * GetUGCUpdate(FeatureID const & id) 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
|