mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
* Initial commit.
:)
This commit is contained in:
15
source/World/Tile/MetalTile.cpp
Normal file
15
source/World/Tile/MetalTile.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "Tile.hpp"
|
||||
#include "Level.hpp"
|
||||
|
||||
MetalTile::MetalTile(int ID, int texture, Material* pMtl) : Tile(ID, pMtl)
|
||||
{
|
||||
m_TextureFrame = texture;
|
||||
}
|
||||
|
||||
// @NOTE: I think the MCPE devs were left dumbfounded by this. "Why did notch
|
||||
// overload this function?" Well, fun fact, there used to be top, side and bottom
|
||||
// textures for these tiles. :)
|
||||
int MetalTile::getTexture(int dir)
|
||||
{
|
||||
return m_TextureFrame;
|
||||
}
|
||||
Reference in New Issue
Block a user