GameRoleInfoWrap.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class GameRoleInfoWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(GameRoleInfo), typeof(System.Object));
  9. L.RegFunction("Valid", Valid);
  10. L.RegFunction("New", _CreateGameRoleInfo);
  11. L.RegFunction("__tostring", ToLua.op_ToString);
  12. L.RegVar("openId", get_openId, set_openId);
  13. L.RegVar("serverId", get_serverId, set_serverId);
  14. L.RegVar("serverName", get_serverName, set_serverName);
  15. L.RegVar("roleId", get_roleId, set_roleId);
  16. L.RegVar("roleLv", get_roleLv, set_roleLv);
  17. L.RegVar("roleCreateTime", get_roleCreateTime, set_roleCreateTime);
  18. L.RegVar("roleUpLvTime", get_roleUpLvTime, set_roleUpLvTime);
  19. L.RegVar("vipLv", get_vipLv, set_vipLv);
  20. L.RegVar("gender", get_gender, set_gender);
  21. L.RegVar("jobId", get_jobId, set_jobId);
  22. L.RegVar("jobName", get_jobName, set_jobName);
  23. L.RegVar("guildId", get_guildId, set_guildId);
  24. L.RegVar("guildName", get_guildName, set_guildName);
  25. L.RegVar("fightPower", get_fightPower, set_fightPower);
  26. L.RegVar("balance", get_balance, set_balance);
  27. L.RegVar("lastLogoutTime", get_lastLogoutTime, set_lastLogoutTime);
  28. L.RegVar("loginTime", get_loginTime, set_loginTime);
  29. L.RegVar("openServerTime", get_openServerTime, set_openServerTime);
  30. L.RegVar("roleName", get_roleName, set_roleName);
  31. L.EndClass();
  32. }
  33. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  34. static int _CreateGameRoleInfo(IntPtr L)
  35. {
  36. try
  37. {
  38. int count = LuaDLL.lua_gettop(L);
  39. if (count == 0)
  40. {
  41. GameRoleInfo obj = new GameRoleInfo();
  42. ToLua.PushObject(L, obj);
  43. return 1;
  44. }
  45. else
  46. {
  47. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: GameRoleInfo.New");
  48. }
  49. }
  50. catch (Exception e)
  51. {
  52. return LuaDLL.toluaL_exception(L, e);
  53. }
  54. }
  55. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  56. static int Valid(IntPtr L)
  57. {
  58. try
  59. {
  60. ToLua.CheckArgsCount(L, 1);
  61. GameRoleInfo obj = (GameRoleInfo)ToLua.CheckObject<GameRoleInfo>(L, 1);
  62. bool o = obj.Valid();
  63. LuaDLL.lua_pushboolean(L, o);
  64. return 1;
  65. }
  66. catch (Exception e)
  67. {
  68. return LuaDLL.toluaL_exception(L, e);
  69. }
  70. }
  71. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  72. static int get_openId(IntPtr L)
  73. {
  74. object o = null;
  75. try
  76. {
  77. o = ToLua.ToObject(L, 1);
  78. GameRoleInfo obj = (GameRoleInfo)o;
  79. string ret = obj.openId;
  80. LuaDLL.lua_pushstring(L, ret);
  81. return 1;
  82. }
  83. catch(Exception e)
  84. {
  85. return LuaDLL.toluaL_exception(L, e, o, "attempt to index openId on a nil value");
  86. }
  87. }
  88. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  89. static int get_serverId(IntPtr L)
  90. {
  91. object o = null;
  92. try
  93. {
  94. o = ToLua.ToObject(L, 1);
  95. GameRoleInfo obj = (GameRoleInfo)o;
  96. int ret = obj.serverId;
  97. LuaDLL.lua_pushinteger(L, ret);
  98. return 1;
  99. }
  100. catch(Exception e)
  101. {
  102. return LuaDLL.toluaL_exception(L, e, o, "attempt to index serverId on a nil value");
  103. }
  104. }
  105. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  106. static int get_serverName(IntPtr L)
  107. {
  108. object o = null;
  109. try
  110. {
  111. o = ToLua.ToObject(L, 1);
  112. GameRoleInfo obj = (GameRoleInfo)o;
  113. string ret = obj.serverName;
  114. LuaDLL.lua_pushstring(L, ret);
  115. return 1;
  116. }
  117. catch(Exception e)
  118. {
  119. return LuaDLL.toluaL_exception(L, e, o, "attempt to index serverName on a nil value");
  120. }
  121. }
  122. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  123. static int get_roleId(IntPtr L)
  124. {
  125. object o = null;
  126. try
  127. {
  128. o = ToLua.ToObject(L, 1);
  129. GameRoleInfo obj = (GameRoleInfo)o;
  130. string ret = obj.roleId;
  131. LuaDLL.lua_pushstring(L, ret);
  132. return 1;
  133. }
  134. catch(Exception e)
  135. {
  136. return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleId on a nil value");
  137. }
  138. }
  139. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  140. static int get_roleLv(IntPtr L)
  141. {
  142. object o = null;
  143. try
  144. {
  145. o = ToLua.ToObject(L, 1);
  146. GameRoleInfo obj = (GameRoleInfo)o;
  147. int ret = obj.roleLv;
  148. LuaDLL.lua_pushinteger(L, ret);
  149. return 1;
  150. }
  151. catch(Exception e)
  152. {
  153. return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleLv on a nil value");
  154. }
  155. }
  156. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  157. static int get_roleCreateTime(IntPtr L)
  158. {
  159. object o = null;
  160. try
  161. {
  162. o = ToLua.ToObject(L, 1);
  163. GameRoleInfo obj = (GameRoleInfo)o;
  164. long ret = obj.roleCreateTime;
  165. LuaDLL.tolua_pushint64(L, ret);
  166. return 1;
  167. }
  168. catch(Exception e)
  169. {
  170. return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleCreateTime on a nil value");
  171. }
  172. }
  173. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  174. static int get_roleUpLvTime(IntPtr L)
  175. {
  176. object o = null;
  177. try
  178. {
  179. o = ToLua.ToObject(L, 1);
  180. GameRoleInfo obj = (GameRoleInfo)o;
  181. long ret = obj.roleUpLvTime;
  182. LuaDLL.tolua_pushint64(L, ret);
  183. return 1;
  184. }
  185. catch(Exception e)
  186. {
  187. return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleUpLvTime on a nil value");
  188. }
  189. }
  190. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  191. static int get_vipLv(IntPtr L)
  192. {
  193. object o = null;
  194. try
  195. {
  196. o = ToLua.ToObject(L, 1);
  197. GameRoleInfo obj = (GameRoleInfo)o;
  198. int ret = obj.vipLv;
  199. LuaDLL.lua_pushinteger(L, ret);
  200. return 1;
  201. }
  202. catch(Exception e)
  203. {
  204. return LuaDLL.toluaL_exception(L, e, o, "attempt to index vipLv on a nil value");
  205. }
  206. }
  207. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  208. static int get_gender(IntPtr L)
  209. {
  210. object o = null;
  211. try
  212. {
  213. o = ToLua.ToObject(L, 1);
  214. GameRoleInfo obj = (GameRoleInfo)o;
  215. int ret = obj.gender;
  216. LuaDLL.lua_pushinteger(L, ret);
  217. return 1;
  218. }
  219. catch(Exception e)
  220. {
  221. return LuaDLL.toluaL_exception(L, e, o, "attempt to index gender on a nil value");
  222. }
  223. }
  224. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  225. static int get_jobId(IntPtr L)
  226. {
  227. object o = null;
  228. try
  229. {
  230. o = ToLua.ToObject(L, 1);
  231. GameRoleInfo obj = (GameRoleInfo)o;
  232. int ret = obj.jobId;
  233. LuaDLL.lua_pushinteger(L, ret);
  234. return 1;
  235. }
  236. catch(Exception e)
  237. {
  238. return LuaDLL.toluaL_exception(L, e, o, "attempt to index jobId on a nil value");
  239. }
  240. }
  241. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  242. static int get_jobName(IntPtr L)
  243. {
  244. object o = null;
  245. try
  246. {
  247. o = ToLua.ToObject(L, 1);
  248. GameRoleInfo obj = (GameRoleInfo)o;
  249. string ret = obj.jobName;
  250. LuaDLL.lua_pushstring(L, ret);
  251. return 1;
  252. }
  253. catch(Exception e)
  254. {
  255. return LuaDLL.toluaL_exception(L, e, o, "attempt to index jobName on a nil value");
  256. }
  257. }
  258. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  259. static int get_guildId(IntPtr L)
  260. {
  261. object o = null;
  262. try
  263. {
  264. o = ToLua.ToObject(L, 1);
  265. GameRoleInfo obj = (GameRoleInfo)o;
  266. long ret = obj.guildId;
  267. LuaDLL.tolua_pushint64(L, ret);
  268. return 1;
  269. }
  270. catch(Exception e)
  271. {
  272. return LuaDLL.toluaL_exception(L, e, o, "attempt to index guildId on a nil value");
  273. }
  274. }
  275. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  276. static int get_guildName(IntPtr L)
  277. {
  278. object o = null;
  279. try
  280. {
  281. o = ToLua.ToObject(L, 1);
  282. GameRoleInfo obj = (GameRoleInfo)o;
  283. string ret = obj.guildName;
  284. LuaDLL.lua_pushstring(L, ret);
  285. return 1;
  286. }
  287. catch(Exception e)
  288. {
  289. return LuaDLL.toluaL_exception(L, e, o, "attempt to index guildName on a nil value");
  290. }
  291. }
  292. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  293. static int get_fightPower(IntPtr L)
  294. {
  295. object o = null;
  296. try
  297. {
  298. o = ToLua.ToObject(L, 1);
  299. GameRoleInfo obj = (GameRoleInfo)o;
  300. int ret = obj.fightPower;
  301. LuaDLL.lua_pushinteger(L, ret);
  302. return 1;
  303. }
  304. catch(Exception e)
  305. {
  306. return LuaDLL.toluaL_exception(L, e, o, "attempt to index fightPower on a nil value");
  307. }
  308. }
  309. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  310. static int get_balance(IntPtr L)
  311. {
  312. object o = null;
  313. try
  314. {
  315. o = ToLua.ToObject(L, 1);
  316. GameRoleInfo obj = (GameRoleInfo)o;
  317. string ret = obj.balance;
  318. LuaDLL.lua_pushstring(L, ret);
  319. return 1;
  320. }
  321. catch(Exception e)
  322. {
  323. return LuaDLL.toluaL_exception(L, e, o, "attempt to index balance on a nil value");
  324. }
  325. }
  326. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  327. static int get_lastLogoutTime(IntPtr L)
  328. {
  329. object o = null;
  330. try
  331. {
  332. o = ToLua.ToObject(L, 1);
  333. GameRoleInfo obj = (GameRoleInfo)o;
  334. long ret = obj.lastLogoutTime;
  335. LuaDLL.tolua_pushint64(L, ret);
  336. return 1;
  337. }
  338. catch(Exception e)
  339. {
  340. return LuaDLL.toluaL_exception(L, e, o, "attempt to index lastLogoutTime on a nil value");
  341. }
  342. }
  343. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  344. static int get_loginTime(IntPtr L)
  345. {
  346. object o = null;
  347. try
  348. {
  349. o = ToLua.ToObject(L, 1);
  350. GameRoleInfo obj = (GameRoleInfo)o;
  351. long ret = obj.loginTime;
  352. LuaDLL.tolua_pushint64(L, ret);
  353. return 1;
  354. }
  355. catch(Exception e)
  356. {
  357. return LuaDLL.toluaL_exception(L, e, o, "attempt to index loginTime on a nil value");
  358. }
  359. }
  360. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  361. static int get_openServerTime(IntPtr L)
  362. {
  363. object o = null;
  364. try
  365. {
  366. o = ToLua.ToObject(L, 1);
  367. GameRoleInfo obj = (GameRoleInfo)o;
  368. long ret = obj.openServerTime;
  369. LuaDLL.tolua_pushint64(L, ret);
  370. return 1;
  371. }
  372. catch(Exception e)
  373. {
  374. return LuaDLL.toluaL_exception(L, e, o, "attempt to index openServerTime on a nil value");
  375. }
  376. }
  377. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  378. static int get_roleName(IntPtr L)
  379. {
  380. object o = null;
  381. try
  382. {
  383. o = ToLua.ToObject(L, 1);
  384. GameRoleInfo obj = (GameRoleInfo)o;
  385. string ret = obj.roleName;
  386. LuaDLL.lua_pushstring(L, ret);
  387. return 1;
  388. }
  389. catch(Exception e)
  390. {
  391. return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleName on a nil value");
  392. }
  393. }
  394. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  395. static int set_openId(IntPtr L)
  396. {
  397. object o = null;
  398. try
  399. {
  400. o = ToLua.ToObject(L, 1);
  401. GameRoleInfo obj = (GameRoleInfo)o;
  402. string arg0 = ToLua.CheckString(L, 2);
  403. obj.openId = arg0;
  404. return 0;
  405. }
  406. catch(Exception e)
  407. {
  408. return LuaDLL.toluaL_exception(L, e, o, "attempt to index openId on a nil value");
  409. }
  410. }
  411. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  412. static int set_serverId(IntPtr L)
  413. {
  414. object o = null;
  415. try
  416. {
  417. o = ToLua.ToObject(L, 1);
  418. GameRoleInfo obj = (GameRoleInfo)o;
  419. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  420. obj.serverId = arg0;
  421. return 0;
  422. }
  423. catch(Exception e)
  424. {
  425. return LuaDLL.toluaL_exception(L, e, o, "attempt to index serverId on a nil value");
  426. }
  427. }
  428. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  429. static int set_serverName(IntPtr L)
  430. {
  431. object o = null;
  432. try
  433. {
  434. o = ToLua.ToObject(L, 1);
  435. GameRoleInfo obj = (GameRoleInfo)o;
  436. string arg0 = ToLua.CheckString(L, 2);
  437. obj.serverName = arg0;
  438. return 0;
  439. }
  440. catch(Exception e)
  441. {
  442. return LuaDLL.toluaL_exception(L, e, o, "attempt to index serverName on a nil value");
  443. }
  444. }
  445. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  446. static int set_roleId(IntPtr L)
  447. {
  448. object o = null;
  449. try
  450. {
  451. o = ToLua.ToObject(L, 1);
  452. GameRoleInfo obj = (GameRoleInfo)o;
  453. string arg0 = ToLua.CheckString(L, 2);
  454. obj.roleId = arg0;
  455. return 0;
  456. }
  457. catch(Exception e)
  458. {
  459. return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleId on a nil value");
  460. }
  461. }
  462. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  463. static int set_roleLv(IntPtr L)
  464. {
  465. object o = null;
  466. try
  467. {
  468. o = ToLua.ToObject(L, 1);
  469. GameRoleInfo obj = (GameRoleInfo)o;
  470. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  471. obj.roleLv = arg0;
  472. return 0;
  473. }
  474. catch(Exception e)
  475. {
  476. return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleLv on a nil value");
  477. }
  478. }
  479. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  480. static int set_roleCreateTime(IntPtr L)
  481. {
  482. object o = null;
  483. try
  484. {
  485. o = ToLua.ToObject(L, 1);
  486. GameRoleInfo obj = (GameRoleInfo)o;
  487. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  488. obj.roleCreateTime = arg0;
  489. return 0;
  490. }
  491. catch(Exception e)
  492. {
  493. return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleCreateTime on a nil value");
  494. }
  495. }
  496. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  497. static int set_roleUpLvTime(IntPtr L)
  498. {
  499. object o = null;
  500. try
  501. {
  502. o = ToLua.ToObject(L, 1);
  503. GameRoleInfo obj = (GameRoleInfo)o;
  504. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  505. obj.roleUpLvTime = arg0;
  506. return 0;
  507. }
  508. catch(Exception e)
  509. {
  510. return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleUpLvTime on a nil value");
  511. }
  512. }
  513. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  514. static int set_vipLv(IntPtr L)
  515. {
  516. object o = null;
  517. try
  518. {
  519. o = ToLua.ToObject(L, 1);
  520. GameRoleInfo obj = (GameRoleInfo)o;
  521. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  522. obj.vipLv = arg0;
  523. return 0;
  524. }
  525. catch(Exception e)
  526. {
  527. return LuaDLL.toluaL_exception(L, e, o, "attempt to index vipLv on a nil value");
  528. }
  529. }
  530. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  531. static int set_gender(IntPtr L)
  532. {
  533. object o = null;
  534. try
  535. {
  536. o = ToLua.ToObject(L, 1);
  537. GameRoleInfo obj = (GameRoleInfo)o;
  538. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  539. obj.gender = arg0;
  540. return 0;
  541. }
  542. catch(Exception e)
  543. {
  544. return LuaDLL.toluaL_exception(L, e, o, "attempt to index gender on a nil value");
  545. }
  546. }
  547. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  548. static int set_jobId(IntPtr L)
  549. {
  550. object o = null;
  551. try
  552. {
  553. o = ToLua.ToObject(L, 1);
  554. GameRoleInfo obj = (GameRoleInfo)o;
  555. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  556. obj.jobId = arg0;
  557. return 0;
  558. }
  559. catch(Exception e)
  560. {
  561. return LuaDLL.toluaL_exception(L, e, o, "attempt to index jobId on a nil value");
  562. }
  563. }
  564. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  565. static int set_jobName(IntPtr L)
  566. {
  567. object o = null;
  568. try
  569. {
  570. o = ToLua.ToObject(L, 1);
  571. GameRoleInfo obj = (GameRoleInfo)o;
  572. string arg0 = ToLua.CheckString(L, 2);
  573. obj.jobName = arg0;
  574. return 0;
  575. }
  576. catch(Exception e)
  577. {
  578. return LuaDLL.toluaL_exception(L, e, o, "attempt to index jobName on a nil value");
  579. }
  580. }
  581. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  582. static int set_guildId(IntPtr L)
  583. {
  584. object o = null;
  585. try
  586. {
  587. o = ToLua.ToObject(L, 1);
  588. GameRoleInfo obj = (GameRoleInfo)o;
  589. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  590. obj.guildId = arg0;
  591. return 0;
  592. }
  593. catch(Exception e)
  594. {
  595. return LuaDLL.toluaL_exception(L, e, o, "attempt to index guildId on a nil value");
  596. }
  597. }
  598. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  599. static int set_guildName(IntPtr L)
  600. {
  601. object o = null;
  602. try
  603. {
  604. o = ToLua.ToObject(L, 1);
  605. GameRoleInfo obj = (GameRoleInfo)o;
  606. string arg0 = ToLua.CheckString(L, 2);
  607. obj.guildName = arg0;
  608. return 0;
  609. }
  610. catch(Exception e)
  611. {
  612. return LuaDLL.toluaL_exception(L, e, o, "attempt to index guildName on a nil value");
  613. }
  614. }
  615. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  616. static int set_fightPower(IntPtr L)
  617. {
  618. object o = null;
  619. try
  620. {
  621. o = ToLua.ToObject(L, 1);
  622. GameRoleInfo obj = (GameRoleInfo)o;
  623. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  624. obj.fightPower = arg0;
  625. return 0;
  626. }
  627. catch(Exception e)
  628. {
  629. return LuaDLL.toluaL_exception(L, e, o, "attempt to index fightPower on a nil value");
  630. }
  631. }
  632. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  633. static int set_balance(IntPtr L)
  634. {
  635. object o = null;
  636. try
  637. {
  638. o = ToLua.ToObject(L, 1);
  639. GameRoleInfo obj = (GameRoleInfo)o;
  640. string arg0 = ToLua.CheckString(L, 2);
  641. obj.balance = arg0;
  642. return 0;
  643. }
  644. catch(Exception e)
  645. {
  646. return LuaDLL.toluaL_exception(L, e, o, "attempt to index balance on a nil value");
  647. }
  648. }
  649. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  650. static int set_lastLogoutTime(IntPtr L)
  651. {
  652. object o = null;
  653. try
  654. {
  655. o = ToLua.ToObject(L, 1);
  656. GameRoleInfo obj = (GameRoleInfo)o;
  657. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  658. obj.lastLogoutTime = arg0;
  659. return 0;
  660. }
  661. catch(Exception e)
  662. {
  663. return LuaDLL.toluaL_exception(L, e, o, "attempt to index lastLogoutTime on a nil value");
  664. }
  665. }
  666. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  667. static int set_loginTime(IntPtr L)
  668. {
  669. object o = null;
  670. try
  671. {
  672. o = ToLua.ToObject(L, 1);
  673. GameRoleInfo obj = (GameRoleInfo)o;
  674. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  675. obj.loginTime = arg0;
  676. return 0;
  677. }
  678. catch(Exception e)
  679. {
  680. return LuaDLL.toluaL_exception(L, e, o, "attempt to index loginTime on a nil value");
  681. }
  682. }
  683. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  684. static int set_openServerTime(IntPtr L)
  685. {
  686. object o = null;
  687. try
  688. {
  689. o = ToLua.ToObject(L, 1);
  690. GameRoleInfo obj = (GameRoleInfo)o;
  691. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  692. obj.openServerTime = arg0;
  693. return 0;
  694. }
  695. catch(Exception e)
  696. {
  697. return LuaDLL.toluaL_exception(L, e, o, "attempt to index openServerTime on a nil value");
  698. }
  699. }
  700. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  701. static int set_roleName(IntPtr L)
  702. {
  703. object o = null;
  704. try
  705. {
  706. o = ToLua.ToObject(L, 1);
  707. GameRoleInfo obj = (GameRoleInfo)o;
  708. string arg0 = ToLua.CheckString(L, 2);
  709. obj.roleName = arg0;
  710. return 0;
  711. }
  712. catch(Exception e)
  713. {
  714. return LuaDLL.toluaL_exception(L, e, o, "attempt to index roleName on a nil value");
  715. }
  716. }
  717. }