unity and native osx bundles and frameworks build from the same project now

This commit is contained in:
Joseph Henry
2016-06-16 11:47:08 -07:00
parent 621970619d
commit 699edf8f30
111 changed files with 11112 additions and 14 deletions

View File

@@ -0,0 +1,39 @@

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Explicit)]
public struct Int32Converter
{
//------------------------------------------------------------------------------------------------------------
[FieldOffset(0)]
public int Value;
[FieldOffset(0)]
public byte Byte1;
[FieldOffset(1)]
public byte Byte2;
[FieldOffset(2)]
public byte Byte3;
[FieldOffset(3)]
public byte Byte4;
//------------------------------------------------------------------------------------------------------------
public Int32Converter(int value)
{
Byte1 = Byte2 = Byte3 = Byte4 = 0;
Value = value;
}
//------------------------------------------------------------------------------------------------------------
public static implicit operator Int32(Int32Converter value)
{
return value.Value;
}
//------------------------------------------------------------------------------------------------------------
public static implicit operator Int32Converter(int value)
{
return new Int32Converter(value);
}
}