فهرست منبع

整理UnityMath,删掉一些不用的代码

tanghai 7 سال پیش
والد
کامیت
c69a8a49e0

+ 0 - 12
Server/Model/Server.Model.csproj

@@ -50,27 +50,15 @@
     <Compile Include="..\..\Unity\Assets\Model\Base\Object\IDeserializeSystem.cs">
       <Link>Base\Base\IDeserializeSystem.cs</Link>
     </Compile>
-    <Compile Include="..\..\Unity\Assets\Model\Base\UnityMath\Color32.cs">
-      <Link>Base\UnityMath\Color32.cs</Link>
-    </Compile>
-    <Compile Include="..\..\Unity\Assets\Model\Base\UnityMath\FrameworkResources.cs">
-      <Link>Base\UnityMath\FrameworkResources.cs</Link>
-    </Compile>
     <Compile Include="..\..\Unity\Assets\Model\Base\UnityMath\Mathf.cs">
       <Link>Base\UnityMath\Mathf.cs</Link>
     </Compile>
-    <Compile Include="..\..\Unity\Assets\Model\Base\UnityMath\MathHelper.cs">
-      <Link>Base\UnityMath\MathHelper.cs</Link>
-    </Compile>
     <Compile Include="..\..\Unity\Assets\Model\Base\UnityMath\Matrix3x3.cs">
       <Link>Base\UnityMath\Matrix3x3.cs</Link>
     </Compile>
     <Compile Include="..\..\Unity\Assets\Model\Base\UnityMath\Matrix4x4.cs">
       <Link>Base\UnityMath\Matrix4x4.cs</Link>
     </Compile>
-    <Compile Include="..\..\Unity\Assets\Model\Base\UnityMath\PackUtils.cs">
-      <Link>Base\UnityMath\PackUtils.cs</Link>
-    </Compile>
     <Compile Include="..\..\Unity\Assets\Model\Base\UnityMath\Quaternion.cs">
       <Link>Base\UnityMath\Quaternion.cs</Link>
     </Compile>

+ 0 - 248
Unity/Assets/Model/Base/UnityMath/Color32.cs

@@ -1,248 +0,0 @@
-using System;
-using System.Globalization;
-
-namespace PF
-{
-    [Serializable]
-    public struct Color32: IEquatable<Color32>
-    {
-        private uint packedValue;
-
-        internal Color32(uint packedValue)
-        {
-            this.packedValue = packedValue;
-        }
-
-        public Color32(int r, int g, int b, int a)
-        {
-            if (((r | g | b | a) & -256) != 0)
-            {
-                r = Color32.ClampToByte32(r);
-                g = Color32.ClampToByte32(g);
-                b = Color32.ClampToByte32(b);
-                a = Color32.ClampToByte32(a);
-            }
-
-            g <<= 8;
-            b <<= 16;
-            a <<= 24;
-            this.packedValue = (uint) (r | g | b | a);
-        }
-
-        public byte R
-        {
-            get
-            {
-                return (byte) this.packedValue;
-            }
-            set
-            {
-                this.packedValue = this.packedValue & 4294967040U | (uint) value;
-            }
-        }
-
-        public byte G
-        {
-            get
-            {
-                return (byte) (this.packedValue >> 8);
-            }
-            set
-            {
-                this.packedValue = (uint) ((int) this.packedValue & -65281 | (int) value << 8);
-            }
-        }
-
-        public byte B
-        {
-            get
-            {
-                return (byte) (this.packedValue >> 16);
-            }
-            set
-            {
-                this.packedValue = (uint) ((int) this.packedValue & -16711681 | (int) value << 16);
-            }
-        }
-
-        public byte A
-        {
-            get
-            {
-                return (byte) (this.packedValue >> 24);
-            }
-            set
-            {
-                this.packedValue = (uint) ((int) this.packedValue & 16777215 | (int) value << 24);
-            }
-        }
-
-        public uint PackedValue
-        {
-            get
-            {
-                return this.packedValue;
-            }
-            set
-            {
-                this.packedValue = value;
-            }
-        }
-
-        public static Color32 Lerp(Color32 value1, Color32 value2, float amount)
-        {
-            uint packedValue1 = value1.packedValue;
-            uint packedValue2 = value2.packedValue;
-            int num1 = (int) (byte) packedValue1;
-            int num2 = (int) (byte) (packedValue1 >> 8);
-            int num3 = (int) (byte) (packedValue1 >> 16);
-            int num4 = (int) (byte) (packedValue1 >> 24);
-            int num5 = (int) (byte) packedValue2;
-            int num6 = (int) (byte) (packedValue2 >> 8);
-            int num7 = (int) (byte) (packedValue2 >> 16);
-            int num8 = (int) (byte) (packedValue2 >> 24);
-            int num9 = (int) PackUtils.PackUNorm(65536f, amount);
-            int num10 = num1 + ((num5 - num1) * num9 >> 16);
-            int num11 = num2 + ((num6 - num2) * num9 >> 16);
-            int num12 = num3 + ((num7 - num3) * num9 >> 16);
-            int num13 = num4 + ((num8 - num4) * num9 >> 16);
-            Color32 color32;
-            color32.packedValue = (uint) (num10 | num11 << 8 | num12 << 16 | num13 << 24);
-            return color32;
-        }
-
-        public static Color32 Multiply(Color32 value, float scale)
-        {
-            uint packedValue = value.packedValue;
-            uint num1 = (uint) (byte) packedValue;
-            uint num2 = (uint) (byte) (packedValue >> 8);
-            uint num3 = (uint) (byte) (packedValue >> 16);
-            uint num4 = (uint) (byte) (packedValue >> 24);
-            scale *= 65536f;
-            uint num5 = (double) scale >= 0.0? ((double) scale <= 16777220.0? (uint) scale : 16777215U) : 0U;
-            uint num6 = num1 * num5 >> 16;
-            uint num7 = num2 * num5 >> 16;
-            uint num8 = num3 * num5 >> 16;
-            uint num9 = num4 * num5 >> 16;
-            if (num6 > (uint) byte.MaxValue)
-                num6 = (uint) byte.MaxValue;
-            if (num7 > (uint) byte.MaxValue)
-                num7 = (uint) byte.MaxValue;
-            if (num8 > (uint) byte.MaxValue)
-                num8 = (uint) byte.MaxValue;
-            if (num9 > (uint) byte.MaxValue)
-                num9 = (uint) byte.MaxValue;
-            Color32 color32;
-            color32.packedValue = (uint) ((int) num6 | (int) num7 << 8 | (int) num8 << 16 | (int) num9 << 24);
-            return color32;
-        }
-
-        public static Color32 operator *(Color32 value, float scale)
-        {
-            uint packedValue = value.packedValue;
-            uint num1 = (uint) (byte) packedValue;
-            uint num2 = (uint) (byte) (packedValue >> 8);
-            uint num3 = (uint) (byte) (packedValue >> 16);
-            uint num4 = (uint) (byte) (packedValue >> 24);
-            scale *= 65536f;
-            uint num5 = (double) scale >= 0.0? ((double) scale <= 16777220.0? (uint) scale : 16777215U) : 0U;
-            uint num6 = num1 * num5 >> 16;
-            uint num7 = num2 * num5 >> 16;
-            uint num8 = num3 * num5 >> 16;
-            uint num9 = num4 * num5 >> 16;
-            if (num6 > (uint) byte.MaxValue)
-                num6 = (uint) byte.MaxValue;
-            if (num7 > (uint) byte.MaxValue)
-                num7 = (uint) byte.MaxValue;
-            if (num8 > (uint) byte.MaxValue)
-                num8 = (uint) byte.MaxValue;
-            if (num9 > (uint) byte.MaxValue)
-                num9 = (uint) byte.MaxValue;
-            Color32 color32;
-            color32.packedValue = (uint) ((int) num6 | (int) num7 << 8 | (int) num8 << 16 | (int) num9 << 24);
-            return color32;
-        }
-
-        public override string ToString()
-        {
-            return string.Format((IFormatProvider) CultureInfo.CurrentCulture, "{R:{0} G:{1} B:{2} A:{3}}", (object) this.R, (object) this.G,
-                                 (object) this.B, (object) this.A);
-        }
-
-        public override int GetHashCode()
-        {
-            return this.packedValue.GetHashCode();
-        }
-
-        public override bool Equals(object obj)
-        {
-            if (obj is Color32)
-                return this.Equals((Color32) obj);
-            return false;
-        }
-
-        public bool Equals(Color32 other)
-        {
-            return this.packedValue.Equals(other.packedValue);
-        }
-
-        public static bool operator ==(Color32 a, Color32 b)
-        {
-            return a.Equals(b);
-        }
-
-        public static bool operator !=(Color32 a, Color32 b)
-        {
-            return !a.Equals(b);
-        }
-
-        public static Color32 Black
-        {
-            get
-            {
-                return new Color32(4278190080U);
-            }
-        }
-
-        public static Color32 Blue
-        {
-            get
-            {
-                return new Color32(4294901760U);
-            }
-        }
-
-        public static Color32 Green
-        {
-            get
-            {
-                return new Color32(4278222848U);
-            }
-        }
-
-        public static Color32 Red
-        {
-            get
-            {
-                return new Color32(4278190335U);
-            }
-        }
-
-        public static Color32 White
-        {
-            get
-            {
-                return new Color32(uint.MaxValue);
-            }
-        }
-
-        private static int ClampToByte32(int value)
-        {
-            if (value < 0)
-                return 0;
-            if (value > (int) byte.MaxValue)
-                return (int) byte.MaxValue;
-            return value;
-        }
-    }
-}

+ 0 - 11
Unity/Assets/Model/Base/UnityMath/Color32.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 04df534720a596d42a88c0e101f87038
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 2527
Unity/Assets/Model/Base/UnityMath/FrameworkResources.cs

@@ -1,2527 +0,0 @@
-using System.CodeDom.Compiler;
-using System.ComponentModel;
-using System.Diagnostics;
-using System.Globalization;
-using System.Resources;
-using System.Runtime.CompilerServices;
-
-namespace PF
-{
-    [DebuggerNonUserCode]
-    [CompilerGenerated]
-    [GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
-    internal class FrameworkResources
-    {
-        private static CultureInfo resourceCulture;
-        private static ResourceManager resourceMan;
-
-        internal FrameworkResources()
-        {
-        }
-
-        internal static string AllPlayersFolder
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (AllPlayersFolder), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string AloneInTheParty
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (AloneInTheParty), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string Apply3DBeforePlaying
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (Apply3DBeforePlaying), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ArrayMultipleFour
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ArrayMultipleFour), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BackBufferBadSize
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BackBufferBadSize), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BadXnb
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BadXnb), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BadXnbGraphicsProfile
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BadXnbGraphicsProfile), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BadXnbMagic
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BadXnbMagic), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BadXnbPlatform
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BadXnbPlatform), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BadXnbSize
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BadXnbSize), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BadXnbTypeVersion
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BadXnbTypeVersion), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BadXnbVersion
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BadXnbVersion), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BadXnbWrongType
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BadXnbWrongType), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BeginMustBeCalledBeforeDraw
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BeginMustBeCalledBeforeDraw), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BeginMustBeCalledBeforeEnd
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BeginMustBeCalledBeforeEnd), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BindPoseNotAvailable
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BindPoseNotAvailable), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BlobStreamIsNotExpandable
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BlobStreamIsNotExpandable), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BoundingBoxZeroPoints
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BoundingBoxZeroPoints), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BoundingSphereZeroPoints
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BoundingSphereZeroPoints), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BoundStateObject
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BoundStateObject), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string BuiltInEffectWrongTextureType
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (BuiltInEffectWrongTextureType), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CallFrameworkDispatcherUpdate
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CallFrameworkDispatcherUpdate), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CannotCallSpriteBeginTwice
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CannotCallSpriteBeginTwice), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CannotClearNullDepth
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CannotClearNullDepth), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CannotDrawNoData
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CannotDrawNoData), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CannotDrawNoShader
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CannotDrawNoShader), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CannotEndTwice
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CannotEndTwice), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CannotGetBackBufferActiveRenderTargets
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CannotGetBackBufferActiveRenderTargets),
-                                                                    FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CannotMixShader2and3
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CannotMixShader2and3), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CannotNextSpriteBeginImmediate
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CannotNextSpriteBeginImmediate), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CannotPresentActiveRenderTargets
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CannotPresentActiveRenderTargets), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CannotSetAlreadyUsedRenderTarget
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CannotSetAlreadyUsedRenderTarget), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CannotUseFormatTypeAsManualWhenLocking
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CannotUseFormatTypeAsManualWhenLocking),
-                                                                    FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CantDisableLighting
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CantDisableLighting), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CantRemoveLocalMachine
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CantRemoveLocalMachine), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CantSerializeMember
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CantSerializeMember), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CantSerializeReadOnlyNull
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CantSerializeReadOnlyNull), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CharacterNotInFont
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CharacterNotInFont), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ContentManagerCannotChangeRootDirectory
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ContentManagerCannotChangeRootDirectory),
-                                                                    FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CouldNotCreateResource
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CouldNotCreateResource), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CouldNotDeleteContainerAlreadyInUse
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CouldNotDeleteContainerAlreadyInUse), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CouldNotReadKeyboard
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CouldNotReadKeyboard), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string CueNotFound
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (CueNotFound), FrameworkResources.resourceCulture);
-            }
-        }
-
-        [EditorBrowsable(EditorBrowsableState.Advanced)]
-        internal static CultureInfo Culture
-        {
-            get
-            {
-                return FrameworkResources.resourceCulture;
-            }
-            set
-            {
-                FrameworkResources.resourceCulture = value;
-            }
-        }
-
-        internal static string DataNotAvailable
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (DataNotAvailable), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string DecompressionError
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (DecompressionError), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string DeviceCannotBeNullOnResourceCreate
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (DeviceCannotBeNullOnResourceCreate), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string DriverError
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (DriverError), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string DuplicateVertexElement
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (DuplicateVertexElement), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string DxtNotMultipleOfFour
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (DxtNotMultipleOfFour), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string DynamicSoundEffectInstancePacketLimit
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (DynamicSoundEffectInstancePacketLimit),
-                                                                    FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string DynamicSoundEffectInvalidBuffer
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (DynamicSoundEffectInvalidBuffer), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string DynamicSoundEffectInvalidLoopRegion
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (DynamicSoundEffectInvalidLoopRegion), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string DynamicSoundEffectInvalidOffset
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (DynamicSoundEffectInvalidOffset), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string DynamicSoundEffectInvalidPlayLength
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (DynamicSoundEffectInvalidPlayLength), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string EmptySongCollectionsCannotBePlayed
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (EmptySongCollectionsCannotBePlayed), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string EndMustBeCalledBeforeBegin
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (EndMustBeCalledBeforeBegin), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string Expired
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (Expired), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string GamerAlreadyInSession
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (GamerAlreadyInSession), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string GamerInvalid
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (GamerInvalid), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string GamerNull
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (GamerNull), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string GamerServicesAlreadyInitialized
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (GamerServicesAlreadyInitialized), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string GamerServicesCancelButton
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (GamerServicesCancelButton), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string GamerServicesGuideAlreadyVisible
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (GamerServicesGuideAlreadyVisible), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string GamerServicesInitializeFromNonUIThread
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (GamerServicesInitializeFromNonUIThread),
-                                                                    FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string GamerServicesNotInitialized
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (GamerServicesNotInitialized), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string GamerServicesOkButton
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (GamerServicesOkButton), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string GesturesNotAvailable
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (GesturesNotAvailable), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string GesturesNotEnabled
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (GesturesNotEnabled), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string GuideIsShowing
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (GuideIsShowing), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string IAsyncNotFromBegin
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (IAsyncNotFromBegin), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InCallback
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InCallback), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string IndexBuffersMustBeSizedCorrectly
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (IndexBuffersMustBeSizedCorrectly), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InstallingTitleUpdate
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InstallingTitleUpdate), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InstancePlayFailedDueToLimit
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InstancePlayFailedDueToLimit), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidAccelerometer
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidAccelerometer), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidApply3DCall
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidApply3DCall), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidBufferSize
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidBufferSize), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidBytesPerCluster
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidBytesPerCluster), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidCacheContainerOpenAsyncResult
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidCacheContainerOpenAsyncResult),
-                                                                    FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidCall
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidCall), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidCategory
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidCategory), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidContentVersion
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidContentVersion), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidController
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidController), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidCue
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidCue), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidDataSize
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidDataSize), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidDevice
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidDevice), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidDisplayOrientation
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidDisplayOrientation), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidEmitterDopplerScale
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidEmitterDopplerScale), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidEntryCount
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidEntryCount), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidFileCacheSize
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidFileCacheSize), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidInstanceStreams
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidInstanceStreams), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidMicrophoneBufferDuration
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidMicrophoneBufferDuration), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidNativeHandle
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidNativeHandle), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidRectangle
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidRectangle), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidServiceProvider
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidServiceProvider), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidSessionState
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidSessionState), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidSoundOffsetOrIndex
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidSoundOffsetOrIndex), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidStoragePath
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidStoragePath), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidStringFormat
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidStringFormat), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidTitleContainerName
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidTitleContainerName), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidTotalSize
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidTotalSize), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidTouchPanel
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidTouchPanel), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidTrackIndex
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidTrackIndex), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidUsage
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidUsage), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidVariableIndex
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidVariableIndex), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidWaveIndex
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidWaveIndex), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidWaveStream
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidWaveStream), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InvalidXactVolume
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InvalidXactVolume), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string InviteeNotSignedIn
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (InviteeNotSignedIn), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string IsCompleteMustBeCalled
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (IsCompleteMustBeCalled), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LeaderboardColumnNotFound
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LeaderboardColumnNotFound), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LeaderboardColumnOverflow
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LeaderboardColumnOverflow), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LeaderboardIsArbitrated
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LeaderboardIsArbitrated), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LeaderboardNotLocal
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LeaderboardNotLocal), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LeaderboardReaderCannotPage
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LeaderboardReaderCannotPage), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LeaderboardWriteOverflow
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LeaderboardWriteOverflow), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEn400BadRequest
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEn400BadRequest), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEn401Unauthorized
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEn401Unauthorized), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEn500InternalServerError
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEn500InternalServerError), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEn503ServiceUnavailable
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEn503ServiceUnavailable), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEnAccountBanned
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEnAccountBanned), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEnAccountSuspended
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEnAccountSuspended), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEnCountryNotSupported
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEnCountryNotSupported), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEnFlashUpdateRequired
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEnFlashUpdateRequired), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEnGamertagChangeRequired
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEnGamertagChangeRequired), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEnGamertagUpdateRequired
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEnGamertagUpdateRequired), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEnInvalidUser
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEnInvalidUser), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEnNotSupportedTitle
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEnNotSupportedTitle), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEnServiceNotProvisioned
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEnServiceNotProvisioned), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEnTermsOfServiceNotAccepted
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEnTermsOfServiceNotAccepted), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEnTitleUpdateRequired
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEnTitleUpdateRequired), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEnUnexpectedNetworkError
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEnUnexpectedNetworkError), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEnXBLConnectionUnavailable
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEnXBLConnectionUnavailable), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LIVEnXBLNotEnabled
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LIVEnXBLNotEnabled), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string LocalDeviceLibrary
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (LocalDeviceLibrary), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string MissingNativeDependency
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (MissingNativeDependency), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string MissingVertexShaderInput
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (MissingVertexShaderInput), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string MissingVertexShaderInputDetails
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (MissingVertexShaderInputDetails), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string MobileNoInstancing
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (MobileNoInstancing), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ModelHasNoEffect
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ModelHasNoEffect), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ModelHasNoIEffectMatrices
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ModelHasNoIEffectMatrices), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string MoreData
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (MoreData), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string MustBeValidIndex
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (MustBeValidIndex), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string MustCallBeginSprite
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (MustCallBeginSprite), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string MustDrawSomething
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (MustDrawSomething), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string MustResolveRenderTarget
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (MustResolveRenderTarget), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string MustRetrieveAtLeastOne
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (MustRetrieveAtLeastOne), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string MustUserShaderCode
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (MustUserShaderCode), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NegativePlaneDistance
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NegativePlaneDistance), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NegativeRadius
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NegativeRadius), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NetworkError
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NetworkError), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NetworkGamerDisposed
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NetworkGamerDisposed), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NetworkGamerNotLocal
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NetworkGamerNotLocal), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NetworkGamerRequired
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NetworkGamerRequired), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NetworkGamerWrongSession
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NetworkGamerWrongSession), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NetworkNotAvailable
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NetworkNotAvailable), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NetworkSessionPropertiesReadOnly
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NetworkSessionPropertiesReadOnly), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NoAudioPlaybackDevicesFound
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NoAudioPlaybackDevicesFound), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NoCreatorsClub
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NoCreatorsClub), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NoDefaultConstructor
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NoDefaultConstructor), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NoDeviceConnected
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NoDeviceConnected), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NoGraphicsDevice
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NoGraphicsDevice), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NoGraphicsDeviceContent
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NoGraphicsDeviceContent), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NoJoinInProgress
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NoJoinInProgress), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NonZeroInstanceFrequency
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NonZeroInstanceFrequency), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NoProjectGuid
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NoProjectGuid), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NoPublicSlots
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NoPublicSlots), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NotCurrentTechnique
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NotCurrentTechnique), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NotEnoughCorners
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NotEnoughCorners), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NotEnoughPacketSpace
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NotEnoughPacketSpace), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NotEnoughSourceSize
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NotEnoughSourceSize), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NotEnoughTargetSize
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NotEnoughTargetSize), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NotFound
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NotFound), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NotInvited
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NotInvited), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NoWaveBank
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NoWaveBank), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NullGraphicsDeviceService
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NullGraphicsDeviceService), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NullNotAllowed
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NullNotAllowed), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NullWindowHandleNotAllowed
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NullWindowHandleNotAllowed), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string NumberVerticesMustBeGreaterZero
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (NumberVerticesMustBeGreaterZero), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ObjectDisposedException
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ObjectDisposedException), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string OffsetNotValid
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (OffsetNotValid), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string OnlyOneCacheContainer
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (OnlyOneCacheContainer), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string OnlySupportedForLIVEn
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (OnlySupportedForLIVEn), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string OnlySupportedForXboxLIVE
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (OnlySupportedForXboxLIVE), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string OpenResourceNotBinary
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (OpenResourceNotBinary), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string OpenResourceNotFound
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (OpenResourceNotFound), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string OpenStreamError
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (OpenStreamError), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string OpenStreamNotFound
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (OpenStreamNotFound), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string OppositePlanes
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (OppositePlanes), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string OutOfMemoryDrawUserPrimitives
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (OutOfMemoryDrawUserPrimitives), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string OutRangeFieldOfView
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (OutRangeFieldOfView), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string PacketArrayTooSmall
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (PacketArrayTooSmall), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string PacketQueueFull
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (PacketQueueFull), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string PlayerDeviceAlreadyOpened
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (PlayerDeviceAlreadyOpened), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string PlayerFourFolder
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (PlayerFourFolder), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string PlayerOneFolder
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (PlayerOneFolder), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string PlayerThreeFolder
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (PlayerThreeFolder), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string PlayerTwoFolder
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (PlayerTwoFolder), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProFeatureNotSupported
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProFeatureNotSupported), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileAspectRatio
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileAspectRatio), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileDataCountRange
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileDataCountRange), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileDataIndexOutOfRange
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileDataIndexOutOfRange), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileDataOffsetRange
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileDataOffsetRange), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileDataSizeTooBig
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileDataSizeTooBig), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileFeatureNotSupported
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileFeatureNotSupported), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileFormatNotSupported
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileFormatNotSupported), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileInvalidBlendFormat
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileInvalidBlendFormat), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileInvalidDevice
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileInvalidDevice), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileInvalidFilterFormat
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileInvalidFilterFormat), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileMaxPrimitiveCount
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileMaxPrimitiveCount), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileMaxRenderTargets
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileMaxRenderTargets), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileMaxVertexElements
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileMaxVertexElements), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileMaxVertexStreams
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileMaxVertexStreams), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileMaxVertexStride
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileMaxVertexStride), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileNoIndexElementSize32
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileNoIndexElementSize32), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileNoMinMaxSrcDestBlend
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileNoMinMaxSrcDestBlend), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileNoSeparateAlphaBlend
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileNoSeparateAlphaBlend), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileNotPowerOfTwo
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileNotPowerOfTwo), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileNotPowerOfTwoDXT
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileNotPowerOfTwoDXT), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileNotPowerOfTwoMipped
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileNotPowerOfTwoMipped), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileNotPrivileged
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileNotPrivileged), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileNotSignedIn
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileNotSignedIn), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileNoWrapNonPow2
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileNoWrapNonPow2), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfilePixelShaderModel
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfilePixelShaderModel), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileTooBig
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileTooBig), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileVertexShaderModel
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileVertexShaderModel), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProfileVertexTextureFormatNotSupported
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProfileVertexTextureFormatNotSupported),
-                                                                    FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProxyAlreadyRunning
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProxyAlreadyRunning), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProxyCreateFailed
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProxyCreateFailed), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProxyInitializeFailed
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProxyInitializeFailed), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProxyMissingDependency
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProxyMissingDependency), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ProxyUpdateFailed
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ProxyUpdateFailed), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string RankedNoJoinInProgress
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (RankedNoJoinInProgress), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ReaderConstructedNewInstance
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ReaderConstructedNewInstance), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ReadOnly
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ReadOnly), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ReadOnlySharedResource
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ReadOnlySharedResource), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ReflectiveReaderTypeNotFound
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ReflectiveReaderTypeNotFound), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string RenderTargetsMustMatch
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (RenderTargetsMustMatch), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string RequireNonNullAudioEngine
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (RequireNonNullAudioEngine), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ResourceDataMustBeCorrectSize
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ResourceDataMustBeCorrectSize), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ResourceInUse
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ResourceInUse), FrameworkResources.resourceCulture);
-            }
-        }
-
-        [EditorBrowsable(EditorBrowsableState.Advanced)]
-        internal static ResourceManager ResourceManager
-        {
-            get
-            {
-                if (object.ReferenceEquals((object) FrameworkResources.resourceMan, (object) null))
-                    FrameworkResources.resourceMan =
-                            new ResourceManager("Microsoft.Xna.Framework.FrameworkResources", typeof (FrameworkResources).Assembly);
-                return FrameworkResources.resourceMan;
-            }
-        }
-
-        internal static string ResourcesMustBeGreaterThanZeroSize
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ResourcesMustBeGreaterThanZeroSize), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ResourceTooLarge
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ResourceTooLarge), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string SavedGameFolder
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (SavedGameFolder), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ScissorInvalid
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ScissorInvalid), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string SelectVariation
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (SelectVariation), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string SessionAlreadyExists
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (SessionAlreadyExists), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string SessionEnded
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (SessionEnded), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string SessionFindLocal
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (SessionFindLocal), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string SessionFull
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (SessionFull), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string SessionNotFound
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (SessionNotFound), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string SessionNotHost
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (SessionNotHost), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string SessionNotJoinable
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (SessionNotJoinable), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ShaderCodeSizeMustBeDword
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ShaderCodeSizeMustBeDword), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ShadersMustBeCompiled
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ShadersMustBeCompiled), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ShowSignInPaneCountInvalid
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ShowSignInPaneCountInvalid), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string SimulateMarketplacePurchaseCancelString
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (SimulateMarketplacePurchaseCancelString),
-                                                                    FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string SimulateMarketplacePurchaseOkString
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (SimulateMarketplacePurchaseOkString), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string SimulateMarketplacePurchaseString
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (SimulateMarketplacePurchaseString), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string SimulateMarketplaceTitleString
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (SimulateMarketplaceTitleString), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string SkinnedEffectMaxBones
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (SkinnedEffectMaxBones), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string SkinnedEffectWeightsPerVertex
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (SkinnedEffectWeightsPerVertex), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string SongPlaybackFailed
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (SongPlaybackFailed), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string StaleSearchResult
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (StaleSearchResult), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string StreamNotSeekable
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (StreamNotSeekable), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string StreamTooLong
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (StreamTooLong), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string StringCollectionInvalid
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (StringCollectionInvalid), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string StringNullEmptyOrTooLong
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (StringNullEmptyOrTooLong), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string StringTooLong
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (StringTooLong), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string TitleNameNotNull
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (TitleNameNotNull), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string TooManyOperations
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (TooManyOperations), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string TooManyPendingAsyncOperations
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (TooManyPendingAsyncOperations), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string TooManyRegions
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (TooManyRegions), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string TrialMode
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (TrialMode), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string TrueSkillNotHost
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (TrueSkillNotHost), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string TypeReaderDuplicate
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (TypeReaderDuplicate), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string TypeReaderInvalid
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (TypeReaderInvalid), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string TypeReaderNotFound
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (TypeReaderNotFound), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string TypeReaderNotRegistered
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (TypeReaderNotRegistered), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string UnexpectedError
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (UnexpectedError), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string UnknownError
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (UnknownError), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string VertexElementBadUsage
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (VertexElementBadUsage), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string VertexElementOffsetNotMultipleFour
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (VertexElementOffsetNotMultipleFour), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string VertexElementOutsideStride
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (VertexElementOutsideStride), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string VertexElementsOverlap
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (VertexElementsOverlap), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string VertexStrideTooSmall
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (VertexStrideTooSmall), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string VertexTypeNotIVertexType
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (VertexTypeNotIVertexType), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string VertexTypeNotValueType
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (VertexTypeNotValueType), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string VertexTypeNullDeclaration
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (VertexTypeNullDeclaration), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string VertexTypeWrongSize
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (VertexTypeWrongSize), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string ViewportInvalid
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (ViewportInvalid), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string VisualizationArrayTooSmall
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (VisualizationArrayTooSmall), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string VoiceDestructionFailed
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (VoiceDestructionFailed), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string WaveBankNotPrepared
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (WaveBankNotPrepared), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string WmpMediaSource
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (WmpMediaSource), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string WriteLeaderboardException
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (WriteLeaderboardException), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string WriteOnlyGetNotSupported
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (WriteOnlyGetNotSupported), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string WrongNumberOfGamers
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (WrongNumberOfGamers), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string WrongTextureFormat
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (WrongTextureFormat), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string XactReadFile
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (XactReadFile), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string XBLIGFeatureNotSupported
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (XBLIGFeatureNotSupported), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string XlastAchievement
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (XlastAchievement), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string XlastContextValue
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (XlastContextValue), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string XlastGameMode
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (XlastGameMode), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string XlastGamerPicture
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (XlastGamerPicture), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string XlastLeaderboard
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (XlastLeaderboard), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string XlastPresenceMode
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (XlastPresenceMode), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string XlastProperty
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (XlastProperty), FrameworkResources.resourceCulture);
-            }
-        }
-
-        internal static string XlastUnknown
-        {
-            get
-            {
-                return FrameworkResources.ResourceManager.GetString(nameof (XlastUnknown), FrameworkResources.resourceCulture);
-            }
-        }
-    }
-}

+ 0 - 11
Unity/Assets/Model/Base/UnityMath/FrameworkResources.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 4e7c8cf8067465c499daed0296f59fc3
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 212
Unity/Assets/Model/Base/UnityMath/MathHelper.cs

@@ -1,212 +0,0 @@
-using System;
-
-namespace PF
-{
-    public static class MathHelper
-    {
-        public const float E = 2.718282f;
-        public const float Log10E = 0.4342945f;
-        public const float Log2E = 1.442695f;
-        public const float Pi = 3.141593f;
-        public const float PiOver2 = 1.570796f;
-        public const float PiOver4 = 0.7853982f;
-        public const float TwoPi = 6.283185f;
-        public const float Deg2Rad = 0.01745329f;
-        public const float Rad2Deg = 57.29578f;
-        public const float Epsilon = 1.401298E-45f;
-        public const float Infinity = float.PositiveInfinity;
-        public const float NegativeInfinity = float.NegativeInfinity;
-
-        public static float Clamp(float value, float min, float max)
-        {
-            value = (double) value > (double) max? max : value;
-            value = (double) value < (double) min? min : value;
-            return value;
-        }
-
-        public static int Clamp(int value, int min, int max)
-        {
-            value = value > max? max : value;
-            value = value < min? min : value;
-            return value;
-        }
-
-        public static float Hermite(float value1, float tangent1, float value2, float tangent2, float amount)
-        {
-            float num1 = amount;
-            float num2 = num1 * num1;
-            float num3 = num1 * num2;
-            float num4 = (float) (2.0 * (double) num3 - 3.0 * (double) num2 + 1.0);
-            float num5 = (float) (-2.0 * (double) num3 + 3.0 * (double) num2);
-            float num6 = num3 - 2f * num2 + num1;
-            float num7 = num3 - num2;
-            return (float) ((double) value1 * (double) num4 + (double) value2 * (double) num5 + (double) tangent1 * (double) num6 +
-                (double) tangent2 * (double) num7);
-        }
-
-        public static float Lerp(float value1, float value2, float amount)
-        {
-            return value1 + (value2 - value1) * amount;
-        }
-
-        public static float Max(float a, float b)
-        {
-            if ((double) a > (double) b)
-                return a;
-            return b;
-        }
-
-        public static float Min(float a, float b)
-        {
-            if ((double) a < (double) b)
-                return a;
-            return b;
-        }
-
-        public static int Max(int a, int b)
-        {
-            if (a > b)
-                return a;
-            return b;
-        }
-
-        public static int Min(int a, int b)
-        {
-            if (a < b)
-                return a;
-            return b;
-        }
-
-        public static float SmoothStep(float value1, float value2, float amount)
-        {
-            float num = MathHelper.Clamp(amount, 0.0f, 1f);
-            return MathHelper.Lerp(value1, value2, (float) ((double) num * (double) num * (3.0 - 2.0 * (double) num)));
-        }
-
-        public static float RadiansToDegrees(float radians)
-        {
-            return radians * 57.29578f;
-        }
-
-        public static float DegreesToRadians(float degrees)
-        {
-            return degrees * ((float) Math.PI / 180f);
-        }
-
-        public static float Sin(float f)
-        {
-            return (float) Math.Sin((double) f);
-        }
-
-        public static float Cos(float f)
-        {
-            return (float) Math.Cos((double) f);
-        }
-
-        public static float Tan(float f)
-        {
-            return (float) Math.Tan((double) f);
-        }
-
-        public static float ASin(float f)
-        {
-            return (float) Math.Asin((double) f);
-        }
-
-        public static float ACos(float f)
-        {
-            return (float) Math.Acos((double) f);
-        }
-
-        public static float ATan(float f)
-        {
-            return (float) Math.Atan((double) f);
-        }
-
-        public static float ATan2(float a, float b)
-        {
-            return (float) Math.Atan2((double) a, (double) b);
-        }
-
-        public static float Sqrt(float f)
-        {
-            return (float) Math.Sqrt((double) f);
-        }
-
-        public static float Abs(float f)
-        {
-            return Math.Abs(f);
-        }
-
-        public static int Abs(int value)
-        {
-            return Math.Abs(value);
-        }
-
-        public static float Pow(float fBase, float fExponent)
-        {
-            return (float) Math.Pow((double) fBase, (double) fExponent);
-        }
-
-        public static float Exp(float power)
-        {
-            return (float) Math.Exp((double) power);
-        }
-
-        public static float Log(float f)
-        {
-            return (float) Math.Log((double) f);
-        }
-
-        public static float Log10(float f)
-        {
-            return (float) Math.Log10((double) f);
-        }
-
-        public static float Ceil(float f)
-        {
-            return (float) Math.Ceiling((double) f);
-        }
-
-        public static float Floor(float f)
-        {
-            return (float) Math.Floor((double) f);
-        }
-
-        public static float Round(float f)
-        {
-            return (float) Math.Round((double) f);
-        }
-
-        public static int ICeil(float f)
-        {
-            return (int) Math.Ceiling((double) f);
-        }
-
-        public static int IFloor(float f)
-        {
-            return (int) Math.Floor((double) f);
-        }
-
-        public static int IRound(float f)
-        {
-            return (int) Math.Round((double) f);
-        }
-
-        public static bool IsPowerOfTwo(int value)
-        {
-            return (value & value - 1) == 0;
-        }
-
-        public static int NextPowerOfTwo(int v)
-        {
-            --v;
-            v |= v >> 16;
-            v |= v >> 8;
-            v |= v >> 4;
-            v |= v >> 2;
-            v |= v >> 1;
-            return v + 1;
-        }
-    }
-}

+ 0 - 11
Unity/Assets/Model/Base/UnityMath/MathHelper.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: cc8f8adbabab6af4aa9a2adcce2ad471
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 3 - 8
Unity/Assets/Model/Base/UnityMath/Matrix3x3.cs

@@ -7,6 +7,8 @@ namespace PF
 {
 	public struct Matrix3x3
 	{
+		public static readonly Matrix3x3 identity = new Matrix3x3(1, 0, 0, 0, 1, 0, 0, 0, 1);
+		
 		public float[] Data;
 
 		public Matrix3x3(float m0, float m1, float m2, float m3, float m4, float m5, float m6, float m7, float m8)
@@ -16,14 +18,7 @@ namespace PF
 			Data[1] = m1; Data[4] = m4; Data[7] = m7;
 			Data[2] = m2; Data[5] = m5; Data[8] = m8;
 		}
-
-		public static Matrix3x3 identity
-		{
-			get
-			{
-				return new Matrix3x3(1, 0, 0, 0, 1, 0, 0, 0, 1);
-			}
-		}
+		
 		public void SetZero()
 		{
 			Data[0] = 0f; Data[3] = 0f; Data[6] = 0f;

+ 19 - 148
Unity/Assets/Model/Base/UnityMath/Matrix4x4.cs

@@ -6,7 +6,7 @@ namespace PF
     [Serializable]
     public struct Matrix4x4: IEquatable<Matrix4x4>
     {
-        private static readonly Matrix4x4 _identity = new Matrix4x4(1f, 0.0f, 0.0f, 0.0f, 0.0f, 1f, 0.0f, 0.0f, 0.0f, 0.0f, 1f, 0.0f, 0.0f, 0.0f, 0.0f, 1f);
+        public static readonly Matrix4x4 identity = new Matrix4x4(1f, 0.0f, 0.0f, 0.0f, 0.0f, 1f, 0.0f, 0.0f, 0.0f, 0.0f, 1f, 0.0f, 0.0f, 0.0f, 0.0f, 1f);
         public float m00;
         public float m01;
         public float m02;
@@ -23,14 +23,6 @@ namespace PF
         public float m31;
         public float m32;
         public float m33;
-
-        public static Matrix4x4 identity
-        {
-            get
-            {
-                return Matrix4x4._identity;
-            }
-        }
         
         public bool isIdentity
         {
@@ -360,127 +352,6 @@ namespace PF
             matrix.m33 = 1f;
         }
 
-        public static Matrix4x4 CreatePerspectiveFieldOfView(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance)
-        {
-            if ((double) fieldOfView <= 0.0 || (double) fieldOfView >= 3.14159297943115)
-                throw new ArgumentOutOfRangeException(nameof (fieldOfView),
-                                                      string.Format((IFormatProvider) CultureInfo.CurrentCulture,
-                                                                    FrameworkResources.OutRangeFieldOfView,
-                                                                    new object[1] { (object) nameof (fieldOfView) }));
-            if ((double) nearPlaneDistance <= 0.0)
-                throw new ArgumentOutOfRangeException(nameof (nearPlaneDistance),
-                                                      string.Format((IFormatProvider) CultureInfo.CurrentCulture,
-                                                                    FrameworkResources.NegativePlaneDistance,
-                                                                    new object[1] { (object) nameof (nearPlaneDistance) }));
-            if ((double) farPlaneDistance <= 0.0)
-                throw new ArgumentOutOfRangeException(nameof (farPlaneDistance),
-                                                      string.Format((IFormatProvider) CultureInfo.CurrentCulture,
-                                                                    FrameworkResources.NegativePlaneDistance,
-                                                                    new object[1] { (object) nameof (farPlaneDistance) }));
-            if ((double) nearPlaneDistance >= (double) farPlaneDistance)
-                throw new ArgumentOutOfRangeException(nameof (nearPlaneDistance), FrameworkResources.OppositePlanes);
-            float num1 = 1f / (float) Math.Tan((double) fieldOfView * 0.5);
-            float num2 = num1 / aspectRatio;
-            Matrix4x4 matrix44;
-            matrix44.m00 = num2;
-            matrix44.m10 = matrix44.m20 = matrix44.m30 = 0.0f;
-            matrix44.m11 = num1;
-            matrix44.m01 = matrix44.m21 = matrix44.m31 = 0.0f;
-            matrix44.m02 = matrix44.m12 = 0.0f;
-            matrix44.m22 = farPlaneDistance / (nearPlaneDistance - farPlaneDistance);
-            matrix44.m32 = -1f;
-            matrix44.m03 = matrix44.m13 = matrix44.m33 = 0.0f;
-            matrix44.m23 = (float) ((double) nearPlaneDistance * (double) farPlaneDistance /
-                ((double) nearPlaneDistance - (double) farPlaneDistance));
-            return matrix44;
-        }
-
-        public static void CreatePerspectiveFieldOfView(
-            float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance, out Matrix4x4 matrix)
-        {
-            if ((double) fieldOfView <= 0.0 || (double) fieldOfView >= 3.14159297943115)
-                throw new ArgumentOutOfRangeException(nameof (fieldOfView),
-                                                      string.Format((IFormatProvider) CultureInfo.CurrentCulture,
-                                                                    FrameworkResources.OutRangeFieldOfView,
-                                                                    new object[1] { (object) nameof (fieldOfView) }));
-            if ((double) nearPlaneDistance <= 0.0)
-                throw new ArgumentOutOfRangeException(nameof (nearPlaneDistance),
-                                                      string.Format((IFormatProvider) CultureInfo.CurrentCulture,
-                                                                    FrameworkResources.NegativePlaneDistance,
-                                                                    new object[1] { (object) nameof (nearPlaneDistance) }));
-            if ((double) farPlaneDistance <= 0.0)
-                throw new ArgumentOutOfRangeException(nameof (farPlaneDistance),
-                                                      string.Format((IFormatProvider) CultureInfo.CurrentCulture,
-                                                                    FrameworkResources.NegativePlaneDistance,
-                                                                    new object[1] { (object) nameof (farPlaneDistance) }));
-            if ((double) nearPlaneDistance >= (double) farPlaneDistance)
-                throw new ArgumentOutOfRangeException(nameof (nearPlaneDistance), FrameworkResources.OppositePlanes);
-            float num1 = 1f / (float) Math.Tan((double) fieldOfView * 0.5);
-            float num2 = num1 / aspectRatio;
-            matrix.m00 = num2;
-            matrix.m10 = matrix.m20 = matrix.m30 = 0.0f;
-            matrix.m11 = num1;
-            matrix.m01 = matrix.m21 = matrix.m31 = 0.0f;
-            matrix.m02 = matrix.m12 = 0.0f;
-            matrix.m22 = farPlaneDistance / (nearPlaneDistance - farPlaneDistance);
-            matrix.m32 = -1f;
-            matrix.m03 = matrix.m13 = matrix.m33 = 0.0f;
-            matrix.m23 = (float) ((double) nearPlaneDistance * (double) farPlaneDistance / ((double) nearPlaneDistance - (double) farPlaneDistance));
-        }
-
-        public static Matrix4x4 CreatePerspective(float width, float height, float nearPlaneDistance, float farPlaneDistance)
-        {
-            if ((double) nearPlaneDistance <= 0.0)
-                throw new ArgumentOutOfRangeException(nameof (nearPlaneDistance),
-                                                      string.Format((IFormatProvider) CultureInfo.CurrentCulture,
-                                                                    FrameworkResources.NegativePlaneDistance,
-                                                                    new object[1] { (object) nameof (nearPlaneDistance) }));
-            if ((double) farPlaneDistance <= 0.0)
-                throw new ArgumentOutOfRangeException(nameof (farPlaneDistance),
-                                                      string.Format((IFormatProvider) CultureInfo.CurrentCulture,
-                                                                    FrameworkResources.NegativePlaneDistance,
-                                                                    new object[1] { (object) nameof (farPlaneDistance) }));
-            if ((double) nearPlaneDistance >= (double) farPlaneDistance)
-                throw new ArgumentOutOfRangeException(nameof (nearPlaneDistance), FrameworkResources.OppositePlanes);
-            Matrix4x4 matrix44;
-            matrix44.m00 = 2f * nearPlaneDistance / width;
-            matrix44.m10 = matrix44.m20 = matrix44.m30 = 0.0f;
-            matrix44.m11 = 2f * nearPlaneDistance / height;
-            matrix44.m01 = matrix44.m21 = matrix44.m31 = 0.0f;
-            matrix44.m22 = farPlaneDistance / (nearPlaneDistance - farPlaneDistance);
-            matrix44.m02 = matrix44.m12 = 0.0f;
-            matrix44.m32 = -1f;
-            matrix44.m03 = matrix44.m13 = matrix44.m33 = 0.0f;
-            matrix44.m23 = (float) ((double) nearPlaneDistance * (double) farPlaneDistance /
-                ((double) nearPlaneDistance - (double) farPlaneDistance));
-            return matrix44;
-        }
-
-        public static void CreatePerspective(float width, float height, float nearPlaneDistance, float farPlaneDistance, out Matrix4x4 matrix)
-        {
-            if ((double) nearPlaneDistance <= 0.0)
-                throw new ArgumentOutOfRangeException(nameof (nearPlaneDistance),
-                                                      string.Format((IFormatProvider) CultureInfo.CurrentCulture,
-                                                                    FrameworkResources.NegativePlaneDistance,
-                                                                    new object[1] { (object) nameof (nearPlaneDistance) }));
-            if ((double) farPlaneDistance <= 0.0)
-                throw new ArgumentOutOfRangeException(nameof (farPlaneDistance),
-                                                      string.Format((IFormatProvider) CultureInfo.CurrentCulture,
-                                                                    FrameworkResources.NegativePlaneDistance,
-                                                                    new object[1] { (object) nameof (farPlaneDistance) }));
-            if ((double) nearPlaneDistance >= (double) farPlaneDistance)
-                throw new ArgumentOutOfRangeException(nameof (nearPlaneDistance), FrameworkResources.OppositePlanes);
-            matrix.m00 = 2f * nearPlaneDistance / width;
-            matrix.m10 = matrix.m20 = matrix.m30 = 0.0f;
-            matrix.m11 = 2f * nearPlaneDistance / height;
-            matrix.m01 = matrix.m21 = matrix.m31 = 0.0f;
-            matrix.m22 = farPlaneDistance / (nearPlaneDistance - farPlaneDistance);
-            matrix.m02 = matrix.m12 = 0.0f;
-            matrix.m32 = -1f;
-            matrix.m03 = matrix.m13 = matrix.m33 = 0.0f;
-            matrix.m23 = (float) ((double) nearPlaneDistance * (double) farPlaneDistance / ((double) nearPlaneDistance - (double) farPlaneDistance));
-        }
-
         public static Matrix4x4 CreateOrthographic(float width, float height, float zNearPlane, float zFarPlane)
         {
             Matrix4x4 matrix44;
@@ -559,15 +430,15 @@ namespace PF
 
         public static Matrix4x4 CreateFromQuaternion(Quaternion quaternion)
         {
-            float num1 = quaternion.X * quaternion.X;
-            float num2 = quaternion.Y * quaternion.Y;
-            float num3 = quaternion.Z * quaternion.Z;
-            float num4 = quaternion.X * quaternion.Y;
-            float num5 = quaternion.Z * quaternion.W;
-            float num6 = quaternion.Z * quaternion.X;
-            float num7 = quaternion.Y * quaternion.W;
-            float num8 = quaternion.Y * quaternion.Z;
-            float num9 = quaternion.X * quaternion.W;
+            float num1 = quaternion.x * quaternion.x;
+            float num2 = quaternion.y * quaternion.y;
+            float num3 = quaternion.z * quaternion.z;
+            float num4 = quaternion.x * quaternion.y;
+            float num5 = quaternion.z * quaternion.w;
+            float num6 = quaternion.z * quaternion.x;
+            float num7 = quaternion.y * quaternion.w;
+            float num8 = quaternion.y * quaternion.z;
+            float num9 = quaternion.x * quaternion.w;
             Matrix4x4 matrix44;
             matrix44.m00 = (float) (1.0 - 2.0 * ((double) num2 + (double) num3));
             matrix44.m10 = (float) (2.0 * ((double) num4 + (double) num5));
@@ -590,15 +461,15 @@ namespace PF
 
         public static void CreateFromQuaternion(ref Quaternion quaternion, out Matrix4x4 matrix)
         {
-            float num1 = quaternion.X * quaternion.X;
-            float num2 = quaternion.Y * quaternion.Y;
-            float num3 = quaternion.Z * quaternion.Z;
-            float num4 = quaternion.X * quaternion.Y;
-            float num5 = quaternion.Z * quaternion.W;
-            float num6 = quaternion.Z * quaternion.X;
-            float num7 = quaternion.Y * quaternion.W;
-            float num8 = quaternion.Y * quaternion.Z;
-            float num9 = quaternion.X * quaternion.W;
+            float num1 = quaternion.x * quaternion.x;
+            float num2 = quaternion.y * quaternion.y;
+            float num3 = quaternion.z * quaternion.z;
+            float num4 = quaternion.x * quaternion.y;
+            float num5 = quaternion.z * quaternion.w;
+            float num6 = quaternion.z * quaternion.x;
+            float num7 = quaternion.y * quaternion.w;
+            float num8 = quaternion.y * quaternion.z;
+            float num9 = quaternion.x * quaternion.w;
             matrix.m00 = (float) (1.0 - 2.0 * ((double) num2 + (double) num3));
             matrix.m10 = (float) (2.0 * ((double) num4 + (double) num5));
             matrix.m20 = (float) (2.0 * ((double) num6 - (double) num7));

+ 0 - 72
Unity/Assets/Model/Base/UnityMath/PackUtils.cs

@@ -1,72 +0,0 @@
-using System;
-
-namespace PF
-{
-    internal static class PackUtils
-    {
-        private static double ClampAndRound(float value, float min, float max)
-        {
-            if (float.IsNaN(value))
-                return 0.0;
-            if (float.IsInfinity(value))
-            {
-                if (!float.IsNegativeInfinity(value))
-                    return (double) max;
-                return (double) min;
-            }
-
-            if ((double) value < (double) min)
-                return (double) min;
-            if ((double) value > (double) max)
-                return (double) max;
-            return Math.Round((double) value);
-        }
-
-        public static uint PackSigned(uint bitmask, float value)
-        {
-            float max = (float) (bitmask >> 1);
-            float min = (float) (-(double) max - 1.0);
-            return (uint) (int) PackUtils.ClampAndRound(value, min, max) & bitmask;
-        }
-
-        public static uint PackSNorm(uint bitmask, float value)
-        {
-            float max = (float) (bitmask >> 1);
-            value *= max;
-            return (uint) (int) PackUtils.ClampAndRound(value, -max, max) & bitmask;
-        }
-
-        public static uint PackUNorm(float bitmask, float value)
-        {
-            value *= bitmask;
-            return (uint) PackUtils.ClampAndRound(value, 0.0f, bitmask);
-        }
-
-        public static uint PackUnsigned(float bitmask, float value)
-        {
-            return (uint) PackUtils.ClampAndRound(value, 0.0f, bitmask);
-        }
-
-        public static float UnpackSNorm(uint bitmask, uint value)
-        {
-            uint num1 = bitmask + 1U >> 1;
-            if (((int) value & (int) num1) != 0)
-            {
-                if (((int) value & (int) bitmask) == (int) num1)
-                    return -1f;
-                value |= ~bitmask;
-            }
-            else
-                value &= bitmask;
-
-            float num2 = (float) (bitmask >> 1);
-            return (float) value / num2;
-        }
-
-        public static float UnpackUNorm(uint bitmask, uint value)
-        {
-            value &= bitmask;
-            return (float) value / (float) bitmask;
-        }
-    }
-}

+ 0 - 11
Unity/Assets/Model/Base/UnityMath/PackUtils.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 1a2006ae204bdc148b8fbc4478768333
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 289 - 296
Unity/Assets/Model/Base/UnityMath/Quaternion.cs

@@ -6,26 +6,19 @@ namespace PF
     [Serializable]
     public struct Quaternion: IEquatable<Quaternion>
     {
-        private static Quaternion _identity = new Quaternion(0.0f, 0.0f, 0.0f, 1f);
-        public float W;
-        public float X;
-        public float Y;
-        public float Z;
+        public static readonly Quaternion identity = new Quaternion(0.0f, 0.0f, 0.0f, 1f);
+        public float w;
+        public float x;
+        public float y;
+        public float z;
 
-        public static Quaternion identity
-        {
-            get
-            {
-                return Quaternion._identity;
-            }
-        }
 
         public Quaternion(float x, float y, float z, float w)
         {
-            this.X = x;
-            this.Y = y;
-            this.Z = z;
-            this.W = w;
+            this.x = x;
+            this.y = y;
+            this.z = z;
+            this.w = w;
         }
 
         public Quaternion(float angle, Vector3 rkAxis)
@@ -33,10 +26,10 @@ namespace PF
             float num1 = angle * 0.5f;
             float num2 = (float) Math.Sin((double) num1);
             float num3 = (float) Math.Cos((double) num1);
-            this.X = rkAxis.x * num2;
-            this.Y = rkAxis.y * num2;
-            this.Z = rkAxis.z * num2;
-            this.W = num3;
+            this.x = rkAxis.x * num2;
+            this.y = rkAxis.y * num2;
+            this.z = rkAxis.z * num2;
+            this.w = num3;
         }
 
         public Quaternion(Vector3 xaxis, Vector3 yaxis, Vector3 zaxis)
@@ -65,16 +58,16 @@ namespace PF
             float num7 = yaw * 0.5f;
             float num8 = (float) Math.Sin((double) num7);
             float num9 = (float) Math.Cos((double) num7);
-            this.X = (float) ((double) num9 * (double) num5 * (double) num3 + (double) num8 * (double) num6 * (double) num2);
-            this.Y = (float) ((double) num8 * (double) num6 * (double) num3 - (double) num9 * (double) num5 * (double) num2);
-            this.Z = (float) ((double) num9 * (double) num6 * (double) num2 - (double) num8 * (double) num5 * (double) num3);
-            this.W = (float) ((double) num9 * (double) num6 * (double) num3 + (double) num8 * (double) num5 * (double) num2);
+            this.x = (float) ((double) num9 * (double) num5 * (double) num3 + (double) num8 * (double) num6 * (double) num2);
+            this.y = (float) ((double) num8 * (double) num6 * (double) num3 - (double) num9 * (double) num5 * (double) num2);
+            this.z = (float) ((double) num9 * (double) num6 * (double) num2 - (double) num8 * (double) num5 * (double) num3);
+            this.w = (float) ((double) num9 * (double) num6 * (double) num3 + (double) num8 * (double) num5 * (double) num2);
         }
         
 #if !SERVER
         public static implicit operator UnityEngine.Quaternion(Quaternion q)
         {
-            return new UnityEngine.Quaternion(q.X, q.Y, q.Z, q.W);
+            return new UnityEngine.Quaternion(q.x, q.y, q.z, q.w);
         }
         
         public static implicit operator Quaternion(UnityEngine.Quaternion q)
@@ -86,16 +79,16 @@ namespace PF
         public override string ToString()
         {
             CultureInfo currentCulture = CultureInfo.CurrentCulture;
-            return string.Format((IFormatProvider) currentCulture, "({0}, {1}, {2}, {3})", (object) this.X.ToString((IFormatProvider) currentCulture),
-                                 (object) this.Y.ToString((IFormatProvider) currentCulture),
-                                 (object) this.Z.ToString((IFormatProvider) currentCulture),
-                                 (object) this.W.ToString((IFormatProvider) currentCulture));
+            return string.Format((IFormatProvider) currentCulture, "({0}, {1}, {2}, {3})", (object) this.x.ToString((IFormatProvider) currentCulture),
+                                 (object) this.y.ToString((IFormatProvider) currentCulture),
+                                 (object) this.z.ToString((IFormatProvider) currentCulture),
+                                 (object) this.w.ToString((IFormatProvider) currentCulture));
         }
 
         public bool Equals(Quaternion other)
         {
-            if ((double) this.X == (double) other.X && (double) this.Y == (double) other.Y && (double) this.Z == (double) other.Z)
-                return (double) this.W == (double) other.W;
+            if ((double) this.x == (double) other.x && (double) this.y == (double) other.y && (double) this.z == (double) other.z)
+                return (double) this.w == (double) other.w;
             return false;
         }
 
@@ -109,73 +102,73 @@ namespace PF
 
         public override int GetHashCode()
         {
-            return this.X.GetHashCode() + this.Y.GetHashCode() + this.Z.GetHashCode() + this.W.GetHashCode();
+            return this.x.GetHashCode() + this.y.GetHashCode() + this.z.GetHashCode() + this.w.GetHashCode();
         }
 
         public float LengthSquared()
         {
-            return (float) ((double) this.X * (double) this.X + (double) this.Y * (double) this.Y + (double) this.Z * (double) this.Z +
-                (double) this.W * (double) this.W);
+            return (float) ((double) this.x * (double) this.x + (double) this.y * (double) this.y + (double) this.z * (double) this.z +
+                (double) this.w * (double) this.w);
         }
 
         public float Length()
         {
-            return (float) Math.Sqrt((double) this.X * (double) this.X + (double) this.Y * (double) this.Y + (double) this.Z * (double) this.Z +
-                                     (double) this.W * (double) this.W);
+            return (float) Math.Sqrt((double) this.x * (double) this.x + (double) this.y * (double) this.y + (double) this.z * (double) this.z +
+                                     (double) this.w * (double) this.w);
         }
 
         public void Normalize()
         {
-            float num = 1f / (float) Math.Sqrt((double) this.X * (double) this.X + (double) this.Y * (double) this.Y +
-                                               (double) this.Z * (double) this.Z + (double) this.W * (double) this.W);
-            this.X *= num;
-            this.Y *= num;
-            this.Z *= num;
-            this.W *= num;
+            float num = 1f / (float) Math.Sqrt((double) this.x * (double) this.x + (double) this.y * (double) this.y +
+                                               (double) this.z * (double) this.z + (double) this.w * (double) this.w);
+            this.x *= num;
+            this.y *= num;
+            this.z *= num;
+            this.w *= num;
         }
 
         public static Quaternion Normalize(Quaternion quaternion)
         {
-            float num = 1f / (float) Math.Sqrt((double) quaternion.X * (double) quaternion.X + (double) quaternion.Y * (double) quaternion.Y +
-                                               (double) quaternion.Z * (double) quaternion.Z + (double) quaternion.W * (double) quaternion.W);
+            float num = 1f / (float) Math.Sqrt((double) quaternion.x * (double) quaternion.x + (double) quaternion.y * (double) quaternion.y +
+                                               (double) quaternion.z * (double) quaternion.z + (double) quaternion.w * (double) quaternion.w);
             Quaternion quaternion1;
-            quaternion1.X = quaternion.X * num;
-            quaternion1.Y = quaternion.Y * num;
-            quaternion1.Z = quaternion.Z * num;
-            quaternion1.W = quaternion.W * num;
+            quaternion1.x = quaternion.x * num;
+            quaternion1.y = quaternion.y * num;
+            quaternion1.z = quaternion.z * num;
+            quaternion1.w = quaternion.w * num;
             return quaternion1;
         }
 
         public static void Normalize(ref Quaternion quaternion, out Quaternion result)
         {
-            float num = 1f / (float) Math.Sqrt((double) quaternion.X * (double) quaternion.X + (double) quaternion.Y * (double) quaternion.Y +
-                                               (double) quaternion.Z * (double) quaternion.Z + (double) quaternion.W * (double) quaternion.W);
-            result.X = quaternion.X * num;
-            result.Y = quaternion.Y * num;
-            result.Z = quaternion.Z * num;
-            result.W = quaternion.W * num;
+            float num = 1f / (float) Math.Sqrt((double) quaternion.x * (double) quaternion.x + (double) quaternion.y * (double) quaternion.y +
+                                               (double) quaternion.z * (double) quaternion.z + (double) quaternion.w * (double) quaternion.w);
+            result.x = quaternion.x * num;
+            result.y = quaternion.y * num;
+            result.z = quaternion.z * num;
+            result.w = quaternion.w * num;
         }
 
         public static Quaternion Inverse(Quaternion quaternion)
         {
-            float num = 1f / (float) ((double) quaternion.X * (double) quaternion.X + (double) quaternion.Y * (double) quaternion.Y +
-                (double) quaternion.Z * (double) quaternion.Z + (double) quaternion.W * (double) quaternion.W);
+            float num = 1f / (float) ((double) quaternion.x * (double) quaternion.x + (double) quaternion.y * (double) quaternion.y +
+                (double) quaternion.z * (double) quaternion.z + (double) quaternion.w * (double) quaternion.w);
             Quaternion quaternion1;
-            quaternion1.X = -quaternion.X * num;
-            quaternion1.Y = -quaternion.Y * num;
-            quaternion1.Z = -quaternion.Z * num;
-            quaternion1.W = quaternion.W * num;
+            quaternion1.x = -quaternion.x * num;
+            quaternion1.y = -quaternion.y * num;
+            quaternion1.z = -quaternion.z * num;
+            quaternion1.w = quaternion.w * num;
             return quaternion1;
         }
 
         public static void Inverse(ref Quaternion quaternion, out Quaternion result)
         {
-            float num = 1f / (float) ((double) quaternion.X * (double) quaternion.X + (double) quaternion.Y * (double) quaternion.Y +
-                (double) quaternion.Z * (double) quaternion.Z + (double) quaternion.W * (double) quaternion.W);
-            result.X = -quaternion.X * num;
-            result.Y = -quaternion.Y * num;
-            result.Z = -quaternion.Z * num;
-            result.W = quaternion.W * num;
+            float num = 1f / (float) ((double) quaternion.x * (double) quaternion.x + (double) quaternion.y * (double) quaternion.y +
+                (double) quaternion.z * (double) quaternion.z + (double) quaternion.w * (double) quaternion.w);
+            result.x = -quaternion.x * num;
+            result.y = -quaternion.y * num;
+            result.z = -quaternion.z * num;
+            result.w = quaternion.w * num;
         }
 
         public static Quaternion CreateFromAxisAngle(Vector3 axis, float angle)
@@ -184,10 +177,10 @@ namespace PF
             float num2 = (float) Math.Sin((double) num1);
             float num3 = (float) Math.Cos((double) num1);
             Quaternion quaternion;
-            quaternion.X = axis.x * num2;
-            quaternion.Y = axis.y * num2;
-            quaternion.Z = axis.z * num2;
-            quaternion.W = num3;
+            quaternion.x = axis.x * num2;
+            quaternion.y = axis.y * num2;
+            quaternion.z = axis.z * num2;
+            quaternion.w = num3;
             return quaternion;
         }
 
@@ -196,10 +189,10 @@ namespace PF
             float num1 = angle * 0.5f;
             float num2 = (float) Math.Sin((double) num1);
             float num3 = (float) Math.Cos((double) num1);
-            result.X = axis.x * num2;
-            result.Y = axis.y * num2;
-            result.Z = axis.z * num2;
-            result.W = num3;
+            result.x = axis.x * num2;
+            result.y = axis.y * num2;
+            result.z = axis.z * num2;
+            result.w = num3;
         }
 
         public static Quaternion CreateFromYawPitchRoll(float yaw, float pitch, float roll)
@@ -214,10 +207,10 @@ namespace PF
             float num8 = (float) Math.Sin((double) num7);
             float num9 = (float) Math.Cos((double) num7);
             Quaternion quaternion;
-            quaternion.X = (float) ((double) num9 * (double) num5 * (double) num3 + (double) num8 * (double) num6 * (double) num2);
-            quaternion.Y = (float) ((double) num8 * (double) num6 * (double) num3 - (double) num9 * (double) num5 * (double) num2);
-            quaternion.Z = (float) ((double) num9 * (double) num6 * (double) num2 - (double) num8 * (double) num5 * (double) num3);
-            quaternion.W = (float) ((double) num9 * (double) num6 * (double) num3 + (double) num8 * (double) num5 * (double) num2);
+            quaternion.x = (float) ((double) num9 * (double) num5 * (double) num3 + (double) num8 * (double) num6 * (double) num2);
+            quaternion.y = (float) ((double) num8 * (double) num6 * (double) num3 - (double) num9 * (double) num5 * (double) num2);
+            quaternion.z = (float) ((double) num9 * (double) num6 * (double) num2 - (double) num8 * (double) num5 * (double) num3);
+            quaternion.w = (float) ((double) num9 * (double) num6 * (double) num3 + (double) num8 * (double) num5 * (double) num2);
             return quaternion;
         }
         
@@ -252,18 +245,18 @@ namespace PF
         private static Matrix3x3 QuaternionToMatrix(Quaternion q)
         {
             // Precalculate coordinate products
-            float x = q.X * 2.0F;
-            float y = q.Y * 2.0F;
-            float z = q.Z * 2.0F;
-            float xx = q.X * x;
-            float yy = q.Y * y;
-            float zz = q.Z * z;
-            float xy = q.X * y;
-            float xz = q.X * z;
-            float yz = q.Y * z;
-            float wx = q.W * x;
-            float wy = q.W * y;
-            float wz = q.W * z;
+            float x = q.x * 2.0F;
+            float y = q.y * 2.0F;
+            float z = q.z * 2.0F;
+            float xx = q.x * x;
+            float yy = q.y * y;
+            float zz = q.z * z;
+            float xy = q.x * y;
+            float xz = q.x * z;
+            float yz = q.y * z;
+            float wx = q.w * x;
+            float wy = q.w * y;
+            float wz = q.w * z;
 
             // Calculate 3x3 matrix from orthonormal basis
             Matrix3x3 m = Matrix3x3.identity;
@@ -365,11 +358,11 @@ namespace PF
             {
                 // |w| > 1/2, mafy as well choose w > 1/2
                 fRoot = Mathf.Sqrt(fTrace + 1.0f);  // 2w
-                q.W = 0.5f * fRoot;
+                q.w = 0.5f * fRoot;
                 fRoot = 0.5f / fRoot;  // 1/(4w)
-                q.X = (kRot.Get(2, 1) - kRot.Get(1, 2)) * fRoot;
-                q.Y = (kRot.Get(0, 2) - kRot.Get(2, 0)) * fRoot;
-                q.Z = (kRot.Get(1, 0) - kRot.Get(0, 1)) * fRoot;
+                q.x = (kRot.Get(2, 1) - kRot.Get(1, 2)) * fRoot;
+                q.y = (kRot.Get(0, 2) - kRot.Get(2, 0)) * fRoot;
+                q.z = (kRot.Get(1, 0) - kRot.Get(0, 1)) * fRoot;
             }
             else
             {
@@ -384,17 +377,17 @@ namespace PF
                 int k = s_iNext[j];
 
                 fRoot = Mathf.Sqrt(kRot.Get(i, i) - kRot.Get(j, j) - kRot.Get(k, k) + 1.0f);
-                float[] apkQuat = new float[3] { q.X, q.Y, q.Z };
+                float[] apkQuat = new float[3] { q.x, q.y, q.z };
 
                 apkQuat[i] = 0.5f * fRoot;
                 fRoot = 0.5f / fRoot;
-                q.W = (kRot.Get(k, j) - kRot.Get(j, k)) * fRoot;
+                q.w = (kRot.Get(k, j) - kRot.Get(j, k)) * fRoot;
                 apkQuat[j] = (kRot.Get(j, i) + kRot.Get(i, j)) * fRoot;
                 apkQuat[k] = (kRot.Get(k, i) + kRot.Get(i, k)) * fRoot;
 
-                q.X = apkQuat[0];
-                q.Y = apkQuat[1];
-                q.Z = apkQuat[2];
+                q.x = apkQuat[0];
+                q.y = apkQuat[1];
+                q.z = apkQuat[2];
             }
             q = Quaternion.Normalize(q);
 
@@ -466,10 +459,10 @@ namespace PF
             float num7 = yaw * 0.5f;
             float num8 = (float) Math.Sin((double) num7);
             float num9 = (float) Math.Cos((double) num7);
-            result.X = (float) ((double) num9 * (double) num5 * (double) num3 + (double) num8 * (double) num6 * (double) num2);
-            result.Y = (float) ((double) num8 * (double) num6 * (double) num3 - (double) num9 * (double) num5 * (double) num2);
-            result.Z = (float) ((double) num9 * (double) num6 * (double) num2 - (double) num8 * (double) num5 * (double) num3);
-            result.W = (float) ((double) num9 * (double) num6 * (double) num3 + (double) num8 * (double) num5 * (double) num2);
+            result.x = (float) ((double) num9 * (double) num5 * (double) num3 + (double) num8 * (double) num6 * (double) num2);
+            result.y = (float) ((double) num8 * (double) num6 * (double) num3 - (double) num9 * (double) num5 * (double) num2);
+            result.z = (float) ((double) num9 * (double) num6 * (double) num2 - (double) num8 * (double) num5 * (double) num3);
+            result.w = (float) ((double) num9 * (double) num6 * (double) num3 + (double) num8 * (double) num5 * (double) num2);
         }
 
         public static Quaternion CreateFromRotationMatrix(Matrix4x4 matrix)
@@ -479,11 +472,11 @@ namespace PF
             if ((double) num1 > 0.0)
             {
                 float num2 = (float) Math.Sqrt((double) num1 + 1.0);
-                quaternion.W = num2 * 0.5f;
+                quaternion.w = num2 * 0.5f;
                 float num3 = 0.5f / num2;
-                quaternion.X = (matrix.m21 - matrix.m12) * num3;
-                quaternion.Y = (matrix.m02 - matrix.m20) * num3;
-                quaternion.Z = (matrix.m10 - matrix.m01) * num3;
+                quaternion.x = (matrix.m21 - matrix.m12) * num3;
+                quaternion.y = (matrix.m02 - matrix.m20) * num3;
+                quaternion.z = (matrix.m10 - matrix.m01) * num3;
                 return quaternion;
             }
 
@@ -491,10 +484,10 @@ namespace PF
             {
                 float num2 = (float) Math.Sqrt(1.0 + (double) matrix.m00 - (double) matrix.m11 - (double) matrix.m22);
                 float num3 = 0.5f / num2;
-                quaternion.X = 0.5f * num2;
-                quaternion.Y = (matrix.m10 + matrix.m01) * num3;
-                quaternion.Z = (matrix.m20 + matrix.m02) * num3;
-                quaternion.W = (matrix.m21 - matrix.m12) * num3;
+                quaternion.x = 0.5f * num2;
+                quaternion.y = (matrix.m10 + matrix.m01) * num3;
+                quaternion.z = (matrix.m20 + matrix.m02) * num3;
+                quaternion.w = (matrix.m21 - matrix.m12) * num3;
                 return quaternion;
             }
 
@@ -502,19 +495,19 @@ namespace PF
             {
                 float num2 = (float) Math.Sqrt(1.0 + (double) matrix.m11 - (double) matrix.m00 - (double) matrix.m22);
                 float num3 = 0.5f / num2;
-                quaternion.X = (matrix.m01 + matrix.m10) * num3;
-                quaternion.Y = 0.5f * num2;
-                quaternion.Z = (matrix.m12 + matrix.m21) * num3;
-                quaternion.W = (matrix.m02 - matrix.m20) * num3;
+                quaternion.x = (matrix.m01 + matrix.m10) * num3;
+                quaternion.y = 0.5f * num2;
+                quaternion.z = (matrix.m12 + matrix.m21) * num3;
+                quaternion.w = (matrix.m02 - matrix.m20) * num3;
                 return quaternion;
             }
 
             float num4 = (float) Math.Sqrt(1.0 + (double) matrix.m22 - (double) matrix.m00 - (double) matrix.m11);
             float num5 = 0.5f / num4;
-            quaternion.X = (matrix.m02 + matrix.m20) * num5;
-            quaternion.Y = (matrix.m12 + matrix.m21) * num5;
-            quaternion.Z = 0.5f * num4;
-            quaternion.W = (matrix.m10 - matrix.m01) * num5;
+            quaternion.x = (matrix.m02 + matrix.m20) * num5;
+            quaternion.y = (matrix.m12 + matrix.m21) * num5;
+            quaternion.z = 0.5f * num4;
+            quaternion.w = (matrix.m10 - matrix.m01) * num5;
             return quaternion;
         }
 
@@ -524,58 +517,58 @@ namespace PF
             if ((double) num1 > 0.0)
             {
                 float num2 = (float) Math.Sqrt((double) num1 + 1.0);
-                result.W = num2 * 0.5f;
+                result.w = num2 * 0.5f;
                 float num3 = 0.5f / num2;
-                result.X = (matrix.m21 - matrix.m12) * num3;
-                result.Y = (matrix.m02 - matrix.m20) * num3;
-                result.Z = (matrix.m10 - matrix.m01) * num3;
+                result.x = (matrix.m21 - matrix.m12) * num3;
+                result.y = (matrix.m02 - matrix.m20) * num3;
+                result.z = (matrix.m10 - matrix.m01) * num3;
             }
             else if ((double) matrix.m00 >= (double) matrix.m11 && (double) matrix.m00 >= (double) matrix.m22)
             {
                 float num2 = (float) Math.Sqrt(1.0 + (double) matrix.m00 - (double) matrix.m11 - (double) matrix.m22);
                 float num3 = 0.5f / num2;
-                result.X = 0.5f * num2;
-                result.Y = (matrix.m10 + matrix.m01) * num3;
-                result.Z = (matrix.m20 + matrix.m02) * num3;
-                result.W = (matrix.m21 - matrix.m12) * num3;
+                result.x = 0.5f * num2;
+                result.y = (matrix.m10 + matrix.m01) * num3;
+                result.z = (matrix.m20 + matrix.m02) * num3;
+                result.w = (matrix.m21 - matrix.m12) * num3;
             }
             else if ((double) matrix.m11 > (double) matrix.m22)
             {
                 float num2 = (float) Math.Sqrt(1.0 + (double) matrix.m11 - (double) matrix.m00 - (double) matrix.m22);
                 float num3 = 0.5f / num2;
-                result.X = (matrix.m01 + matrix.m10) * num3;
-                result.Y = 0.5f * num2;
-                result.Z = (matrix.m12 + matrix.m21) * num3;
-                result.W = (matrix.m02 - matrix.m20) * num3;
+                result.x = (matrix.m01 + matrix.m10) * num3;
+                result.y = 0.5f * num2;
+                result.z = (matrix.m12 + matrix.m21) * num3;
+                result.w = (matrix.m02 - matrix.m20) * num3;
             }
             else
             {
                 float num2 = (float) Math.Sqrt(1.0 + (double) matrix.m22 - (double) matrix.m00 - (double) matrix.m11);
                 float num3 = 0.5f / num2;
-                result.X = (matrix.m02 + matrix.m20) * num3;
-                result.Y = (matrix.m12 + matrix.m21) * num3;
-                result.Z = 0.5f * num2;
-                result.W = (matrix.m10 - matrix.m01) * num3;
+                result.x = (matrix.m02 + matrix.m20) * num3;
+                result.y = (matrix.m12 + matrix.m21) * num3;
+                result.z = 0.5f * num2;
+                result.w = (matrix.m10 - matrix.m01) * num3;
             }
         }
 
         public static float Dot(Quaternion quaternion1, Quaternion quaternion2)
         {
-            return (float) ((double) quaternion1.X * (double) quaternion2.X + (double) quaternion1.Y * (double) quaternion2.Y +
-                (double) quaternion1.Z * (double) quaternion2.Z + (double) quaternion1.W * (double) quaternion2.W);
+            return (float) ((double) quaternion1.x * (double) quaternion2.x + (double) quaternion1.y * (double) quaternion2.y +
+                (double) quaternion1.z * (double) quaternion2.z + (double) quaternion1.w * (double) quaternion2.w);
         }
 
         public static void Dot(ref Quaternion quaternion1, ref Quaternion quaternion2, out float result)
         {
-            result = (float) ((double) quaternion1.X * (double) quaternion2.X + (double) quaternion1.Y * (double) quaternion2.Y +
-                (double) quaternion1.Z * (double) quaternion2.Z + (double) quaternion1.W * (double) quaternion2.W);
+            result = (float) ((double) quaternion1.x * (double) quaternion2.x + (double) quaternion1.y * (double) quaternion2.y +
+                (double) quaternion1.z * (double) quaternion2.z + (double) quaternion1.w * (double) quaternion2.w);
         }
 
         public static Quaternion Slerp(Quaternion quaternion1, Quaternion quaternion2, float amount)
         {
             float num1 = amount;
-            float num2 = (float) ((double) quaternion1.X * (double) quaternion2.X + (double) quaternion1.Y * (double) quaternion2.Y +
-                (double) quaternion1.Z * (double) quaternion2.Z + (double) quaternion1.W * (double) quaternion2.W);
+            float num2 = (float) ((double) quaternion1.x * (double) quaternion2.x + (double) quaternion1.y * (double) quaternion2.y +
+                (double) quaternion1.z * (double) quaternion2.z + (double) quaternion1.w * (double) quaternion2.w);
             bool flag = false;
             if ((double) num2 < 0.0)
             {
@@ -599,18 +592,18 @@ namespace PF
             }
 
             Quaternion quaternion;
-            quaternion.X = (float) ((double) num3 * (double) quaternion1.X + (double) num4 * (double) quaternion2.X);
-            quaternion.Y = (float) ((double) num3 * (double) quaternion1.Y + (double) num4 * (double) quaternion2.Y);
-            quaternion.Z = (float) ((double) num3 * (double) quaternion1.Z + (double) num4 * (double) quaternion2.Z);
-            quaternion.W = (float) ((double) num3 * (double) quaternion1.W + (double) num4 * (double) quaternion2.W);
+            quaternion.x = (float) ((double) num3 * (double) quaternion1.x + (double) num4 * (double) quaternion2.x);
+            quaternion.y = (float) ((double) num3 * (double) quaternion1.y + (double) num4 * (double) quaternion2.y);
+            quaternion.z = (float) ((double) num3 * (double) quaternion1.z + (double) num4 * (double) quaternion2.z);
+            quaternion.w = (float) ((double) num3 * (double) quaternion1.w + (double) num4 * (double) quaternion2.w);
             return quaternion;
         }
 
         public static void Slerp(ref Quaternion quaternion1, ref Quaternion quaternion2, float amount, out Quaternion result)
         {
             float num1 = amount;
-            float num2 = (float) ((double) quaternion1.X * (double) quaternion2.X + (double) quaternion1.Y * (double) quaternion2.Y +
-                (double) quaternion1.Z * (double) quaternion2.Z + (double) quaternion1.W * (double) quaternion2.W);
+            float num2 = (float) ((double) quaternion1.x * (double) quaternion2.x + (double) quaternion1.y * (double) quaternion2.y +
+                (double) quaternion1.z * (double) quaternion2.z + (double) quaternion1.w * (double) quaternion2.w);
             bool flag = false;
             if ((double) num2 < 0.0)
             {
@@ -633,10 +626,10 @@ namespace PF
                 num4 = flag? (float) -Math.Sin((double) num1 * (double) num5) * num6 : (float) Math.Sin((double) num1 * (double) num5) * num6;
             }
 
-            result.X = (float) ((double) num3 * (double) quaternion1.X + (double) num4 * (double) quaternion2.X);
-            result.Y = (float) ((double) num3 * (double) quaternion1.Y + (double) num4 * (double) quaternion2.Y);
-            result.Z = (float) ((double) num3 * (double) quaternion1.Z + (double) num4 * (double) quaternion2.Z);
-            result.W = (float) ((double) num3 * (double) quaternion1.W + (double) num4 * (double) quaternion2.W);
+            result.x = (float) ((double) num3 * (double) quaternion1.x + (double) num4 * (double) quaternion2.x);
+            result.y = (float) ((double) num3 * (double) quaternion1.y + (double) num4 * (double) quaternion2.y);
+            result.z = (float) ((double) num3 * (double) quaternion1.z + (double) num4 * (double) quaternion2.z);
+            result.w = (float) ((double) num3 * (double) quaternion1.w + (double) num4 * (double) quaternion2.w);
         }
 
         public static Quaternion Lerp(Quaternion quaternion1, Quaternion quaternion2, float amount)
@@ -644,28 +637,28 @@ namespace PF
             float num1 = amount;
             float num2 = 1f - num1;
             Quaternion quaternion = new Quaternion();
-            if ((double) quaternion1.X * (double) quaternion2.X + (double) quaternion1.Y * (double) quaternion2.Y +
-                (double) quaternion1.Z * (double) quaternion2.Z + (double) quaternion1.W * (double) quaternion2.W >= 0.0)
+            if ((double) quaternion1.x * (double) quaternion2.x + (double) quaternion1.y * (double) quaternion2.y +
+                (double) quaternion1.z * (double) quaternion2.z + (double) quaternion1.w * (double) quaternion2.w >= 0.0)
             {
-                quaternion.X = (float) ((double) num2 * (double) quaternion1.X + (double) num1 * (double) quaternion2.X);
-                quaternion.Y = (float) ((double) num2 * (double) quaternion1.Y + (double) num1 * (double) quaternion2.Y);
-                quaternion.Z = (float) ((double) num2 * (double) quaternion1.Z + (double) num1 * (double) quaternion2.Z);
-                quaternion.W = (float) ((double) num2 * (double) quaternion1.W + (double) num1 * (double) quaternion2.W);
+                quaternion.x = (float) ((double) num2 * (double) quaternion1.x + (double) num1 * (double) quaternion2.x);
+                quaternion.y = (float) ((double) num2 * (double) quaternion1.y + (double) num1 * (double) quaternion2.y);
+                quaternion.z = (float) ((double) num2 * (double) quaternion1.z + (double) num1 * (double) quaternion2.z);
+                quaternion.w = (float) ((double) num2 * (double) quaternion1.w + (double) num1 * (double) quaternion2.w);
             }
             else
             {
-                quaternion.X = (float) ((double) num2 * (double) quaternion1.X - (double) num1 * (double) quaternion2.X);
-                quaternion.Y = (float) ((double) num2 * (double) quaternion1.Y - (double) num1 * (double) quaternion2.Y);
-                quaternion.Z = (float) ((double) num2 * (double) quaternion1.Z - (double) num1 * (double) quaternion2.Z);
-                quaternion.W = (float) ((double) num2 * (double) quaternion1.W - (double) num1 * (double) quaternion2.W);
+                quaternion.x = (float) ((double) num2 * (double) quaternion1.x - (double) num1 * (double) quaternion2.x);
+                quaternion.y = (float) ((double) num2 * (double) quaternion1.y - (double) num1 * (double) quaternion2.y);
+                quaternion.z = (float) ((double) num2 * (double) quaternion1.z - (double) num1 * (double) quaternion2.z);
+                quaternion.w = (float) ((double) num2 * (double) quaternion1.w - (double) num1 * (double) quaternion2.w);
             }
 
-            float num3 = 1f / (float) Math.Sqrt((double) quaternion.X * (double) quaternion.X + (double) quaternion.Y * (double) quaternion.Y +
-                                                (double) quaternion.Z * (double) quaternion.Z + (double) quaternion.W * (double) quaternion.W);
-            quaternion.X *= num3;
-            quaternion.Y *= num3;
-            quaternion.Z *= num3;
-            quaternion.W *= num3;
+            float num3 = 1f / (float) Math.Sqrt((double) quaternion.x * (double) quaternion.x + (double) quaternion.y * (double) quaternion.y +
+                                                (double) quaternion.z * (double) quaternion.z + (double) quaternion.w * (double) quaternion.w);
+            quaternion.x *= num3;
+            quaternion.y *= num3;
+            quaternion.z *= num3;
+            quaternion.w *= num3;
             return quaternion;
         }
 
@@ -673,53 +666,53 @@ namespace PF
         {
             float num1 = amount;
             float num2 = 1f - num1;
-            if ((double) quaternion1.X * (double) quaternion2.X + (double) quaternion1.Y * (double) quaternion2.Y +
-                (double) quaternion1.Z * (double) quaternion2.Z + (double) quaternion1.W * (double) quaternion2.W >= 0.0)
+            if ((double) quaternion1.x * (double) quaternion2.x + (double) quaternion1.y * (double) quaternion2.y +
+                (double) quaternion1.z * (double) quaternion2.z + (double) quaternion1.w * (double) quaternion2.w >= 0.0)
             {
-                result.X = (float) ((double) num2 * (double) quaternion1.X + (double) num1 * (double) quaternion2.X);
-                result.Y = (float) ((double) num2 * (double) quaternion1.Y + (double) num1 * (double) quaternion2.Y);
-                result.Z = (float) ((double) num2 * (double) quaternion1.Z + (double) num1 * (double) quaternion2.Z);
-                result.W = (float) ((double) num2 * (double) quaternion1.W + (double) num1 * (double) quaternion2.W);
+                result.x = (float) ((double) num2 * (double) quaternion1.x + (double) num1 * (double) quaternion2.x);
+                result.y = (float) ((double) num2 * (double) quaternion1.y + (double) num1 * (double) quaternion2.y);
+                result.z = (float) ((double) num2 * (double) quaternion1.z + (double) num1 * (double) quaternion2.z);
+                result.w = (float) ((double) num2 * (double) quaternion1.w + (double) num1 * (double) quaternion2.w);
             }
             else
             {
-                result.X = (float) ((double) num2 * (double) quaternion1.X - (double) num1 * (double) quaternion2.X);
-                result.Y = (float) ((double) num2 * (double) quaternion1.Y - (double) num1 * (double) quaternion2.Y);
-                result.Z = (float) ((double) num2 * (double) quaternion1.Z - (double) num1 * (double) quaternion2.Z);
-                result.W = (float) ((double) num2 * (double) quaternion1.W - (double) num1 * (double) quaternion2.W);
+                result.x = (float) ((double) num2 * (double) quaternion1.x - (double) num1 * (double) quaternion2.x);
+                result.y = (float) ((double) num2 * (double) quaternion1.y - (double) num1 * (double) quaternion2.y);
+                result.z = (float) ((double) num2 * (double) quaternion1.z - (double) num1 * (double) quaternion2.z);
+                result.w = (float) ((double) num2 * (double) quaternion1.w - (double) num1 * (double) quaternion2.w);
             }
 
-            float num3 = 1f / (float) Math.Sqrt((double) result.X * (double) result.X + (double) result.Y * (double) result.Y +
-                                                (double) result.Z * (double) result.Z + (double) result.W * (double) result.W);
-            result.X *= num3;
-            result.Y *= num3;
-            result.Z *= num3;
-            result.W *= num3;
+            float num3 = 1f / (float) Math.Sqrt((double) result.x * (double) result.x + (double) result.y * (double) result.y +
+                                                (double) result.z * (double) result.z + (double) result.w * (double) result.w);
+            result.x *= num3;
+            result.y *= num3;
+            result.z *= num3;
+            result.w *= num3;
         }
 
         public void Conjugate()
         {
-            this.X = -this.X;
-            this.Y = -this.Y;
-            this.Z = -this.Z;
+            this.x = -this.x;
+            this.y = -this.y;
+            this.z = -this.z;
         }
 
         public static Quaternion Conjugate(Quaternion value)
         {
             Quaternion quaternion;
-            quaternion.X = -value.X;
-            quaternion.Y = -value.Y;
-            quaternion.Z = -value.Z;
-            quaternion.W = value.W;
+            quaternion.x = -value.x;
+            quaternion.y = -value.y;
+            quaternion.z = -value.z;
+            quaternion.w = value.w;
             return quaternion;
         }
 
         public static void Conjugate(ref Quaternion value, out Quaternion result)
         {
-            result.X = -value.X;
-            result.Y = -value.Y;
-            result.Z = -value.Z;
-            result.W = value.W;
+            result.x = -value.x;
+            result.y = -value.y;
+            result.z = -value.z;
+            result.w = value.w;
         }
 
         private static float Angle(Quaternion a, Quaternion b)
@@ -735,53 +728,53 @@ namespace PF
         public static Quaternion Negate(Quaternion quaternion)
         {
             Quaternion quaternion1;
-            quaternion1.X = -quaternion.X;
-            quaternion1.Y = -quaternion.Y;
-            quaternion1.Z = -quaternion.Z;
-            quaternion1.W = -quaternion.W;
+            quaternion1.x = -quaternion.x;
+            quaternion1.y = -quaternion.y;
+            quaternion1.z = -quaternion.z;
+            quaternion1.w = -quaternion.w;
             return quaternion1;
         }
 
         public static void Negate(ref Quaternion quaternion, out Quaternion result)
         {
-            result.X = -quaternion.X;
-            result.Y = -quaternion.Y;
-            result.Z = -quaternion.Z;
-            result.W = -quaternion.W;
+            result.x = -quaternion.x;
+            result.y = -quaternion.y;
+            result.z = -quaternion.z;
+            result.w = -quaternion.w;
         }
 
         public static Quaternion Sub(Quaternion quaternion1, Quaternion quaternion2)
         {
             Quaternion quaternion;
-            quaternion.X = quaternion1.X - quaternion2.X;
-            quaternion.Y = quaternion1.Y - quaternion2.Y;
-            quaternion.Z = quaternion1.Z - quaternion2.Z;
-            quaternion.W = quaternion1.W - quaternion2.W;
+            quaternion.x = quaternion1.x - quaternion2.x;
+            quaternion.y = quaternion1.y - quaternion2.y;
+            quaternion.z = quaternion1.z - quaternion2.z;
+            quaternion.w = quaternion1.w - quaternion2.w;
             return quaternion;
         }
 
         public static void Sub(ref Quaternion quaternion1, ref Quaternion quaternion2, out Quaternion result)
         {
-            result.X = quaternion1.X - quaternion2.X;
-            result.Y = quaternion1.Y - quaternion2.Y;
-            result.Z = quaternion1.Z - quaternion2.Z;
-            result.W = quaternion1.W - quaternion2.W;
+            result.x = quaternion1.x - quaternion2.x;
+            result.y = quaternion1.y - quaternion2.y;
+            result.z = quaternion1.z - quaternion2.z;
+            result.w = quaternion1.w - quaternion2.w;
         }
 
         public static Vector3 Rotate(Quaternion rotation, Vector3 vector3)
         {
-            float num1 = rotation.X * 2f;
-            float num2 = rotation.Y * 2f;
-            float num3 = rotation.Z * 2f;
-            float num4 = rotation.X * num1;
-            float num5 = rotation.Y * num2;
-            float num6 = rotation.Z * num3;
-            float num7 = rotation.X * num2;
-            float num8 = rotation.X * num3;
-            float num9 = rotation.Y * num3;
-            float num10 = rotation.W * num1;
-            float num11 = rotation.W * num2;
-            float num12 = rotation.W * num3;
+            float num1 = rotation.x * 2f;
+            float num2 = rotation.y * 2f;
+            float num3 = rotation.z * 2f;
+            float num4 = rotation.x * num1;
+            float num5 = rotation.y * num2;
+            float num6 = rotation.z * num3;
+            float num7 = rotation.x * num2;
+            float num8 = rotation.x * num3;
+            float num9 = rotation.y * num3;
+            float num10 = rotation.w * num1;
+            float num11 = rotation.w * num2;
+            float num12 = rotation.w * num3;
             Vector3 vector3_1;
             vector3_1.x = (float) ((1.0 - ((double) num5 + (double) num6)) * (double) vector3.x +
                 ((double) num7 - (double) num12) * (double) vector3.y + ((double) num8 + (double) num11) * (double) vector3.z);
@@ -794,18 +787,18 @@ namespace PF
 
         public static void Rotate(ref Quaternion rotation, ref Vector3 vector3, out Vector3 result)
         {
-            float num1 = rotation.X * 2f;
-            float num2 = rotation.Y * 2f;
-            float num3 = rotation.Z * 2f;
-            float num4 = rotation.X * num1;
-            float num5 = rotation.Y * num2;
-            float num6 = rotation.Z * num3;
-            float num7 = rotation.X * num2;
-            float num8 = rotation.X * num3;
-            float num9 = rotation.Y * num3;
-            float num10 = rotation.W * num1;
-            float num11 = rotation.W * num2;
-            float num12 = rotation.W * num3;
+            float num1 = rotation.x * 2f;
+            float num2 = rotation.y * 2f;
+            float num3 = rotation.z * 2f;
+            float num4 = rotation.x * num1;
+            float num5 = rotation.y * num2;
+            float num6 = rotation.z * num3;
+            float num7 = rotation.x * num2;
+            float num8 = rotation.x * num3;
+            float num9 = rotation.y * num3;
+            float num10 = rotation.w * num1;
+            float num11 = rotation.w * num2;
+            float num12 = rotation.w * num3;
             result.x = (float) ((1.0 - ((double) num5 + (double) num6)) * (double) vector3.x + ((double) num7 - (double) num12) * (double) vector3.y +
                 ((double) num8 + (double) num11) * (double) vector3.z);
             result.y = (float) (((double) num7 + (double) num12) * (double) vector3.x + (1.0 - ((double) num4 + (double) num6)) * (double) vector3.y +
@@ -816,118 +809,118 @@ namespace PF
 
         public static Quaternion Multiply(Quaternion quaternion1, Quaternion quaternion2)
         {
-            float x1 = quaternion1.X;
-            float y1 = quaternion1.Y;
-            float z1 = quaternion1.Z;
-            float w1 = quaternion1.W;
-            float x2 = quaternion2.X;
-            float y2 = quaternion2.Y;
-            float z2 = quaternion2.Z;
-            float w2 = quaternion2.W;
+            float x1 = quaternion1.x;
+            float y1 = quaternion1.y;
+            float z1 = quaternion1.z;
+            float w1 = quaternion1.w;
+            float x2 = quaternion2.x;
+            float y2 = quaternion2.y;
+            float z2 = quaternion2.z;
+            float w2 = quaternion2.w;
             float num1 = (float) ((double) y1 * (double) z2 - (double) z1 * (double) y2);
             float num2 = (float) ((double) z1 * (double) x2 - (double) x1 * (double) z2);
             float num3 = (float) ((double) x1 * (double) y2 - (double) y1 * (double) x2);
             float num4 = (float) ((double) x1 * (double) x2 + (double) y1 * (double) y2 + (double) z1 * (double) z2);
             Quaternion quaternion;
-            quaternion.X = (float) ((double) x1 * (double) w2 + (double) x2 * (double) w1) + num1;
-            quaternion.Y = (float) ((double) y1 * (double) w2 + (double) y2 * (double) w1) + num2;
-            quaternion.Z = (float) ((double) z1 * (double) w2 + (double) z2 * (double) w1) + num3;
-            quaternion.W = w1 * w2 - num4;
+            quaternion.x = (float) ((double) x1 * (double) w2 + (double) x2 * (double) w1) + num1;
+            quaternion.y = (float) ((double) y1 * (double) w2 + (double) y2 * (double) w1) + num2;
+            quaternion.z = (float) ((double) z1 * (double) w2 + (double) z2 * (double) w1) + num3;
+            quaternion.w = w1 * w2 - num4;
             return quaternion;
         }
 
         public static void Multiply(ref Quaternion quaternion1, ref Quaternion quaternion2, out Quaternion result)
         {
-            float x1 = quaternion1.X;
-            float y1 = quaternion1.Y;
-            float z1 = quaternion1.Z;
-            float w1 = quaternion1.W;
-            float x2 = quaternion2.X;
-            float y2 = quaternion2.Y;
-            float z2 = quaternion2.Z;
-            float w2 = quaternion2.W;
+            float x1 = quaternion1.x;
+            float y1 = quaternion1.y;
+            float z1 = quaternion1.z;
+            float w1 = quaternion1.w;
+            float x2 = quaternion2.x;
+            float y2 = quaternion2.y;
+            float z2 = quaternion2.z;
+            float w2 = quaternion2.w;
             float num1 = (float) ((double) y1 * (double) z2 - (double) z1 * (double) y2);
             float num2 = (float) ((double) z1 * (double) x2 - (double) x1 * (double) z2);
             float num3 = (float) ((double) x1 * (double) y2 - (double) y1 * (double) x2);
             float num4 = (float) ((double) x1 * (double) x2 + (double) y1 * (double) y2 + (double) z1 * (double) z2);
-            result.X = (float) ((double) x1 * (double) w2 + (double) x2 * (double) w1) + num1;
-            result.Y = (float) ((double) y1 * (double) w2 + (double) y2 * (double) w1) + num2;
-            result.Z = (float) ((double) z1 * (double) w2 + (double) z2 * (double) w1) + num3;
-            result.W = w1 * w2 - num4;
+            result.x = (float) ((double) x1 * (double) w2 + (double) x2 * (double) w1) + num1;
+            result.y = (float) ((double) y1 * (double) w2 + (double) y2 * (double) w1) + num2;
+            result.z = (float) ((double) z1 * (double) w2 + (double) z2 * (double) w1) + num3;
+            result.w = w1 * w2 - num4;
         }
 
         public static Quaternion operator -(Quaternion quaternion)
         {
             Quaternion quaternion1;
-            quaternion1.X = -quaternion.X;
-            quaternion1.Y = -quaternion.Y;
-            quaternion1.Z = -quaternion.Z;
-            quaternion1.W = -quaternion.W;
+            quaternion1.x = -quaternion.x;
+            quaternion1.y = -quaternion.y;
+            quaternion1.z = -quaternion.z;
+            quaternion1.w = -quaternion.w;
             return quaternion1;
         }
 
         public static bool operator ==(Quaternion quaternion1, Quaternion quaternion2)
         {
-            if ((double) quaternion1.X == (double) quaternion2.X && (double) quaternion1.Y == (double) quaternion2.Y &&
-                (double) quaternion1.Z == (double) quaternion2.Z)
-                return (double) quaternion1.W == (double) quaternion2.W;
+            if ((double) quaternion1.x == (double) quaternion2.x && (double) quaternion1.y == (double) quaternion2.y &&
+                (double) quaternion1.z == (double) quaternion2.z)
+                return (double) quaternion1.w == (double) quaternion2.w;
             return false;
         }
 
         public static bool operator !=(Quaternion quaternion1, Quaternion quaternion2)
         {
-            if ((double) quaternion1.X == (double) quaternion2.X && (double) quaternion1.Y == (double) quaternion2.Y &&
-                (double) quaternion1.Z == (double) quaternion2.Z)
-                return (double) quaternion1.W != (double) quaternion2.W;
+            if ((double) quaternion1.x == (double) quaternion2.x && (double) quaternion1.y == (double) quaternion2.y &&
+                (double) quaternion1.z == (double) quaternion2.z)
+                return (double) quaternion1.w != (double) quaternion2.w;
             return true;
         }
 
         public static Quaternion operator -(Quaternion quaternion1, Quaternion quaternion2)
         {
             Quaternion quaternion;
-            quaternion.X = quaternion1.X - quaternion2.X;
-            quaternion.Y = quaternion1.Y - quaternion2.Y;
-            quaternion.Z = quaternion1.Z - quaternion2.Z;
-            quaternion.W = quaternion1.W - quaternion2.W;
+            quaternion.x = quaternion1.x - quaternion2.x;
+            quaternion.y = quaternion1.y - quaternion2.y;
+            quaternion.z = quaternion1.z - quaternion2.z;
+            quaternion.w = quaternion1.w - quaternion2.w;
             return quaternion;
         }
 
         public static Quaternion operator *(Quaternion quaternion1, Quaternion quaternion2)
         {
-            float x1 = quaternion1.X;
-            float y1 = quaternion1.Y;
-            float z1 = quaternion1.Z;
-            float w1 = quaternion1.W;
-            float x2 = quaternion2.X;
-            float y2 = quaternion2.Y;
-            float z2 = quaternion2.Z;
-            float w2 = quaternion2.W;
+            float x1 = quaternion1.x;
+            float y1 = quaternion1.y;
+            float z1 = quaternion1.z;
+            float w1 = quaternion1.w;
+            float x2 = quaternion2.x;
+            float y2 = quaternion2.y;
+            float z2 = quaternion2.z;
+            float w2 = quaternion2.w;
             float num1 = (float) ((double) y1 * (double) z2 - (double) z1 * (double) y2);
             float num2 = (float) ((double) z1 * (double) x2 - (double) x1 * (double) z2);
             float num3 = (float) ((double) x1 * (double) y2 - (double) y1 * (double) x2);
             float num4 = (float) ((double) x1 * (double) x2 + (double) y1 * (double) y2 + (double) z1 * (double) z2);
             Quaternion quaternion;
-            quaternion.X = (float) ((double) x1 * (double) w2 + (double) x2 * (double) w1) + num1;
-            quaternion.Y = (float) ((double) y1 * (double) w2 + (double) y2 * (double) w1) + num2;
-            quaternion.Z = (float) ((double) z1 * (double) w2 + (double) z2 * (double) w1) + num3;
-            quaternion.W = w1 * w2 - num4;
+            quaternion.x = (float) ((double) x1 * (double) w2 + (double) x2 * (double) w1) + num1;
+            quaternion.y = (float) ((double) y1 * (double) w2 + (double) y2 * (double) w1) + num2;
+            quaternion.z = (float) ((double) z1 * (double) w2 + (double) z2 * (double) w1) + num3;
+            quaternion.w = w1 * w2 - num4;
             return quaternion;
         }
         
         public static Vector3 operator *(Quaternion rotation, Vector3 point)
         {
-            float num1 = rotation.X * 2f;
-            float num2 = rotation.Y * 2f;
-            float num3 = rotation.Z * 2f;
-            float num4 = rotation.X * num1;
-            float num5 = rotation.Y * num2;
-            float num6 = rotation.Z * num3;
-            float num7 = rotation.X * num2;
-            float num8 = rotation.X * num3;
-            float num9 = rotation.Y * num3;
-            float num10 = rotation.W * num1;
-            float num11 = rotation.W * num2;
-            float num12 = rotation.W * num3;
+            float num1 = rotation.x * 2f;
+            float num2 = rotation.y * 2f;
+            float num3 = rotation.z * 2f;
+            float num4 = rotation.x * num1;
+            float num5 = rotation.y * num2;
+            float num6 = rotation.z * num3;
+            float num7 = rotation.x * num2;
+            float num8 = rotation.x * num3;
+            float num9 = rotation.y * num3;
+            float num10 = rotation.w * num1;
+            float num11 = rotation.w * num2;
+            float num12 = rotation.w * num3;
             Vector3 vector3;
             vector3.x = (float) ((1.0 - ((double) num5 + (double) num6)) * (double) point.x + ((double) num7 - (double) num12) * (double) point.y + ((double) num8 + (double) num11) * (double) point.z);
             vector3.y = (float) (((double) num7 + (double) num12) * (double) point.x + (1.0 - ((double) num4 + (double) num6)) * (double) point.y + ((double) num9 - (double) num10) * (double) point.z);

+ 5 - 21
Unity/Assets/Model/Base/UnityMath/Vector2.cs

@@ -6,9 +6,9 @@ namespace PF
     [Serializable]
     public struct Vector2: IEquatable<Vector2>
     {
-        private static readonly Vector2 _zero = new Vector2();
-        private static readonly Vector2 _one = new Vector2(1f, 1f);
-        private const float epsilon = 1E-05f;
+        public static readonly Vector2 zero = new Vector2();
+        public static readonly Vector2 one = new Vector2(1f, 1f);
+        
         public float x;
         public float y;
 #if !SERVER
@@ -33,22 +33,6 @@ namespace PF
             return new Vector3(v.x, v.y, 0.0f);
         }
 
-        public static Vector2 zero
-        {
-            get
-            {
-                return Vector2._zero;
-            }
-        }
-
-        public static Vector2 one
-        {
-            get
-            {
-                return Vector2._one;
-            }
-        }
-
         public Vector2(float x, float y)
         {
             this.x = x;
@@ -344,7 +328,7 @@ namespace PF
             to.Normalize();
             float result;
             Vector2.Dot(ref from, ref to, out result);
-            return MathHelper.ACos(MathHelper.Clamp(result, -1f, 1f)) * 57.29578f;
+            return Mathf.Cos(Mathf.Clamp(result, -1f, 1f)) * 57.29578f;
         }
 
         public static void Angle(ref Vector2 from, ref Vector2 to, out float result)
@@ -353,7 +337,7 @@ namespace PF
             to.Normalize();
             float result1;
             Vector2.Dot(ref from, ref to, out result1);
-            result = MathHelper.ACos(MathHelper.Clamp(result1, -1f, 1f)) * 57.29578f;
+            result = Mathf.Cos(Mathf.Clamp(result1, -1f, 1f)) * 57.29578f;
         }
 
         public static Vector2 Add(Vector2 value1, Vector2 value2)

+ 18 - 82
Unity/Assets/Model/Base/UnityMath/Vector3.cs

@@ -8,14 +8,14 @@ namespace PF
     {
         private const float k1OverSqrt2 = 0.7071068f;
         private const float epsilon = 1E-05f;
-        private static readonly Vector3 _zero = new Vector3();
-        private static readonly Vector3 _one = new Vector3(1f, 1f, 1f);
-        private static readonly Vector3 _up = new Vector3(0.0f, 1f, 0.0f);
-        private static readonly Vector3 _down = new Vector3(0.0f, -1f, 0.0f);
-        private static readonly Vector3 _right = new Vector3(1f, 0.0f, 0.0f);
-        private static readonly Vector3 _left = new Vector3(-1f, 0.0f, 0.0f);
-        private static readonly Vector3 _forward = new Vector3(0.0f, 0.0f, 1f);
-        private static readonly Vector3 _backward = new Vector3(0.0f, 0.0f, -1f);
+        public static readonly Vector3 zero = new Vector3();
+        public static readonly Vector3 one = new Vector3(1f, 1f, 1f);
+        public static readonly Vector3 up = new Vector3(0.0f, 1f, 0.0f);
+        public static readonly Vector3 down = new Vector3(0.0f, -1f, 0.0f);
+        public static readonly Vector3 right = new Vector3(1f, 0.0f, 0.0f);
+        public static readonly Vector3 left = new Vector3(-1f, 0.0f, 0.0f);
+        public static readonly Vector3 forward = new Vector3(0.0f, 0.0f, 1f);
+        public static readonly Vector3 back = new Vector3(0.0f, 0.0f, -1f);
         public float x;
         public float y;
         public float z;
@@ -31,70 +31,6 @@ namespace PF
         }
 #endif
 
-        public static Vector3 zero
-        {
-            get
-            {
-                return Vector3._zero;
-            }
-        }
-
-        public static Vector3 one
-        {
-            get
-            {
-                return Vector3._one;
-            }
-        }
-
-        public static Vector3 up
-        {
-            get
-            {
-                return Vector3._up;
-            }
-        }
-
-        public static Vector3 down
-        {
-            get
-            {
-                return Vector3._down;
-            }
-        }
-
-        public static Vector3 right
-        {
-            get
-            {
-                return Vector3._right;
-            }
-        }
-
-        public static Vector3 left
-        {
-            get
-            {
-                return Vector3._left;
-            }
-        }
-
-        public static Vector3 forward
-        {
-            get
-            {
-                return Vector3._forward;
-            }
-        }
-
-        public static Vector3 back
-        {
-            get
-            {
-                return Vector3._backward;
-            }
-        }
-
         public Vector3(float x, float y, float z)
         {
             this.x = x;
@@ -216,7 +152,7 @@ namespace PF
         public void Normalize()
         {
             float num1 = (float) ((double) this.x * (double) this.x + (double) this.y * (double) this.y + (double) this.z * (double) this.z);
-            if ((double) num1 < (double) Vector3.epsilon)
+            if ((double) num1 < (double) Mathf.Epsilon)
                 return;
             float num2 = 1f / (float) Math.Sqrt((double) num1);
             this.x *= num2;
@@ -235,7 +171,7 @@ namespace PF
         public static Vector3 Normalize(Vector3 value)
         {
             float num1 = (float) ((double) value.x * (double) value.x + (double) value.y * (double) value.y + (double) value.z * (double) value.z);
-            if ((double) num1 < (double) Vector3.epsilon)
+            if ((double) num1 < (double) Mathf.Epsilon)
                 return value;
             float num2 = 1f / (float) Math.Sqrt((double) num1);
             Vector3 vector3;
@@ -248,7 +184,7 @@ namespace PF
         public static void Normalize(ref Vector3 value, out Vector3 result)
         {
             float num1 = (float) ((double) value.x * (double) value.x + (double) value.y * (double) value.y + (double) value.z * (double) value.z);
-            if ((double) num1 < (double) Vector3.epsilon)
+            if ((double) num1 < (double) Mathf.Epsilon)
             {
                 result = value;
             }
@@ -580,14 +516,14 @@ namespace PF
         public static void OrthoNormalize(ref Vector3 normal, ref Vector3 tangent)
         {
             float num1 = Vector3.magnitudeStatic(ref normal);
-            if ((double) num1 > (double) Vector3.epsilon)
+            if ((double) num1 > (double) Mathf.Epsilon)
                 normal /= num1;
             else
                 normal = new Vector3(1f, 0.0f, 0.0f);
             float num2 = Vector3.Dot(normal, tangent);
             tangent -= num2 * normal;
             float num3 = Vector3.magnitudeStatic(ref tangent);
-            if ((double) num3 < (double) Vector3.epsilon)
+            if ((double) num3 < (double) Mathf.Epsilon)
                 tangent = Vector3.orthoNormalVectorFast(ref normal);
             else
                 tangent /= num3;
@@ -596,14 +532,14 @@ namespace PF
         public static void OrthoNormalize(ref Vector3 normal, ref Vector3 tangent, ref Vector3 binormal)
         {
             float num1 = Vector3.magnitudeStatic(ref normal);
-            if ((double) num1 > (double) Vector3.epsilon)
+            if ((double) num1 > (double) Mathf.Epsilon)
                 normal /= num1;
             else
                 normal = new Vector3(1f, 0.0f, 0.0f);
             float num2 = Vector3.Dot(normal, tangent);
             tangent -= num2 * normal;
             float num3 = Vector3.magnitudeStatic(ref tangent);
-            if ((double) num3 > (double) Vector3.epsilon)
+            if ((double) num3 > (double) Mathf.Epsilon)
                 tangent /= num3;
             else
                 tangent = Vector3.orthoNormalVectorFast(ref normal);
@@ -611,7 +547,7 @@ namespace PF
             float num5 = Vector3.Dot(normal, binormal);
             binormal -= num5 * normal + num4 * tangent;
             float num6 = Vector3.magnitudeStatic(ref binormal);
-            if ((double) num6 > (double) Vector3.epsilon)
+            if ((double) num6 > (double) Mathf.Epsilon)
                 binormal /= num6;
             else
                 binormal = Vector3.Cross(normal, tangent);
@@ -633,7 +569,7 @@ namespace PF
             to.Normalize();
             float result;
             Vector3.Dot(ref from, ref to, out result);
-            return MathHelper.ACos(MathHelper.Clamp(result, -1f, 1f)) * 57.29578f;
+            return Mathf.Cos(Mathf.Clamp(result, -1f, 1f)) * 57.29578f;
         }
 
         public static void Angle(ref Vector3 from, ref Vector3 to, out float result)
@@ -642,7 +578,7 @@ namespace PF
             to.Normalize();
             float result1;
             Vector3.Dot(ref from, ref to, out result1);
-            result = MathHelper.ACos(MathHelper.Clamp(result1, -1f, 1f)) * 57.29578f;
+            result = Mathf.Cos(Mathf.Clamp(result1, -1f, 1f)) * 57.29578f;
         }
 
         public static Vector3 operator -(Vector3 value)

+ 6 - 23
Unity/Assets/Model/Base/UnityMath/Vector4.cs

@@ -6,30 +6,13 @@ namespace PF
     [Serializable]
     public struct Vector4: IEquatable<Vector4>
     {
-        private static readonly float epsilon = 1E-05f;
-        private static Vector4 _zero = new Vector4();
-        private static Vector4 _one = new Vector4(1f, 1f, 1f, 1f);
+        public static readonly Vector4 zero = new Vector4();
+        public static readonly Vector4 one = new Vector4(1f, 1f, 1f, 1f);
         public float x;
         public float y;
         public float z;
         public float w;
-
-        public static Vector4 zero
-        {
-            get
-            {
-                return Vector4._zero;
-            }
-        }
-
-        public static Vector4 one
-        {
-            get
-            {
-                return Vector4._one;
-            }
-        }
-
+        
         public Vector4(float x, float y, float z, float w)
         {
             this.x = x;
@@ -168,7 +151,7 @@ namespace PF
         {
             float num1 = (float) ((double) this.x * (double) this.x + (double) this.y * (double) this.y + (double) this.z * (double) this.z +
                 (double) this.w * (double) this.w);
-            if ((double) num1 < (double) Vector4.epsilon)
+            if ((double) num1 < (double) Mathf.Epsilon)
                 return;
             float num2 = 1f / (float) Math.Sqrt((double) num1);
             this.x *= num2;
@@ -181,7 +164,7 @@ namespace PF
         {
             float num1 = (float) ((double) vector.x * (double) vector.x + (double) vector.y * (double) vector.y +
                 (double) vector.z * (double) vector.z + (double) vector.w * (double) vector.w);
-            if ((double) num1 < (double) Vector4.epsilon)
+            if ((double) num1 < (double) Mathf.Epsilon)
                 return vector;
             float num2 = 1f / (float) Math.Sqrt((double) num1);
             Vector4 vector4;
@@ -196,7 +179,7 @@ namespace PF
         {
             float num1 = (float) ((double) vector.x * (double) vector.x + (double) vector.y * (double) vector.y +
                 (double) vector.z * (double) vector.z + (double) vector.w * (double) vector.w);
-            if ((double) num1 < (double) Vector4.epsilon)
+            if ((double) num1 < (double) Mathf.Epsilon)
             {
                 result = vector;
             }

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
Unity/Unity.Editor.csproj


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
Unity/Unity.Hotfix.csproj


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
Unity/Unity.Model.csproj


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
Unity/Unity.ThirdParty.csproj


+ 6 - 6
Unity/Unity.sln

@@ -4,10 +4,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Model", "Unity.Model.
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.ThirdParty", "Unity.ThirdParty.csproj", "{E15BADD2-3A26-309A-AB0F-DC5B08044350}"
 EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Hotfix", "Unity.Hotfix.csproj", "{1066F652-6A89-D1C4-9881-1A19DF7AB80E}"
-EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Editor", "Unity.Editor.csproj", "{CD311104-1830-B119-81B6-5DBEE2467FFB}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Hotfix", "Unity.Hotfix.csproj", "{1066F652-6A89-D1C4-9881-1A19DF7AB80E}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
@@ -22,14 +22,14 @@ Global
 		{E15BADD2-3A26-309A-AB0F-DC5B08044350}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{E15BADD2-3A26-309A-AB0F-DC5B08044350}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{E15BADD2-3A26-309A-AB0F-DC5B08044350}.Release|Any CPU.Build.0 = Release|Any CPU
-		{1066F652-6A89-D1C4-9881-1A19DF7AB80E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{1066F652-6A89-D1C4-9881-1A19DF7AB80E}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{1066F652-6A89-D1C4-9881-1A19DF7AB80E}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{1066F652-6A89-D1C4-9881-1A19DF7AB80E}.Release|Any CPU.Build.0 = Release|Any CPU
 		{CD311104-1830-B119-81B6-5DBEE2467FFB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{CD311104-1830-B119-81B6-5DBEE2467FFB}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{CD311104-1830-B119-81B6-5DBEE2467FFB}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{CD311104-1830-B119-81B6-5DBEE2467FFB}.Release|Any CPU.Build.0 = Release|Any CPU
+		{1066F652-6A89-D1C4-9881-1A19DF7AB80E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{1066F652-6A89-D1C4-9881-1A19DF7AB80E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{1066F652-6A89-D1C4-9881-1A19DF7AB80E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{1066F652-6A89-D1C4-9881-1A19DF7AB80E}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است