blob: 04804066a4c3f950dc4cf5d6c39f5448670a096c (
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
28
|
#pragma once
class Vec3;
class TilePos
{
public:
int x, y, z;
public:
TilePos(int x, int y, int z);
TilePos(Vec3 *p); // 4J - brought forward from 1.2.3
static int hash_fnct(const TilePos &k);
static bool eq_test(const TilePos &x, const TilePos &y);
};
struct TilePosKeyHash
{
inline int operator()(const TilePos &k) const
{ return TilePos::hash_fnct (k); }
};
struct TilePosKeyEq
{
inline bool operator()(const TilePos &x, const TilePos &y) const
{ return TilePos::eq_test (x, y); }
};
|