LuaConstWrap.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class LuaConstWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginStaticLibs("LuaConst");
  9. L.RegVar("luaDir", get_luaDir, set_luaDir);
  10. L.RegVar("toluaDir", get_toluaDir, set_toluaDir);
  11. L.RegVar("osDir", get_osDir, set_osDir);
  12. L.RegVar("luaResDir", get_luaResDir, set_luaResDir);
  13. L.RegVar("zbsDir", get_zbsDir, set_zbsDir);
  14. L.RegVar("openLuaSocket", get_openLuaSocket, set_openLuaSocket);
  15. L.RegVar("openLuaDebugger", get_openLuaDebugger, set_openLuaDebugger);
  16. L.EndStaticLibs();
  17. }
  18. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  19. static int get_luaDir(IntPtr L)
  20. {
  21. try
  22. {
  23. LuaDLL.lua_pushstring(L, LuaConst.luaDir);
  24. return 1;
  25. }
  26. catch (Exception e)
  27. {
  28. return LuaDLL.toluaL_exception(L, e);
  29. }
  30. }
  31. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  32. static int get_toluaDir(IntPtr L)
  33. {
  34. try
  35. {
  36. LuaDLL.lua_pushstring(L, LuaConst.toluaDir);
  37. return 1;
  38. }
  39. catch (Exception e)
  40. {
  41. return LuaDLL.toluaL_exception(L, e);
  42. }
  43. }
  44. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  45. static int get_osDir(IntPtr L)
  46. {
  47. try
  48. {
  49. LuaDLL.lua_pushstring(L, LuaConst.osDir);
  50. return 1;
  51. }
  52. catch (Exception e)
  53. {
  54. return LuaDLL.toluaL_exception(L, e);
  55. }
  56. }
  57. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  58. static int get_luaResDir(IntPtr L)
  59. {
  60. try
  61. {
  62. LuaDLL.lua_pushstring(L, LuaConst.luaResDir);
  63. return 1;
  64. }
  65. catch (Exception e)
  66. {
  67. return LuaDLL.toluaL_exception(L, e);
  68. }
  69. }
  70. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  71. static int get_zbsDir(IntPtr L)
  72. {
  73. try
  74. {
  75. LuaDLL.lua_pushstring(L, LuaConst.zbsDir);
  76. return 1;
  77. }
  78. catch (Exception e)
  79. {
  80. return LuaDLL.toluaL_exception(L, e);
  81. }
  82. }
  83. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  84. static int get_openLuaSocket(IntPtr L)
  85. {
  86. try
  87. {
  88. LuaDLL.lua_pushboolean(L, LuaConst.openLuaSocket);
  89. return 1;
  90. }
  91. catch (Exception e)
  92. {
  93. return LuaDLL.toluaL_exception(L, e);
  94. }
  95. }
  96. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  97. static int get_openLuaDebugger(IntPtr L)
  98. {
  99. try
  100. {
  101. LuaDLL.lua_pushboolean(L, LuaConst.openLuaDebugger);
  102. return 1;
  103. }
  104. catch (Exception e)
  105. {
  106. return LuaDLL.toluaL_exception(L, e);
  107. }
  108. }
  109. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  110. static int set_luaDir(IntPtr L)
  111. {
  112. try
  113. {
  114. string arg0 = ToLua.CheckString(L, 2);
  115. LuaConst.luaDir = arg0;
  116. return 0;
  117. }
  118. catch (Exception e)
  119. {
  120. return LuaDLL.toluaL_exception(L, e);
  121. }
  122. }
  123. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  124. static int set_toluaDir(IntPtr L)
  125. {
  126. try
  127. {
  128. string arg0 = ToLua.CheckString(L, 2);
  129. LuaConst.toluaDir = arg0;
  130. return 0;
  131. }
  132. catch (Exception e)
  133. {
  134. return LuaDLL.toluaL_exception(L, e);
  135. }
  136. }
  137. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  138. static int set_osDir(IntPtr L)
  139. {
  140. try
  141. {
  142. string arg0 = ToLua.CheckString(L, 2);
  143. LuaConst.osDir = arg0;
  144. return 0;
  145. }
  146. catch (Exception e)
  147. {
  148. return LuaDLL.toluaL_exception(L, e);
  149. }
  150. }
  151. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  152. static int set_luaResDir(IntPtr L)
  153. {
  154. try
  155. {
  156. string arg0 = ToLua.CheckString(L, 2);
  157. LuaConst.luaResDir = arg0;
  158. return 0;
  159. }
  160. catch (Exception e)
  161. {
  162. return LuaDLL.toluaL_exception(L, e);
  163. }
  164. }
  165. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  166. static int set_zbsDir(IntPtr L)
  167. {
  168. try
  169. {
  170. string arg0 = ToLua.CheckString(L, 2);
  171. LuaConst.zbsDir = arg0;
  172. return 0;
  173. }
  174. catch (Exception e)
  175. {
  176. return LuaDLL.toluaL_exception(L, e);
  177. }
  178. }
  179. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  180. static int set_openLuaSocket(IntPtr L)
  181. {
  182. try
  183. {
  184. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  185. LuaConst.openLuaSocket = arg0;
  186. return 0;
  187. }
  188. catch (Exception e)
  189. {
  190. return LuaDLL.toluaL_exception(L, e);
  191. }
  192. }
  193. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  194. static int set_openLuaDebugger(IntPtr L)
  195. {
  196. try
  197. {
  198. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  199. LuaConst.openLuaDebugger = arg0;
  200. return 0;
  201. }
  202. catch (Exception e)
  203. {
  204. return LuaDLL.toluaL_exception(L, e);
  205. }
  206. }
  207. }