RollingNumberTextWrap.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class RollingNumberTextWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(RollingNumberText), typeof(UnityEngine.MonoBehaviour), "RollingNumberText");
  9. L.RegFunction("Change", Change);
  10. L.RegFunction("RollingNumberOver", RollingNumberOver);
  11. L.RegFunction("__eq", op_Equality);
  12. L.RegFunction("__tostring", ToLua.op_ToString);
  13. L.RegVar("OnComplete", get_OnComplete, set_OnComplete);
  14. L.RegVar("needOver", get_needOver, set_needOver);
  15. L.EndClass();
  16. }
  17. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  18. static int Change(IntPtr L)
  19. {
  20. try
  21. {
  22. ToLua.CheckArgsCount(L, 3);
  23. RollingNumberText obj = (RollingNumberText)ToLua.CheckObject<RollingNumberText>(L, 1);
  24. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  25. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  26. obj.Change(arg0, arg1);
  27. return 0;
  28. }
  29. catch (Exception e)
  30. {
  31. return LuaDLL.toluaL_exception(L, e);
  32. }
  33. }
  34. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  35. static int RollingNumberOver(IntPtr L)
  36. {
  37. try
  38. {
  39. ToLua.CheckArgsCount(L, 3);
  40. RollingNumberText obj = (RollingNumberText)ToLua.CheckObject<RollingNumberText>(L, 1);
  41. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  42. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  43. obj.RollingNumberOver(arg0, arg1);
  44. return 0;
  45. }
  46. catch (Exception e)
  47. {
  48. return LuaDLL.toluaL_exception(L, e);
  49. }
  50. }
  51. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  52. static int op_Equality(IntPtr L)
  53. {
  54. try
  55. {
  56. ToLua.CheckArgsCount(L, 2);
  57. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  58. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  59. bool o = arg0 == arg1;
  60. LuaDLL.lua_pushboolean(L, o);
  61. return 1;
  62. }
  63. catch (Exception e)
  64. {
  65. return LuaDLL.toluaL_exception(L, e);
  66. }
  67. }
  68. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  69. static int get_OnComplete(IntPtr L)
  70. {
  71. object o = null;
  72. try
  73. {
  74. o = ToLua.ToObject(L, 1);
  75. RollingNumberText obj = (RollingNumberText)o;
  76. System.Action ret = obj.OnComplete;
  77. ToLua.Push(L, ret);
  78. return 1;
  79. }
  80. catch(Exception e)
  81. {
  82. return LuaDLL.toluaL_exception(L, e, o, "attempt to index OnComplete on a nil value");
  83. }
  84. }
  85. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  86. static int get_needOver(IntPtr L)
  87. {
  88. object o = null;
  89. try
  90. {
  91. o = ToLua.ToObject(L, 1);
  92. RollingNumberText obj = (RollingNumberText)o;
  93. bool ret = obj.needOver;
  94. LuaDLL.lua_pushboolean(L, ret);
  95. return 1;
  96. }
  97. catch(Exception e)
  98. {
  99. return LuaDLL.toluaL_exception(L, e, o, "attempt to index needOver on a nil value");
  100. }
  101. }
  102. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  103. static int set_OnComplete(IntPtr L)
  104. {
  105. object o = null;
  106. try
  107. {
  108. o = ToLua.ToObject(L, 1);
  109. RollingNumberText obj = (RollingNumberText)o;
  110. System.Action arg0 = (System.Action)ToLua.CheckDelegate<System.Action>(L, 2);
  111. obj.OnComplete = arg0;
  112. return 0;
  113. }
  114. catch(Exception e)
  115. {
  116. return LuaDLL.toluaL_exception(L, e, o, "attempt to index OnComplete on a nil value");
  117. }
  118. }
  119. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  120. static int set_needOver(IntPtr L)
  121. {
  122. object o = null;
  123. try
  124. {
  125. o = ToLua.ToObject(L, 1);
  126. RollingNumberText obj = (RollingNumberText)o;
  127. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  128. obj.needOver = arg0;
  129. return 0;
  130. }
  131. catch(Exception e)
  132. {
  133. return LuaDLL.toluaL_exception(L, e, o, "attempt to index needOver on a nil value");
  134. }
  135. }
  136. }