重新导入obi
This commit is contained in:
33
Assets/Obi/Scripts/Common/DataStructures/VInt4.cs
Normal file
33
Assets/Obi/Scripts/Common/DataStructures/VInt4.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using UnityEngine;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Obi
|
||||
{
|
||||
[Serializable]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct VInt4
|
||||
{
|
||||
public int x;
|
||||
public int y;
|
||||
public int z;
|
||||
public int w;
|
||||
|
||||
public VInt4(int x, int y, int z, int w)
|
||||
{
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
this.w = w;
|
||||
}
|
||||
|
||||
public VInt4(int x)
|
||||
{
|
||||
this.x = x;
|
||||
this.y = x;
|
||||
this.z = x;
|
||||
this.w = x;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user