summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockCloth.h
blob: a46cfafb244883fbde30a2cf099541f749f1ef0f (plain) (blame)
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

#pragma once

#include "BlockHandler.h"





class cBlockClothHandler :
	public cBlockHandler
{
public:
	cBlockClothHandler(BLOCKTYPE a_BlockType)
		: cBlockHandler(a_BlockType)
	{
	}

	virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) override
	{
		switch (a_Meta)
		{
			case E_META_WOOL_WHITE: return 14;
			case E_META_WOOL_ORANGE: return 15;
			case E_META_WOOL_MAGENTA: return 16;
			case E_META_WOOL_LIGHTBLUE: return 17;
			case E_META_WOOL_YELLOW: return 18;
			case E_META_WOOL_LIGHTGREEN: return 19;
			case E_META_WOOL_PINK: return 20;
			case E_META_WOOL_GRAY: return 21;
			case E_META_WOOL_LIGHTGRAY: return 22;
			case E_META_WOOL_CYAN: return 23;
			case E_META_WOOL_PURPLE: return 24;
			case E_META_WOOL_BLUE: return 25;
			case E_META_WOOL_BROWN: return 26;
			case E_META_WOOL_GREEN: return 27;
			case E_META_WOOL_RED: return 28;
			case E_META_WOOL_BLACK: return 29;
			default:
			{
				ASSERT(!"Unhandled meta in wool handler!");
				return 0;
			}
		}
	}
} ;