CheckInputLengthWrap.cs 3.5 KB

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