21 lines
373 B
C++
21 lines
373 B
C++
#pragma once
|
|
|
|
#include "BaseRailTile_SPU.h"
|
|
|
|
class PoweredRailTile_SPU : public BaseRailTile_SPU
|
|
{
|
|
public:
|
|
PoweredRailTile_SPU(int id) : BaseRailTile_SPU(id) {}
|
|
|
|
Icon_SPU *getTexture(int face, int data)
|
|
{
|
|
if ((data & RAIL_DATA_BIT) == 0)
|
|
{
|
|
return &ms_pTileData->poweredRailTile_icon;
|
|
}
|
|
else
|
|
{
|
|
return &ms_pTileData->poweredRailTile_iconPowered;
|
|
}
|
|
};
|
|
}; |