ActorParamWrap.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class ActorParamWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(ActorParam), typeof(System.Object), "ActorParam");
  9. L.RegFunction("New", _CreateActorParam);
  10. L.RegFunction("__tostring", ToLua.op_ToString);
  11. L.RegVar("uid", get_uid, set_uid);
  12. L.RegVar("baseId", get_baseId, set_baseId);
  13. L.RegVar("level", get_level, set_level);
  14. L.RegVar("jobId", get_jobId, set_jobId);
  15. L.RegVar("petId", get_petId, set_petId);
  16. L.RegVar("isMainRole", get_isMainRole, set_isMainRole);
  17. L.RegVar("isRole", get_isRole, set_isRole);
  18. L.RegVar("headFrameId", get_headFrameId, set_headFrameId);
  19. L.RegVar("strengthLevel", get_strengthLevel, set_strengthLevel);
  20. L.RegVar("skills", get_skills, set_skills);
  21. L.RegVar("buffs", get_buffs, set_buffs);
  22. L.RegVar("fashion", get_fashion, set_fashion);
  23. L.EndClass();
  24. }
  25. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  26. static int _CreateActorParam(IntPtr L)
  27. {
  28. try
  29. {
  30. int count = LuaDLL.lua_gettop(L);
  31. if (count == 0)
  32. {
  33. ActorParam obj = new ActorParam();
  34. ToLua.PushObject(L, obj);
  35. return 1;
  36. }
  37. else
  38. {
  39. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: ActorParam.New");
  40. }
  41. }
  42. catch (Exception e)
  43. {
  44. return LuaDLL.toluaL_exception(L, e);
  45. }
  46. }
  47. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  48. static int get_uid(IntPtr L)
  49. {
  50. object o = null;
  51. try
  52. {
  53. o = ToLua.ToObject(L, 1);
  54. ActorParam obj = (ActorParam)o;
  55. int ret = obj.uid;
  56. LuaDLL.lua_pushinteger(L, ret);
  57. return 1;
  58. }
  59. catch(Exception e)
  60. {
  61. return LuaDLL.toluaL_exception(L, e, o, "attempt to index uid on a nil value");
  62. }
  63. }
  64. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  65. static int get_baseId(IntPtr L)
  66. {
  67. object o = null;
  68. try
  69. {
  70. o = ToLua.ToObject(L, 1);
  71. ActorParam obj = (ActorParam)o;
  72. int ret = obj.baseId;
  73. LuaDLL.lua_pushinteger(L, ret);
  74. return 1;
  75. }
  76. catch(Exception e)
  77. {
  78. return LuaDLL.toluaL_exception(L, e, o, "attempt to index baseId on a nil value");
  79. }
  80. }
  81. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  82. static int get_level(IntPtr L)
  83. {
  84. object o = null;
  85. try
  86. {
  87. o = ToLua.ToObject(L, 1);
  88. ActorParam obj = (ActorParam)o;
  89. int ret = obj.level;
  90. LuaDLL.lua_pushinteger(L, ret);
  91. return 1;
  92. }
  93. catch(Exception e)
  94. {
  95. return LuaDLL.toluaL_exception(L, e, o, "attempt to index level on a nil value");
  96. }
  97. }
  98. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  99. static int get_jobId(IntPtr L)
  100. {
  101. object o = null;
  102. try
  103. {
  104. o = ToLua.ToObject(L, 1);
  105. ActorParam obj = (ActorParam)o;
  106. int ret = obj.jobId;
  107. LuaDLL.lua_pushinteger(L, ret);
  108. return 1;
  109. }
  110. catch(Exception e)
  111. {
  112. return LuaDLL.toluaL_exception(L, e, o, "attempt to index jobId on a nil value");
  113. }
  114. }
  115. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  116. static int get_petId(IntPtr L)
  117. {
  118. object o = null;
  119. try
  120. {
  121. o = ToLua.ToObject(L, 1);
  122. ActorParam obj = (ActorParam)o;
  123. int ret = obj.petId;
  124. LuaDLL.lua_pushinteger(L, ret);
  125. return 1;
  126. }
  127. catch(Exception e)
  128. {
  129. return LuaDLL.toluaL_exception(L, e, o, "attempt to index petId on a nil value");
  130. }
  131. }
  132. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  133. static int get_isMainRole(IntPtr L)
  134. {
  135. object o = null;
  136. try
  137. {
  138. o = ToLua.ToObject(L, 1);
  139. ActorParam obj = (ActorParam)o;
  140. bool ret = obj.isMainRole;
  141. LuaDLL.lua_pushboolean(L, ret);
  142. return 1;
  143. }
  144. catch(Exception e)
  145. {
  146. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isMainRole on a nil value");
  147. }
  148. }
  149. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  150. static int get_isRole(IntPtr L)
  151. {
  152. object o = null;
  153. try
  154. {
  155. o = ToLua.ToObject(L, 1);
  156. ActorParam obj = (ActorParam)o;
  157. bool ret = obj.isRole;
  158. LuaDLL.lua_pushboolean(L, ret);
  159. return 1;
  160. }
  161. catch(Exception e)
  162. {
  163. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isRole on a nil value");
  164. }
  165. }
  166. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  167. static int get_headFrameId(IntPtr L)
  168. {
  169. object o = null;
  170. try
  171. {
  172. o = ToLua.ToObject(L, 1);
  173. ActorParam obj = (ActorParam)o;
  174. int ret = obj.headFrameId;
  175. LuaDLL.lua_pushinteger(L, ret);
  176. return 1;
  177. }
  178. catch(Exception e)
  179. {
  180. return LuaDLL.toluaL_exception(L, e, o, "attempt to index headFrameId on a nil value");
  181. }
  182. }
  183. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  184. static int get_strengthLevel(IntPtr L)
  185. {
  186. object o = null;
  187. try
  188. {
  189. o = ToLua.ToObject(L, 1);
  190. ActorParam obj = (ActorParam)o;
  191. int ret = obj.strengthLevel;
  192. LuaDLL.lua_pushinteger(L, ret);
  193. return 1;
  194. }
  195. catch(Exception e)
  196. {
  197. return LuaDLL.toluaL_exception(L, e, o, "attempt to index strengthLevel on a nil value");
  198. }
  199. }
  200. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  201. static int get_skills(IntPtr L)
  202. {
  203. object o = null;
  204. try
  205. {
  206. o = ToLua.ToObject(L, 1);
  207. ActorParam obj = (ActorParam)o;
  208. SkillParam[] ret = obj.skills;
  209. ToLua.Push(L, ret);
  210. return 1;
  211. }
  212. catch(Exception e)
  213. {
  214. return LuaDLL.toluaL_exception(L, e, o, "attempt to index skills on a nil value");
  215. }
  216. }
  217. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  218. static int get_buffs(IntPtr L)
  219. {
  220. object o = null;
  221. try
  222. {
  223. o = ToLua.ToObject(L, 1);
  224. ActorParam obj = (ActorParam)o;
  225. BuffParam[] ret = obj.buffs;
  226. ToLua.Push(L, ret);
  227. return 1;
  228. }
  229. catch(Exception e)
  230. {
  231. return LuaDLL.toluaL_exception(L, e, o, "attempt to index buffs on a nil value");
  232. }
  233. }
  234. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  235. static int get_fashion(IntPtr L)
  236. {
  237. object o = null;
  238. try
  239. {
  240. o = ToLua.ToObject(L, 1);
  241. ActorParam obj = (ActorParam)o;
  242. FashionParam ret = obj.fashion;
  243. ToLua.PushValue(L, ret);
  244. return 1;
  245. }
  246. catch(Exception e)
  247. {
  248. return LuaDLL.toluaL_exception(L, e, o, "attempt to index fashion on a nil value");
  249. }
  250. }
  251. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  252. static int set_uid(IntPtr L)
  253. {
  254. object o = null;
  255. try
  256. {
  257. o = ToLua.ToObject(L, 1);
  258. ActorParam obj = (ActorParam)o;
  259. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  260. obj.uid = arg0;
  261. return 0;
  262. }
  263. catch(Exception e)
  264. {
  265. return LuaDLL.toluaL_exception(L, e, o, "attempt to index uid on a nil value");
  266. }
  267. }
  268. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  269. static int set_baseId(IntPtr L)
  270. {
  271. object o = null;
  272. try
  273. {
  274. o = ToLua.ToObject(L, 1);
  275. ActorParam obj = (ActorParam)o;
  276. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  277. obj.baseId = arg0;
  278. return 0;
  279. }
  280. catch(Exception e)
  281. {
  282. return LuaDLL.toluaL_exception(L, e, o, "attempt to index baseId on a nil value");
  283. }
  284. }
  285. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  286. static int set_level(IntPtr L)
  287. {
  288. object o = null;
  289. try
  290. {
  291. o = ToLua.ToObject(L, 1);
  292. ActorParam obj = (ActorParam)o;
  293. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  294. obj.level = arg0;
  295. return 0;
  296. }
  297. catch(Exception e)
  298. {
  299. return LuaDLL.toluaL_exception(L, e, o, "attempt to index level on a nil value");
  300. }
  301. }
  302. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  303. static int set_jobId(IntPtr L)
  304. {
  305. object o = null;
  306. try
  307. {
  308. o = ToLua.ToObject(L, 1);
  309. ActorParam obj = (ActorParam)o;
  310. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  311. obj.jobId = arg0;
  312. return 0;
  313. }
  314. catch(Exception e)
  315. {
  316. return LuaDLL.toluaL_exception(L, e, o, "attempt to index jobId on a nil value");
  317. }
  318. }
  319. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  320. static int set_petId(IntPtr L)
  321. {
  322. object o = null;
  323. try
  324. {
  325. o = ToLua.ToObject(L, 1);
  326. ActorParam obj = (ActorParam)o;
  327. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  328. obj.petId = arg0;
  329. return 0;
  330. }
  331. catch(Exception e)
  332. {
  333. return LuaDLL.toluaL_exception(L, e, o, "attempt to index petId on a nil value");
  334. }
  335. }
  336. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  337. static int set_isMainRole(IntPtr L)
  338. {
  339. object o = null;
  340. try
  341. {
  342. o = ToLua.ToObject(L, 1);
  343. ActorParam obj = (ActorParam)o;
  344. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  345. obj.isMainRole = arg0;
  346. return 0;
  347. }
  348. catch(Exception e)
  349. {
  350. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isMainRole on a nil value");
  351. }
  352. }
  353. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  354. static int set_isRole(IntPtr L)
  355. {
  356. object o = null;
  357. try
  358. {
  359. o = ToLua.ToObject(L, 1);
  360. ActorParam obj = (ActorParam)o;
  361. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  362. obj.isRole = arg0;
  363. return 0;
  364. }
  365. catch(Exception e)
  366. {
  367. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isRole on a nil value");
  368. }
  369. }
  370. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  371. static int set_headFrameId(IntPtr L)
  372. {
  373. object o = null;
  374. try
  375. {
  376. o = ToLua.ToObject(L, 1);
  377. ActorParam obj = (ActorParam)o;
  378. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  379. obj.headFrameId = arg0;
  380. return 0;
  381. }
  382. catch(Exception e)
  383. {
  384. return LuaDLL.toluaL_exception(L, e, o, "attempt to index headFrameId on a nil value");
  385. }
  386. }
  387. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  388. static int set_strengthLevel(IntPtr L)
  389. {
  390. object o = null;
  391. try
  392. {
  393. o = ToLua.ToObject(L, 1);
  394. ActorParam obj = (ActorParam)o;
  395. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  396. obj.strengthLevel = arg0;
  397. return 0;
  398. }
  399. catch(Exception e)
  400. {
  401. return LuaDLL.toluaL_exception(L, e, o, "attempt to index strengthLevel on a nil value");
  402. }
  403. }
  404. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  405. static int set_skills(IntPtr L)
  406. {
  407. object o = null;
  408. try
  409. {
  410. o = ToLua.ToObject(L, 1);
  411. ActorParam obj = (ActorParam)o;
  412. SkillParam[] arg0 = ToLua.CheckStructArray<SkillParam>(L, 2);
  413. obj.skills = arg0;
  414. return 0;
  415. }
  416. catch(Exception e)
  417. {
  418. return LuaDLL.toluaL_exception(L, e, o, "attempt to index skills on a nil value");
  419. }
  420. }
  421. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  422. static int set_buffs(IntPtr L)
  423. {
  424. object o = null;
  425. try
  426. {
  427. o = ToLua.ToObject(L, 1);
  428. ActorParam obj = (ActorParam)o;
  429. BuffParam[] arg0 = ToLua.CheckStructArray<BuffParam>(L, 2);
  430. obj.buffs = arg0;
  431. return 0;
  432. }
  433. catch(Exception e)
  434. {
  435. return LuaDLL.toluaL_exception(L, e, o, "attempt to index buffs on a nil value");
  436. }
  437. }
  438. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  439. static int set_fashion(IntPtr L)
  440. {
  441. object o = null;
  442. try
  443. {
  444. o = ToLua.ToObject(L, 1);
  445. ActorParam obj = (ActorParam)o;
  446. FashionParam arg0 = StackTraits<FashionParam>.Check(L, 2);
  447. obj.fashion = arg0;
  448. return 0;
  449. }
  450. catch(Exception e)
  451. {
  452. return LuaDLL.toluaL_exception(L, e, o, "attempt to index fashion on a nil value");
  453. }
  454. }
  455. }