blob: 5087abd593d4f3fc3af93c808c013aa8cc6b63b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include "Tile_SPU.h"
class Player;
class WorkbenchTile_SPU : public Tile_SPU
{
public:
WorkbenchTile_SPU(int id) : Tile_SPU(id) {}
Icon_SPU *getTexture(int face, int data)
{
if (face == Facing::UP) return &ms_pTileData->workBench_iconTop;
if (face == Facing::DOWN) return TileRef_SPU(wood_Id)->getTexture(face);
if (face == Facing::NORTH || face == Facing::WEST) return &ms_pTileData->workBench_iconFront;
return icon();
}
};
|