aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/TilePos.h
blob: d4a3e84eba42fb8044dca0613a98acc23b4de546 (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

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);
};

typedef struct
{
	int operator() (const TilePos &k) const { return TilePos::hash_fnct (k); }

} TilePosKeyHash;

typedef struct
{
	bool operator() (const TilePos &x, const TilePos &y) const { return TilePos::eq_test (x, y); }
} TilePosKeyEq;