OutputInfoWrap.cs 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class OutputInfoWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(OutputInfo), null);
  9. L.RegFunction("New", _CreateOutputInfo);
  10. L.RegFunction("__tostring", ToLua.op_ToString);
  11. L.RegVar("type", get_type, set_type);
  12. L.RegVar("timeStr", get_timeStr, set_timeStr);
  13. L.RegVar("casterName", get_casterName, set_casterName);
  14. L.RegVar("targetName", get_targetName, set_targetName);
  15. L.RegVar("skillName", get_skillName, set_skillName);
  16. L.RegVar("val", get_val, set_val);
  17. L.EndClass();
  18. }
  19. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  20. static int _CreateOutputInfo(IntPtr L)
  21. {
  22. try
  23. {
  24. int count = LuaDLL.lua_gettop(L);
  25. if (count == 1)
  26. {
  27. OutputType arg0 = (OutputType)ToLua.CheckObject(L, 1, typeof(OutputType));
  28. OutputInfo obj = new OutputInfo(arg0);
  29. ToLua.PushValue(L, obj);
  30. return 1;
  31. }
  32. else if (count == 0)
  33. {
  34. OutputInfo obj = new OutputInfo();
  35. ToLua.PushValue(L, obj);
  36. return 1;
  37. }
  38. else
  39. {
  40. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: OutputInfo.New");
  41. }
  42. }
  43. catch (Exception e)
  44. {
  45. return LuaDLL.toluaL_exception(L, e);
  46. }
  47. }
  48. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  49. static int get_type(IntPtr L)
  50. {
  51. object o = null;
  52. try
  53. {
  54. o = ToLua.ToObject(L, 1);
  55. OutputInfo obj = (OutputInfo)o;
  56. OutputType ret = obj.type;
  57. ToLua.Push(L, ret);
  58. return 1;
  59. }
  60. catch(Exception e)
  61. {
  62. return LuaDLL.toluaL_exception(L, e, o, "attempt to index type on a nil value");
  63. }
  64. }
  65. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  66. static int get_timeStr(IntPtr L)
  67. {
  68. object o = null;
  69. try
  70. {
  71. o = ToLua.ToObject(L, 1);
  72. OutputInfo obj = (OutputInfo)o;
  73. string ret = obj.timeStr;
  74. LuaDLL.lua_pushstring(L, ret);
  75. return 1;
  76. }
  77. catch(Exception e)
  78. {
  79. return LuaDLL.toluaL_exception(L, e, o, "attempt to index timeStr on a nil value");
  80. }
  81. }
  82. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  83. static int get_casterName(IntPtr L)
  84. {
  85. object o = null;
  86. try
  87. {
  88. o = ToLua.ToObject(L, 1);
  89. OutputInfo obj = (OutputInfo)o;
  90. string ret = obj.casterName;
  91. LuaDLL.lua_pushstring(L, ret);
  92. return 1;
  93. }
  94. catch(Exception e)
  95. {
  96. return LuaDLL.toluaL_exception(L, e, o, "attempt to index casterName on a nil value");
  97. }
  98. }
  99. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  100. static int get_targetName(IntPtr L)
  101. {
  102. object o = null;
  103. try
  104. {
  105. o = ToLua.ToObject(L, 1);
  106. OutputInfo obj = (OutputInfo)o;
  107. string ret = obj.targetName;
  108. LuaDLL.lua_pushstring(L, ret);
  109. return 1;
  110. }
  111. catch(Exception e)
  112. {
  113. return LuaDLL.toluaL_exception(L, e, o, "attempt to index targetName on a nil value");
  114. }
  115. }
  116. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  117. static int get_skillName(IntPtr L)
  118. {
  119. object o = null;
  120. try
  121. {
  122. o = ToLua.ToObject(L, 1);
  123. OutputInfo obj = (OutputInfo)o;
  124. string ret = obj.skillName;
  125. LuaDLL.lua_pushstring(L, ret);
  126. return 1;
  127. }
  128. catch(Exception e)
  129. {
  130. return LuaDLL.toluaL_exception(L, e, o, "attempt to index skillName on a nil value");
  131. }
  132. }
  133. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  134. static int get_val(IntPtr L)
  135. {
  136. object o = null;
  137. try
  138. {
  139. o = ToLua.ToObject(L, 1);
  140. OutputInfo obj = (OutputInfo)o;
  141. object ret = obj.val;
  142. ToLua.Push(L, ret);
  143. return 1;
  144. }
  145. catch(Exception e)
  146. {
  147. return LuaDLL.toluaL_exception(L, e, o, "attempt to index val on a nil value");
  148. }
  149. }
  150. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  151. static int set_type(IntPtr L)
  152. {
  153. object o = null;
  154. try
  155. {
  156. o = ToLua.ToObject(L, 1);
  157. OutputInfo obj = (OutputInfo)o;
  158. OutputType arg0 = (OutputType)ToLua.CheckObject(L, 2, typeof(OutputType));
  159. obj.type = arg0;
  160. ToLua.SetBack(L, 1, obj);
  161. return 0;
  162. }
  163. catch(Exception e)
  164. {
  165. return LuaDLL.toluaL_exception(L, e, o, "attempt to index type on a nil value");
  166. }
  167. }
  168. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  169. static int set_timeStr(IntPtr L)
  170. {
  171. object o = null;
  172. try
  173. {
  174. o = ToLua.ToObject(L, 1);
  175. OutputInfo obj = (OutputInfo)o;
  176. string arg0 = ToLua.CheckString(L, 2);
  177. obj.timeStr = arg0;
  178. ToLua.SetBack(L, 1, obj);
  179. return 0;
  180. }
  181. catch(Exception e)
  182. {
  183. return LuaDLL.toluaL_exception(L, e, o, "attempt to index timeStr on a nil value");
  184. }
  185. }
  186. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  187. static int set_casterName(IntPtr L)
  188. {
  189. object o = null;
  190. try
  191. {
  192. o = ToLua.ToObject(L, 1);
  193. OutputInfo obj = (OutputInfo)o;
  194. string arg0 = ToLua.CheckString(L, 2);
  195. obj.casterName = arg0;
  196. ToLua.SetBack(L, 1, obj);
  197. return 0;
  198. }
  199. catch(Exception e)
  200. {
  201. return LuaDLL.toluaL_exception(L, e, o, "attempt to index casterName on a nil value");
  202. }
  203. }
  204. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  205. static int set_targetName(IntPtr L)
  206. {
  207. object o = null;
  208. try
  209. {
  210. o = ToLua.ToObject(L, 1);
  211. OutputInfo obj = (OutputInfo)o;
  212. string arg0 = ToLua.CheckString(L, 2);
  213. obj.targetName = arg0;
  214. ToLua.SetBack(L, 1, obj);
  215. return 0;
  216. }
  217. catch(Exception e)
  218. {
  219. return LuaDLL.toluaL_exception(L, e, o, "attempt to index targetName on a nil value");
  220. }
  221. }
  222. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  223. static int set_skillName(IntPtr L)
  224. {
  225. object o = null;
  226. try
  227. {
  228. o = ToLua.ToObject(L, 1);
  229. OutputInfo obj = (OutputInfo)o;
  230. string arg0 = ToLua.CheckString(L, 2);
  231. obj.skillName = arg0;
  232. ToLua.SetBack(L, 1, obj);
  233. return 0;
  234. }
  235. catch(Exception e)
  236. {
  237. return LuaDLL.toluaL_exception(L, e, o, "attempt to index skillName on a nil value");
  238. }
  239. }
  240. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  241. static int set_val(IntPtr L)
  242. {
  243. object o = null;
  244. try
  245. {
  246. o = ToLua.ToObject(L, 1);
  247. OutputInfo obj = (OutputInfo)o;
  248. object arg0 = ToLua.ToVarObject(L, 2);
  249. obj.val = arg0;
  250. ToLua.SetBack(L, 1, obj);
  251. return 0;
  252. }
  253. catch(Exception e)
  254. {
  255. return LuaDLL.toluaL_exception(L, e, o, "attempt to index val on a nil value");
  256. }
  257. }
  258. }