update
This commit is contained in:
29
FaceData.cs
Normal file
29
FaceData.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user