ETModel_MoveComponent_Binding.cs 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Reflection;
  5. using System.Runtime.InteropServices;
  6. using ILRuntime.CLR.TypeSystem;
  7. using ILRuntime.CLR.Method;
  8. using ILRuntime.Runtime.Enviorment;
  9. using ILRuntime.Runtime.Intepreter;
  10. using ILRuntime.Runtime.Stack;
  11. using ILRuntime.Reflection;
  12. using ILRuntime.CLR.Utils;
  13. namespace ILRuntime.Runtime.Generated
  14. {
  15. unsafe class ETModel_MoveComponent_Binding
  16. {
  17. public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
  18. {
  19. BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
  20. MethodBase method;
  21. Type[] args;
  22. Type type = typeof(ETModel.MoveComponent);
  23. args = new Type[]{typeof(UnityEngine.Vector3), typeof(System.Single)};
  24. method = type.GetMethod("MoveToDest", flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, MoveToDest_0);
  26. args = new Type[]{typeof(UnityEngine.Vector3), typeof(System.Single)};
  27. method = type.GetMethod("Turn2D", flag, null, args, null);
  28. app.RegisterCLRMethodRedirection(method, Turn2D_1);
  29. }
  30. static StackObject* MoveToDest_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  31. {
  32. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  33. StackObject* ptr_of_this_method;
  34. StackObject* __ret = ILIntepreter.Minus(__esp, 3);
  35. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  36. System.Single @speedValue = *(float*)&ptr_of_this_method->Value;
  37. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  38. UnityEngine.Vector3 @dest = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  39. __intp.Free(ptr_of_this_method);
  40. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  41. ETModel.MoveComponent instance_of_this_method = (ETModel.MoveComponent)typeof(ETModel.MoveComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  42. __intp.Free(ptr_of_this_method);
  43. instance_of_this_method.MoveToDest(@dest, @speedValue);
  44. return __ret;
  45. }
  46. static StackObject* Turn2D_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  47. {
  48. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  49. StackObject* ptr_of_this_method;
  50. StackObject* __ret = ILIntepreter.Minus(__esp, 3);
  51. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  52. System.Single @turnTime = *(float*)&ptr_of_this_method->Value;
  53. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  54. UnityEngine.Vector3 @dir = (UnityEngine.Vector3)typeof(UnityEngine.Vector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  55. __intp.Free(ptr_of_this_method);
  56. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  57. ETModel.MoveComponent instance_of_this_method = (ETModel.MoveComponent)typeof(ETModel.MoveComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  58. __intp.Free(ptr_of_this_method);
  59. instance_of_this_method.Turn2D(@dir, @turnTime);
  60. return __ret;
  61. }
  62. }
  63. }