25 lines
475 B
C#
25 lines
475 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace Voxel
|
|
{
|
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
|
public struct FaceData
|
|
{
|
|
public Orientation Facing;
|
|
public uint X, Y, Z;
|
|
public Texture Texture;
|
|
|
|
public uint[] Pack()
|
|
{
|
|
return new uint[]
|
|
{
|
|
X,
|
|
Y,
|
|
Z,
|
|
(uint)Facing,
|
|
(uint)Texture
|
|
};
|
|
}
|
|
}
|
|
}
|