wip_feat(PS3): Implement SPU variants for a portion of TU19's blocks
crashes at a stack overflow, cant be assed to fix it atm
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#pragma once
|
||||
#include "DispenserTile_SPU.h"
|
||||
#include "Facing_SPU.h"
|
||||
|
||||
|
||||
class DropperTile_SPU : public DispenserTile_SPU
|
||||
{
|
||||
public:
|
||||
DropperTile_SPU(int id) : DispenserTile_SPU(id) {}
|
||||
|
||||
public:
|
||||
virtual Icon_SPU *getTexture(int face, int data)
|
||||
{
|
||||
int dir = data & FACING_MASK;
|
||||
if (face == dir)
|
||||
{
|
||||
if (dir == Facing::UP || dir == Facing::DOWN)
|
||||
{
|
||||
return &ms_pTileData->dropperTile_iconFrontVertical;
|
||||
}
|
||||
else
|
||||
{
|
||||
return &ms_pTileData->dropperTile_iconFront;
|
||||
}
|
||||
}
|
||||
|
||||
if (dir == Facing::UP || dir == Facing::DOWN)
|
||||
{
|
||||
return &ms_pTileData->dispenserTile_iconTop;
|
||||
}
|
||||
else if (face == Facing::UP || face == Facing::DOWN)
|
||||
{
|
||||
return &ms_pTileData->dispenserTile_iconTop;
|
||||
}
|
||||
return icon();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user