Files
voxel/FaceData.cs

27 lines
523 B
C#

using System.Runtime.InteropServices;
namespace Voxel
{
public struct FaceData
{
public Orientation Facing;
public byte X, Y, Z;
public Textures Texture;
public byte LightLevel;
public byte[] Pack()
{
return new byte[]
{
X,
Y,
Z,
(byte)Facing,
(byte)Texture,
LightLevel,
0,0 // two bits empty
};
}
}
}