|
|
@@ -23,52 +23,52 @@ namespace ILRuntime.Runtime.Generated
|
|
|
FieldInfo field;
|
|
|
Type[] args;
|
|
|
Type type = typeof(UnityEngine.Vector3);
|
|
|
- args = new Type[]{typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3)};
|
|
|
- method = type.GetMethod("op_Equality", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, op_Equality_0);
|
|
|
+ args = new Type[]{};
|
|
|
+ method = type.GetMethod("get_zero", flag, null, args, null);
|
|
|
+ app.RegisterCLRMethodRedirection(method, get_zero_0);
|
|
|
+ args = new Type[]{typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(System.Single)};
|
|
|
+ method = type.GetMethod("Lerp", flag, null, args, null);
|
|
|
+ app.RegisterCLRMethodRedirection(method, Lerp_1);
|
|
|
+ args = new Type[]{};
|
|
|
+ method = type.GetMethod("get_magnitude", flag, null, args, null);
|
|
|
+ app.RegisterCLRMethodRedirection(method, get_magnitude_2);
|
|
|
+ args = new Type[]{};
|
|
|
+ method = type.GetMethod("get_sqrMagnitude", flag, null, args, null);
|
|
|
+ app.RegisterCLRMethodRedirection(method, get_sqrMagnitude_3);
|
|
|
+ args = new Type[]{};
|
|
|
+ method = type.GetMethod("get_up", flag, null, args, null);
|
|
|
+ app.RegisterCLRMethodRedirection(method, get_up_4);
|
|
|
args = new Type[]{typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3)};
|
|
|
method = type.GetMethod("op_Subtraction", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, op_Subtraction_1);
|
|
|
+ app.RegisterCLRMethodRedirection(method, op_Subtraction_5);
|
|
|
+ args = new Type[]{typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3)};
|
|
|
+ method = type.GetMethod("op_Equality", flag, null, args, null);
|
|
|
+ app.RegisterCLRMethodRedirection(method, op_Equality_6);
|
|
|
args = new Type[]{};
|
|
|
method = type.GetMethod("get_normalized", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, get_normalized_2);
|
|
|
- args = new Type[]{};
|
|
|
- method = type.GetMethod("get_up", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, get_up_3);
|
|
|
+ app.RegisterCLRMethodRedirection(method, get_normalized_7);
|
|
|
args = new Type[]{typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3)};
|
|
|
method = type.GetMethod("Angle", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, Angle_4);
|
|
|
+ app.RegisterCLRMethodRedirection(method, Angle_8);
|
|
|
args = new Type[]{typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3)};
|
|
|
method = type.GetMethod("Cross", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, Cross_5);
|
|
|
+ app.RegisterCLRMethodRedirection(method, Cross_9);
|
|
|
args = new Type[]{};
|
|
|
method = type.GetMethod("get_forward", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, get_forward_6);
|
|
|
- args = new Type[]{};
|
|
|
- method = type.GetMethod("get_zero", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, get_zero_7);
|
|
|
- args = new Type[]{typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(System.Single)};
|
|
|
- method = type.GetMethod("Lerp", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, Lerp_8);
|
|
|
- args = new Type[]{};
|
|
|
- method = type.GetMethod("get_magnitude", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, get_magnitude_9);
|
|
|
- args = new Type[]{};
|
|
|
- method = type.GetMethod("get_sqrMagnitude", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, get_sqrMagnitude_10);
|
|
|
+ app.RegisterCLRMethodRedirection(method, get_forward_10);
|
|
|
|
|
|
+ field = type.GetField("y", flag);
|
|
|
+ app.RegisterCLRFieldGetter(field, get_y_0);
|
|
|
+ app.RegisterCLRFieldSetter(field, set_y_0);
|
|
|
+ app.RegisterCLRFieldBinding(field, CopyToStack_y_0, AssignFromStack_y_0);
|
|
|
field = type.GetField("x", flag);
|
|
|
- app.RegisterCLRFieldGetter(field, get_x_0);
|
|
|
- app.RegisterCLRFieldSetter(field, set_x_0);
|
|
|
- app.RegisterCLRFieldBinding(field, CopyToStack_x_0, AssignFromStack_x_0);
|
|
|
+ app.RegisterCLRFieldGetter(field, get_x_1);
|
|
|
+ app.RegisterCLRFieldSetter(field, set_x_1);
|
|
|
+ app.RegisterCLRFieldBinding(field, CopyToStack_x_1, AssignFromStack_x_1);
|
|
|
field = type.GetField("z", flag);
|
|
|
- app.RegisterCLRFieldGetter(field, get_z_1);
|
|
|
- app.RegisterCLRFieldSetter(field, set_z_1);
|
|
|
- app.RegisterCLRFieldBinding(field, CopyToStack_z_1, AssignFromStack_z_1);
|
|
|
- field = type.GetField("y", flag);
|
|
|
- app.RegisterCLRFieldGetter(field, get_y_2);
|
|
|
- app.RegisterCLRFieldSetter(field, set_y_2);
|
|
|
- app.RegisterCLRFieldBinding(field, CopyToStack_y_2, AssignFromStack_y_2);
|
|
|
+ app.RegisterCLRFieldGetter(field, get_z_2);
|
|
|
+ app.RegisterCLRFieldSetter(field, set_z_2);
|
|
|
+ app.RegisterCLRFieldBinding(field, CopyToStack_z_2, AssignFromStack_z_2);
|
|
|
|
|
|
app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);
|
|
|
|
|
|
@@ -127,49 +127,41 @@ namespace ILRuntime.Runtime.Generated
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- static StackObject* op_Equality_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* get_zero_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);
|
|
|
- UnityEngine.Vector3 @rhs = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).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);
|
|
|
- UnityEngine.Vector3 @lhs = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
|
|
|
- __intp.Free(ptr_of_this_method);
|
|
|
+ StackObject* __ret = ILIntepreter.Minus(__esp, 0);
|
|
|
|
|
|
|
|
|
- var result_of_this_method = lhs == rhs;
|
|
|
+ var result_of_this_method = UnityEngine.Vector3.zero;
|
|
|
|
|
|
- __ret->ObjectType = ObjectTypes.Integer;
|
|
|
- __ret->Value = result_of_this_method ? 1 : 0;
|
|
|
- return __ret + 1;
|
|
|
+ return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
}
|
|
|
|
|
|
- static StackObject* op_Subtraction_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* Lerp_1(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);
|
|
|
+ StackObject* __ret = ILIntepreter.Minus(__esp, 3);
|
|
|
|
|
|
ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
+ System.Single @t = *(float*)&ptr_of_this_method->Value;
|
|
|
+
|
|
|
+ ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
|
|
|
UnityEngine.Vector3 @b = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).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);
|
|
|
+ ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
|
|
|
UnityEngine.Vector3 @a = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
|
|
|
__intp.Free(ptr_of_this_method);
|
|
|
|
|
|
|
|
|
- var result_of_this_method = a - b;
|
|
|
+ var result_of_this_method = UnityEngine.Vector3.Lerp(@a, @b, @t);
|
|
|
|
|
|
return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
}
|
|
|
|
|
|
- static StackObject* get_normalized_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* get_magnitude_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|
|
|
@@ -179,16 +171,39 @@ namespace ILRuntime.Runtime.Generated
|
|
|
ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
|
|
|
UnityEngine.Vector3 instance_of_this_method = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
|
|
|
|
|
|
- var result_of_this_method = instance_of_this_method.normalized;
|
|
|
+ var result_of_this_method = instance_of_this_method.magnitude;
|
|
|
|
|
|
ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
WriteBackInstance(__domain, ptr_of_this_method, __mStack, ref instance_of_this_method);
|
|
|
|
|
|
__intp.Free(ptr_of_this_method);
|
|
|
- return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
+ __ret->ObjectType = ObjectTypes.Float;
|
|
|
+ *(float*)&__ret->Value = result_of_this_method;
|
|
|
+ return __ret + 1;
|
|
|
}
|
|
|
|
|
|
- static StackObject* get_up_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* get_sqrMagnitude_3(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, 1);
|
|
|
+
|
|
|
+ ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
+ ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
|
|
|
+ UnityEngine.Vector3 instance_of_this_method = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
|
|
|
+
|
|
|
+ var result_of_this_method = instance_of_this_method.sqrMagnitude;
|
|
|
+
|
|
|
+ ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
+ WriteBackInstance(__domain, ptr_of_this_method, __mStack, ref instance_of_this_method);
|
|
|
+
|
|
|
+ __intp.Free(ptr_of_this_method);
|
|
|
+ __ret->ObjectType = ObjectTypes.Float;
|
|
|
+ *(float*)&__ret->Value = result_of_this_method;
|
|
|
+ return __ret + 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ static StackObject* get_up_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* __ret = ILIntepreter.Minus(__esp, 0);
|
|
|
@@ -199,29 +214,27 @@ namespace ILRuntime.Runtime.Generated
|
|
|
return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
}
|
|
|
|
|
|
- static StackObject* Angle_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* op_Subtraction_5(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);
|
|
|
- UnityEngine.Vector3 @to = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
|
|
|
+ UnityEngine.Vector3 @b = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).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);
|
|
|
- UnityEngine.Vector3 @from = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
|
|
|
+ UnityEngine.Vector3 @a = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
|
|
|
__intp.Free(ptr_of_this_method);
|
|
|
|
|
|
|
|
|
- var result_of_this_method = UnityEngine.Vector3.Angle(@from, @to);
|
|
|
+ var result_of_this_method = a - b;
|
|
|
|
|
|
- __ret->ObjectType = ObjectTypes.Float;
|
|
|
- *(float*)&__ret->Value = result_of_this_method;
|
|
|
- return __ret + 1;
|
|
|
+ return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
}
|
|
|
|
|
|
- static StackObject* Cross_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* op_Equality_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|
|
|
@@ -236,185 +249,172 @@ namespace ILRuntime.Runtime.Generated
|
|
|
__intp.Free(ptr_of_this_method);
|
|
|
|
|
|
|
|
|
- var result_of_this_method = UnityEngine.Vector3.Cross(@lhs, @rhs);
|
|
|
+ var result_of_this_method = lhs == rhs;
|
|
|
|
|
|
- return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
+ __ret->ObjectType = ObjectTypes.Integer;
|
|
|
+ __ret->Value = result_of_this_method ? 1 : 0;
|
|
|
+ return __ret + 1;
|
|
|
}
|
|
|
|
|
|
- static StackObject* get_forward_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* get_normalized_7(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
- StackObject* __ret = ILIntepreter.Minus(__esp, 0);
|
|
|
-
|
|
|
-
|
|
|
- var result_of_this_method = UnityEngine.Vector3.forward;
|
|
|
-
|
|
|
- return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
- }
|
|
|
+ StackObject* ptr_of_this_method;
|
|
|
+ StackObject* __ret = ILIntepreter.Minus(__esp, 1);
|
|
|
|
|
|
- static StackObject* get_zero_7(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
- {
|
|
|
- ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
- StackObject* __ret = ILIntepreter.Minus(__esp, 0);
|
|
|
+ ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
+ ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
|
|
|
+ UnityEngine.Vector3 instance_of_this_method = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
|
|
|
|
|
|
+ var result_of_this_method = instance_of_this_method.normalized;
|
|
|
|
|
|
- var result_of_this_method = UnityEngine.Vector3.zero;
|
|
|
+ ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
+ WriteBackInstance(__domain, ptr_of_this_method, __mStack, ref instance_of_this_method);
|
|
|
|
|
|
+ __intp.Free(ptr_of_this_method);
|
|
|
return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
}
|
|
|
|
|
|
- static StackObject* Lerp_8(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* Angle_8(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);
|
|
|
+ StackObject* __ret = ILIntepreter.Minus(__esp, 2);
|
|
|
|
|
|
ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
- System.Single @t = *(float*)&ptr_of_this_method->Value;
|
|
|
-
|
|
|
- ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
|
|
|
- UnityEngine.Vector3 @b = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
|
|
|
+ UnityEngine.Vector3 @to = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).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, 3);
|
|
|
- UnityEngine.Vector3 @a = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
|
|
|
+ ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
|
|
|
+ UnityEngine.Vector3 @from = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
|
|
|
__intp.Free(ptr_of_this_method);
|
|
|
|
|
|
|
|
|
- var result_of_this_method = UnityEngine.Vector3.Lerp(@a, @b, @t);
|
|
|
+ var result_of_this_method = UnityEngine.Vector3.Angle(@from, @to);
|
|
|
|
|
|
- return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
+ __ret->ObjectType = ObjectTypes.Float;
|
|
|
+ *(float*)&__ret->Value = result_of_this_method;
|
|
|
+ return __ret + 1;
|
|
|
}
|
|
|
|
|
|
- static StackObject* get_magnitude_9(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* Cross_9(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, 1);
|
|
|
+ StackObject* __ret = ILIntepreter.Minus(__esp, 2);
|
|
|
|
|
|
ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
- ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
|
|
|
- UnityEngine.Vector3 instance_of_this_method = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
|
|
|
+ UnityEngine.Vector3 @rhs = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
|
|
|
+ __intp.Free(ptr_of_this_method);
|
|
|
|
|
|
- var result_of_this_method = instance_of_this_method.magnitude;
|
|
|
+ ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
|
|
|
+ UnityEngine.Vector3 @lhs = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).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, 1);
|
|
|
- WriteBackInstance(__domain, ptr_of_this_method, __mStack, ref instance_of_this_method);
|
|
|
|
|
|
- __intp.Free(ptr_of_this_method);
|
|
|
- __ret->ObjectType = ObjectTypes.Float;
|
|
|
- *(float*)&__ret->Value = result_of_this_method;
|
|
|
- return __ret + 1;
|
|
|
+ var result_of_this_method = UnityEngine.Vector3.Cross(@lhs, @rhs);
|
|
|
+
|
|
|
+ return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
}
|
|
|
|
|
|
- static StackObject* get_sqrMagnitude_10(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* get_forward_10(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, 1);
|
|
|
-
|
|
|
- ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
- ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
|
|
|
- UnityEngine.Vector3 instance_of_this_method = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
|
|
|
+ StackObject* __ret = ILIntepreter.Minus(__esp, 0);
|
|
|
|
|
|
- var result_of_this_method = instance_of_this_method.sqrMagnitude;
|
|
|
|
|
|
- ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
- WriteBackInstance(__domain, ptr_of_this_method, __mStack, ref instance_of_this_method);
|
|
|
+ var result_of_this_method = UnityEngine.Vector3.forward;
|
|
|
|
|
|
- __intp.Free(ptr_of_this_method);
|
|
|
- __ret->ObjectType = ObjectTypes.Float;
|
|
|
- *(float*)&__ret->Value = result_of_this_method;
|
|
|
- return __ret + 1;
|
|
|
+ return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
}
|
|
|
|
|
|
|
|
|
- static object get_x_0(ref object o)
|
|
|
+ static object get_y_0(ref object o)
|
|
|
{
|
|
|
- return ((UnityEngine.Vector3)o).x;
|
|
|
+ return ((UnityEngine.Vector3)o).y;
|
|
|
}
|
|
|
|
|
|
- static StackObject* CopyToStack_x_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
|
|
|
+ static StackObject* CopyToStack_y_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
|
|
|
{
|
|
|
- var result_of_this_method = ((UnityEngine.Vector3)o).x;
|
|
|
+ var result_of_this_method = ((UnityEngine.Vector3)o).y;
|
|
|
__ret->ObjectType = ObjectTypes.Float;
|
|
|
*(float*)&__ret->Value = result_of_this_method;
|
|
|
return __ret + 1;
|
|
|
}
|
|
|
|
|
|
- static void set_x_0(ref object o, object v)
|
|
|
+ static void set_y_0(ref object o, object v)
|
|
|
{
|
|
|
UnityEngine.Vector3 ins =(UnityEngine.Vector3)o;
|
|
|
- ins.x = (System.Single)v;
|
|
|
+ ins.y = (System.Single)v;
|
|
|
o = ins;
|
|
|
}
|
|
|
|
|
|
- static StackObject* AssignFromStack_x_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
|
|
|
+ static StackObject* AssignFromStack_y_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
- System.Single @x = *(float*)&ptr_of_this_method->Value;
|
|
|
+ System.Single @y = *(float*)&ptr_of_this_method->Value;
|
|
|
UnityEngine.Vector3 ins =(UnityEngine.Vector3)o;
|
|
|
- ins.x = @x;
|
|
|
+ ins.y = @y;
|
|
|
o = ins;
|
|
|
return ptr_of_this_method;
|
|
|
}
|
|
|
|
|
|
- static object get_z_1(ref object o)
|
|
|
+ static object get_x_1(ref object o)
|
|
|
{
|
|
|
- return ((UnityEngine.Vector3)o).z;
|
|
|
+ return ((UnityEngine.Vector3)o).x;
|
|
|
}
|
|
|
|
|
|
- static StackObject* CopyToStack_z_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
|
|
|
+ static StackObject* CopyToStack_x_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
|
|
|
{
|
|
|
- var result_of_this_method = ((UnityEngine.Vector3)o).z;
|
|
|
+ var result_of_this_method = ((UnityEngine.Vector3)o).x;
|
|
|
__ret->ObjectType = ObjectTypes.Float;
|
|
|
*(float*)&__ret->Value = result_of_this_method;
|
|
|
return __ret + 1;
|
|
|
}
|
|
|
|
|
|
- static void set_z_1(ref object o, object v)
|
|
|
+ static void set_x_1(ref object o, object v)
|
|
|
{
|
|
|
UnityEngine.Vector3 ins =(UnityEngine.Vector3)o;
|
|
|
- ins.z = (System.Single)v;
|
|
|
+ ins.x = (System.Single)v;
|
|
|
o = ins;
|
|
|
}
|
|
|
|
|
|
- static StackObject* AssignFromStack_z_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
|
|
|
+ static StackObject* AssignFromStack_x_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
- System.Single @z = *(float*)&ptr_of_this_method->Value;
|
|
|
+ System.Single @x = *(float*)&ptr_of_this_method->Value;
|
|
|
UnityEngine.Vector3 ins =(UnityEngine.Vector3)o;
|
|
|
- ins.z = @z;
|
|
|
+ ins.x = @x;
|
|
|
o = ins;
|
|
|
return ptr_of_this_method;
|
|
|
}
|
|
|
|
|
|
- static object get_y_2(ref object o)
|
|
|
+ static object get_z_2(ref object o)
|
|
|
{
|
|
|
- return ((UnityEngine.Vector3)o).y;
|
|
|
+ return ((UnityEngine.Vector3)o).z;
|
|
|
}
|
|
|
|
|
|
- static StackObject* CopyToStack_y_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
|
|
|
+ static StackObject* CopyToStack_z_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
|
|
|
{
|
|
|
- var result_of_this_method = ((UnityEngine.Vector3)o).y;
|
|
|
+ var result_of_this_method = ((UnityEngine.Vector3)o).z;
|
|
|
__ret->ObjectType = ObjectTypes.Float;
|
|
|
*(float*)&__ret->Value = result_of_this_method;
|
|
|
return __ret + 1;
|
|
|
}
|
|
|
|
|
|
- static void set_y_2(ref object o, object v)
|
|
|
+ static void set_z_2(ref object o, object v)
|
|
|
{
|
|
|
UnityEngine.Vector3 ins =(UnityEngine.Vector3)o;
|
|
|
- ins.y = (System.Single)v;
|
|
|
+ ins.z = (System.Single)v;
|
|
|
o = ins;
|
|
|
}
|
|
|
|
|
|
- static StackObject* AssignFromStack_y_2(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
|
|
|
+ static StackObject* AssignFromStack_z_2(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
- System.Single @y = *(float*)&ptr_of_this_method->Value;
|
|
|
+ System.Single @z = *(float*)&ptr_of_this_method->Value;
|
|
|
UnityEngine.Vector3 ins =(UnityEngine.Vector3)o;
|
|
|
- ins.y = @y;
|
|
|
+ ins.z = @z;
|
|
|
o = ins;
|
|
|
return ptr_of_this_method;
|
|
|
}
|