-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDbItemDatabase.h
74 lines (61 loc) · 1.21 KB
/
DbItemDatabase.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#pragma once
#include <optional>
namespace WhereThereIsAlLoop
{
/// <summary>
/// * Success
/// * Duplicate
/// * Error
/// </summary>
enum class InsertionResult
{
Success,
Duplicate,
Error
};
struct MatchResults
{
int Id;
};
using RegionId = int;
using ItemMetadata = float;
using Guid = int;
enum class KeyStatus
{
Active,
Expired
};
struct ItemKey
{
Guid Id;
KeyStatus Status;
};
class DbItemDatabase
{
public:
std::optional<float> TryGetItemMetadata([[maybe_unused]] int id) const
{
return std::nullopt;
}
int GetSomething([[maybe_unused]] int tx, [[maybe_unused]] auto & regionIds)
{
return 0;
}
InsertionResult AddItems([[maybe_unused]] Guid const & id, [[maybe_unused]] ItemMetadata const & metadata)
{
return {};
}
};
inline Guid NewGuid()
{
return 0;
}
inline RegionId ToRegionId(int id)
{
return id;
}
inline int BeginReadTransaction()
{
return 0;
}
} // namespace WhereThereIsAlLoop