the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3class Vec3;
4class TilePos
5{
6public:
7 int x, y, z;
8
9public:
10 TilePos(int x, int y, int z);
11 TilePos(Vec3 *p); // 4J - brought forward from 1.2.3
12
13 static int hash_fnct(const TilePos &k);
14 static bool eq_test(const TilePos &x, const TilePos &y);
15};
16
17struct TilePosKeyHash
18{
19 inline int operator()(const TilePos &k) const
20 { return TilePos::hash_fnct (k); }
21};
22
23struct TilePosKeyEq
24{
25 inline bool operator()(const TilePos &x, const TilePos &y) const
26 { return TilePos::eq_test (x, y); }
27};
28