源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
2.2 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_CustomYieldInstructionWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.CustomYieldInstruction), typeof(System.Object));
  9. L.RegFunction("MoveNext", MoveNext);
  10. L.RegFunction("Reset", Reset);
  11. L.RegFunction("__tostring", ToLua.op_ToString);
  12. L.RegVar("keepWaiting", get_keepWaiting, null);
  13. L.RegVar("Current", get_Current, null);
  14. L.EndClass();
  15. }
  16. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  17. static int MoveNext(IntPtr L)
  18. {
  19. try
  20. {
  21. ToLua.CheckArgsCount(L, 1);
  22. UnityEngine.CustomYieldInstruction obj = (UnityEngine.CustomYieldInstruction)ToLua.CheckObject(L, 1, typeof(UnityEngine.CustomYieldInstruction));
  23. bool o = obj.MoveNext();
  24. LuaDLL.lua_pushboolean(L, o);
  25. return 1;
  26. }
  27. catch(Exception e)
  28. {
  29. return LuaDLL.toluaL_exception(L, e);
  30. }
  31. }
  32. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  33. static int Reset(IntPtr L)
  34. {
  35. try
  36. {
  37. ToLua.CheckArgsCount(L, 1);
  38. UnityEngine.CustomYieldInstruction obj = (UnityEngine.CustomYieldInstruction)ToLua.CheckObject(L, 1, typeof(UnityEngine.CustomYieldInstruction));
  39. obj.Reset();
  40. return 0;
  41. }
  42. catch(Exception e)
  43. {
  44. return LuaDLL.toluaL_exception(L, e);
  45. }
  46. }
  47. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  48. static int get_keepWaiting(IntPtr L)
  49. {
  50. object o = null;
  51. try
  52. {
  53. o = ToLua.ToObject(L, 1);
  54. UnityEngine.CustomYieldInstruction obj = (UnityEngine.CustomYieldInstruction)o;
  55. bool ret = obj.keepWaiting;
  56. LuaDLL.lua_pushboolean(L, ret);
  57. return 1;
  58. }
  59. catch(Exception e)
  60. {
  61. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index keepWaiting on a nil value" : e.Message);
  62. }
  63. }
  64. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  65. static int get_Current(IntPtr L)
  66. {
  67. object o = null;
  68. try
  69. {
  70. o = ToLua.ToObject(L, 1);
  71. UnityEngine.CustomYieldInstruction obj = (UnityEngine.CustomYieldInstruction)o;
  72. object ret = obj.Current;
  73. ToLua.Push(L, ret);
  74. return 1;
  75. }
  76. catch(Exception e)
  77. {
  78. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Current on a nil value" : e.Message);
  79. }
  80. }
  81. }