コード例 #1
0
        static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            ILRuntime.Runtime.Intepreter.ILTypeInstance @item2 = (ILRuntime.Runtime.Intepreter.ILTypeInstance) typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.String @item1 = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = new System.ValueTuple <System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>(@item1, @item2);

            if (!isNewObj)
            {
                __ret--;
                WriteBackInstance(__domain, __ret, __mStack, ref result_of_this_method);
                return(__ret);
            }

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
        static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @item3 = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.String @item2 = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            System.Int32 @item1 = ptr_of_this_method->Value;


            var result_of_this_method = new System.ValueTuple <System.Int32, System.String, System.Boolean>(@item1, @item2, @item3);

            if (!isNewObj)
            {
                __ret--;
                WriteBackInstance(__domain, __ret, __mStack, ref result_of_this_method);
                return(__ret);
            }

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
コード例 #3
0
        static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @item3 = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Int64 @item2 = *(long *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            System.Int32 @item1 = ptr_of_this_method->Value;


            var result_of_this_method = new System.ValueTuple <System.Int32, System.Int64, System.Int32>(@item1, @item2, @item3);

            if (!isNewObj)
            {
                __ret--;
                WriteBackInstance(__domain, __ret, __mStack, ref result_of_this_method);
                return(__ret);
            }

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
コード例 #4
0
 static StackObject *AssignFromStack_Item2_1(ref object o, ILIntepreter __intp, StackObject *ptr_of_this_method, IList <object> __mStack)
 {
     ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
     System.IO.MemoryStream @Item2 = (System.IO.MemoryStream) typeof(System.IO.MemoryStream).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
     System.ValueTuple <System.UInt16, System.IO.MemoryStream> ins = (System.ValueTuple <System.UInt16, System.IO.MemoryStream>)o;
     ins.Item2 = @Item2;
     o         = ins;
     return(ptr_of_this_method);
 }
コード例 #5
0
 static StackObject *AssignFromStack_Item1_0(ref object o, ILIntepreter __intp, StackObject *ptr_of_this_method, IList <object> __mStack)
 {
     ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
     System.UInt16 @Item1 = (ushort)ptr_of_this_method->Value;
     System.ValueTuple <System.UInt16, System.IO.MemoryStream> ins = (System.ValueTuple <System.UInt16, System.IO.MemoryStream>)o;
     ins.Item1 = @Item1;
     o         = ins;
     return(ptr_of_this_method);
 }
 static StackObject *AssignFromStack_Item2_1(ref object o, ILIntepreter __intp, StackObject *ptr_of_this_method, IList <object> __mStack)
 {
     ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
     System.String @Item2 = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
     System.ValueTuple <System.Int32, System.String, System.Boolean> ins = (System.ValueTuple <System.Int32, System.String, System.Boolean>)o;
     ins.Item2 = @Item2;
     o         = ins;
     return(ptr_of_this_method);
 }
コード例 #7
0
 static StackObject *AssignFromStack_Item2_1(ref object o, ILIntepreter __intp, StackObject *ptr_of_this_method, IList <object> __mStack)
 {
     ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
     System.Int64 @Item2 = *(long *)&ptr_of_this_method->Value;
     System.ValueTuple <System.Int32, System.Int64, System.Int32> ins = (System.ValueTuple <System.Int32, System.Int64, System.Int32>)o;
     ins.Item2 = @Item2;
     o         = ins;
     return(ptr_of_this_method);
 }
コード例 #8
0
        internal static bool NonWindowsGetInodeData(string path, out System.ValueTuple <UInt64, UInt64> inodeData)
        {
            UInt64 device = 0UL;
            UInt64 inode  = 0UL;
            var    result = Unix.NativeMethods.GetInodeData(path, out device, out inode);

            inodeData = (device, inode);
            return(result == 0);
        }
 static StackObject *AssignFromStack_Item3_2(ref object o, ILIntepreter __intp, StackObject *ptr_of_this_method, IList <object> __mStack)
 {
     ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
     System.Boolean @Item3 = ptr_of_this_method->Value == 1;
     System.ValueTuple <System.Int32, System.String, System.Boolean> ins = (System.ValueTuple <System.Int32, System.String, System.Boolean>)o;
     ins.Item3 = @Item3;
     o         = ins;
     return(ptr_of_this_method);
 }
        static void WriteBackInstance(ILRuntime.Runtime.Enviorment.AppDomain __domain, StackObject *ptr_of_this_method, IList <object> __mStack, ref System.ValueTuple <System.Int32, System.String, System.Boolean> instance_of_this_method)
        {
            ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
            switch (ptr_of_this_method->ObjectType)
            {
            case ObjectTypes.Object:
            {
                __mStack[ptr_of_this_method->Value] = instance_of_this_method;
            }
            break;

            case ObjectTypes.FieldReference:
            {
                var ___obj = __mStack[ptr_of_this_method->Value];
                if (___obj is ILTypeInstance)
                {
                    ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = instance_of_this_method;
                }
                else
                {
                    var t = __domain.GetType(___obj.GetType()) as CLRType;
                    t.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, instance_of_this_method);
                }
            }
            break;

            case ObjectTypes.StaticFieldReference:
            {
                var t = __domain.GetType(ptr_of_this_method->Value);
                if (t is ILType)
                {
                    ((ILType)t).StaticInstance[ptr_of_this_method->ValueLow] = instance_of_this_method;
                }
                else
                {
                    ((CLRType)t).SetStaticFieldValue(ptr_of_this_method->ValueLow, instance_of_this_method);
                }
            }
            break;

            case ObjectTypes.ArrayReference:
            {
                var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as System.ValueTuple <System.Int32, System.String, System.Boolean>[];
                instance_of_arrayReference[ptr_of_this_method->ValueLow] = instance_of_this_method;
            }
            break;
            }
        }
コード例 #11
0
        static StackObject *Enqueue_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.ValueTuple <System.Int32, System.Int64, System.Int32> @item = (System.ValueTuple <System.Int32, System.Int64, System.Int32>) typeof(System.ValueTuple <System.Int32, System.Int64, System.Int32>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 16);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Collections.Generic.Queue <System.ValueTuple <System.Int32, System.Int64, System.Int32> > instance_of_this_method = (System.Collections.Generic.Queue <System.ValueTuple <System.Int32, System.Int64, System.Int32> >) typeof(System.Collections.Generic.Queue <System.ValueTuple <System.Int32, System.Int64, System.Int32> >).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Enqueue(@item);

            return(__ret);
        }
コード例 #12
0
        public System.ValueTuple <Vector3, Vector2> Intersect(Plane plane, Vector3 first, Vector3 second, Vector2 uv1, Vector2 uv2)
        {
            _edgeRay.origin    = first;
            _edgeRay.direction = (second - first).normalized;

            plane.Raycast(_edgeRay, out float distance);
            float maxDistance      = Vector3.Distance(first, second);
            float relativeDistance = distance / maxDistance;

            System.ValueTuple <Vector3, Vector2> returnValue = new System.ValueTuple <Vector3, Vector2>
            {
                Item1 = _edgeRay.GetPoint(distance)
            };

            returnValue.Item2.x = Mathf.Lerp(uv1.x, uv2.x, relativeDistance);
            returnValue.Item2.y = Mathf.Lerp(uv1.y, uv2.y, relativeDistance);

            return(returnValue);
        }
コード例 #13
0
 public static System.Tuple <T1, T2, T3> ToTuple <T1, T2, T3>(this System.ValueTuple <T1, T2, T3> value)
 {
     throw null;
 }
コード例 #14
0
 public static System.Tuple <T1, T2, T3, T4, T5, T6, T7, System.Tuple <T8, T9, T10, T11, T12, T13, T14, System.Tuple <T15, T16, T17, T18, T19, T20, T21> > > ToTuple <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>(this System.ValueTuple <T1, T2, T3, T4, T5, T6, T7, System.ValueTuple <T8, T9, T10, T11, T12, T13, T14, System.ValueTuple <T15, T16, T17, T18, T19, T20, T21> > > value)
 {
     throw null;
 }
        static StackObject *Contains_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.ValueTuple <System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance> @item = (System.ValueTuple <System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>) typeof(System.ValueTuple <System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 16);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Collections.Generic.List <System.ValueTuple <System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance> > instance_of_this_method = (System.Collections.Generic.List <System.ValueTuple <System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance> >) typeof(System.Collections.Generic.List <System.ValueTuple <System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance> >).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Contains(@item);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method ? 1 : 0;
            return(__ret + 1);
        }
コード例 #16
0
 static StackObject *AssignFromStack_Item2_1(ref object o, ILIntepreter __intp, StackObject *ptr_of_this_method, IList <object> __mStack)
 {
     ILRuntime.Runtime.Enviorment.AppDomain      __domain = __intp.AppDomain;
     ILRuntime.Runtime.Intepreter.ILTypeInstance @Item2   = (ILRuntime.Runtime.Intepreter.ILTypeInstance) typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
     System.ValueTuple <System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance> ins = (System.ValueTuple <System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>)o;
     ins.Item2 = @Item2;
     o         = ins;
     return(ptr_of_this_method);
 }
 static void set_Item3_2(ref object o, object v)
 {
     System.ValueTuple <System.Int32, System.String, System.Boolean> ins = (System.ValueTuple <System.Int32, System.String, System.Boolean>)o;
     ins.Item3 = (System.Boolean)v;
     o         = ins;
 }
コード例 #18
0
 static void set_Item3_2(ref object o, object v)
 {
     System.ValueTuple <System.Int32, System.Int64, System.Int32> ins = (System.ValueTuple <System.Int32, System.Int64, System.Int32>)o;
     ins.Item3 = (System.Int32)v;
     o         = ins;
 }
コード例 #19
0
ファイル: cs0029-38.cs プロジェクト: samcf111/unityMono5.5.0
 static void Test()
 {
     System.ValueTuple <long, bool> arg = 1;
 }
 static void set_Item2_1(ref object o, object v)
 {
     System.ValueTuple <System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance> ins = (System.ValueTuple <System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>)o;
     ins.Item2 = (ILRuntime.Runtime.Intepreter.ILTypeInstance)v;
     o         = ins;
 }
コード例 #21
0
        public bool TrianglePlaneIntersect(List <Vector3> vertices, List <Vector2> uvs, List <int> triangles, int startIndex, ref Plane plane, MeshPiece meshA, MeshPiece meshB, Vector3[] intersectVectors)
        {
            for (int i = 0; i < 3; ++i)
            {
                _ts[i] = triangles[startIndex + i];
                _vs[i] = vertices[_ts[i]];
                _us[i] = uvs[_ts[i]];
            }

            meshA.ContainsKeys(triangles, startIndex, _isPositives);

            if (_isPositives[0] == _isPositives[1] && _isPositives[1] == _isPositives[2])
            {
                (_isPositives[0] ? meshA : meshB).AddOriginalTriangle(_ts);

                return(false);
            }

            int lonelyPoint = 0;

            if (_isPositives[0] != _isPositives[1])
            {
                lonelyPoint = _isPositives[0] != _isPositives[2] ? 0 : 1;
            }
            else
            {
                lonelyPoint = 2;
            }

            int prevPoint = lonelyPoint - 1;

            if (prevPoint == -1)
            {
                prevPoint = 2;
            }

            int nextPoint = lonelyPoint + 1;

            if (nextPoint == 3)
            {
                nextPoint = 0;
            }

            System.ValueTuple <Vector3, Vector2> newPointPrev = Intersect(plane, _vs[lonelyPoint], _vs[prevPoint], _us[lonelyPoint], _us[prevPoint]);
            System.ValueTuple <Vector3, Vector2> newPointNext = Intersect(plane, _vs[lonelyPoint], _vs[nextPoint], _us[lonelyPoint], _us[nextPoint]);

            (_isPositives[lonelyPoint] ? meshA : meshB).AddSlicedTriangle(_ts[lonelyPoint], newPointNext.Item1, newPointPrev.Item1, newPointNext.Item2, newPointPrev.Item2);
            (_isPositives[prevPoint] ? meshA : meshB).AddSlicedTriangle(_ts[prevPoint], newPointPrev.Item1, newPointPrev.Item2, _ts[nextPoint]);
            (_isPositives[prevPoint] ? meshA : meshB).AddSlicedTriangle(_ts[nextPoint], newPointPrev.Item1, newPointNext.Item1, newPointPrev.Item2, newPointNext.Item2);

            if (_isPositives[lonelyPoint])
            {
                intersectVectors[0] = newPointPrev.Item1;
                intersectVectors[1] = newPointNext.Item1;
            }
            else
            {
                intersectVectors[0] = newPointNext.Item1;
                intersectVectors[1] = newPointPrev.Item1;
            }

            return(true);
        }
コード例 #22
0
 public static System.Tuple <T1, T2, T3, T4, T5, T6> ToTuple <T1, T2, T3, T4, T5, T6>(this System.ValueTuple <T1, T2, T3, T4, T5, T6> value)
 {
     throw null;
 }
コード例 #23
0
 public static System.Tuple <T1, T2, T3, T4, T5, T6, T7, System.Tuple <T8, T9> > ToTuple <T1, T2, T3, T4, T5, T6, T7, T8, T9>(this System.ValueTuple <T1, T2, T3, T4, T5, T6, T7, System.ValueTuple <T8, T9> > value)
 {
     throw null;
 }
コード例 #24
0
 static void set_Item2_1(ref object o, object v)
 {
     System.ValueTuple <System.UInt16, System.IO.MemoryStream> ins = (System.ValueTuple <System.UInt16, System.IO.MemoryStream>)o;
     ins.Item2 = (System.IO.MemoryStream)v;
     o         = ins;
 }