HeroActorDataWrap.cs 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class HeroActorDataWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(HeroActorData), typeof(ActorData));
  9. L.RegFunction("Dispose", Dispose);
  10. L.RegFunction("Initialize", Initialize);
  11. L.RegFunction("SetLevel", SetLevel);
  12. L.RegFunction("SetProfessionId", SetProfessionId);
  13. L.RegFunction("RefreshSkills", RefreshSkills);
  14. L.RegFunction("SetFashionData", SetFashionData);
  15. L.RegFunction("GetBodyPartParam", GetBodyPartParam);
  16. L.RegFunction("New", _CreateHeroActorData);
  17. L.RegFunction("__tostring", ToLua.op_ToString);
  18. L.RegVar("BaseData", get_BaseData, null);
  19. L.RegVar("AttrData", get_AttrData, null);
  20. L.RegVar("ProfessionData", get_ProfessionData, null);
  21. L.RegVar("ProfessionId", get_ProfessionId, null);
  22. L.RegVar("PartResList", get_PartResList, null);
  23. L.RegVar("FashionData", get_FashionData, null);
  24. L.RegVar("AnimCtrlName", get_AnimCtrlName, null);
  25. L.RegVar("ShowAnimCtrlName", get_ShowAnimCtrlName, null);
  26. L.RegVar("ProfessionIcon", get_ProfessionIcon, null);
  27. L.RegVar("HeadIcon", get_HeadIcon, set_HeadIcon);
  28. L.RegVar("BattleBigIcon", get_BattleBigIcon, null);
  29. L.RegVar("SkillFrameEventName", get_SkillFrameEventName, null);
  30. L.RegVar("NatureId", get_NatureId, null);
  31. L.RegVar("BaseLife", get_BaseLife, null);
  32. L.RegVar("BaseSp", get_BaseSp, null);
  33. L.RegVar("BaseAttack", get_BaseAttack, null);
  34. L.RegVar("BaseMagicAttack", get_BaseMagicAttack, null);
  35. L.RegVar("BaseDefense", get_BaseDefense, null);
  36. L.RegVar("BaseMagicDefense", get_BaseMagicDefense, null);
  37. L.RegVar("BaseDodge", get_BaseDodge, null);
  38. L.RegVar("BaseHit", get_BaseHit, null);
  39. L.RegVar("BaseCrit", get_BaseCrit, null);
  40. L.RegVar("BaseTen", get_BaseTen, null);
  41. L.RegVar("BaseAttackSpeed", get_BaseAttackSpeed, null);
  42. L.RegVar("Life", get_Life, null);
  43. L.RegVar("Sp", get_Sp, null);
  44. L.RegVar("Attack", get_Attack, null);
  45. L.RegVar("MagicAttack", get_MagicAttack, null);
  46. L.RegVar("Defense", get_Defense, null);
  47. L.RegVar("MagicDefense", get_MagicDefense, null);
  48. L.RegVar("Hit", get_Hit, null);
  49. L.RegVar("Crit", get_Crit, null);
  50. L.RegVar("Dodge", get_Dodge, null);
  51. L.RegVar("Ten", get_Ten, null);
  52. L.RegVar("LocalAttackSpeed", get_LocalAttackSpeed, null);
  53. L.RegVar("AttackSpeed", get_AttackSpeed, null);
  54. L.RegVar("LocalCastAcceleration", get_LocalCastAcceleration, null);
  55. L.RegVar("CastAcceleration", get_CastAcceleration, null);
  56. L.RegVar("GodPower", get_GodPower, null);
  57. L.RegVar("IsHero", get_IsHero, null);
  58. L.RegVar("AvatarID", get_AvatarID, null);
  59. L.RegVar("Name", get_Name, set_Name);
  60. L.RegVar("Description", get_Description, null);
  61. L.RegVar("Profession", get_Profession, null);
  62. L.RegVar("JobStage", get_JobStage, null);
  63. L.RegVar("JobBranch", get_JobBranch, null);
  64. L.RegVar("PositionValue", get_PositionValue, null);
  65. L.RegVar("BaseSTR", get_BaseSTR, set_BaseSTR);
  66. L.RegVar("BaseAGI", get_BaseAGI, set_BaseAGI);
  67. L.RegVar("BaseINT", get_BaseINT, set_BaseINT);
  68. L.RegVar("BaseVIT", get_BaseVIT, set_BaseVIT);
  69. L.RegVar("BaseDEX", get_BaseDEX, set_BaseDEX);
  70. L.RegVar("BaseLUK", get_BaseLUK, set_BaseLUK);
  71. L.RegVar("STR", get_STR, null);
  72. L.RegVar("AGI", get_AGI, null);
  73. L.RegVar("INT", get_INT, null);
  74. L.RegVar("VIT", get_VIT, null);
  75. L.RegVar("DEX", get_DEX, null);
  76. L.RegVar("LUK", get_LUK, null);
  77. L.EndClass();
  78. }
  79. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  80. static int _CreateHeroActorData(IntPtr L)
  81. {
  82. try
  83. {
  84. int count = LuaDLL.lua_gettop(L);
  85. if (count == 1)
  86. {
  87. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  88. HeroActorData obj = new HeroActorData(arg0);
  89. ToLua.PushObject(L, obj);
  90. return 1;
  91. }
  92. else
  93. {
  94. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: HeroActorData.New");
  95. }
  96. }
  97. catch (Exception e)
  98. {
  99. return LuaDLL.toluaL_exception(L, e);
  100. }
  101. }
  102. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  103. static int Dispose(IntPtr L)
  104. {
  105. try
  106. {
  107. ToLua.CheckArgsCount(L, 1);
  108. HeroActorData obj = (HeroActorData)ToLua.CheckObject<HeroActorData>(L, 1);
  109. obj.Dispose();
  110. return 0;
  111. }
  112. catch (Exception e)
  113. {
  114. return LuaDLL.toluaL_exception(L, e);
  115. }
  116. }
  117. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  118. static int Initialize(IntPtr L)
  119. {
  120. try
  121. {
  122. ToLua.CheckArgsCount(L, 4);
  123. HeroActorData obj = (HeroActorData)ToLua.CheckObject<HeroActorData>(L, 1);
  124. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  125. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  126. SkillParam[] arg2 = ToLua.CheckStructArray<SkillParam>(L, 4);
  127. obj.Initialize(arg0, arg1, arg2);
  128. return 0;
  129. }
  130. catch (Exception e)
  131. {
  132. return LuaDLL.toluaL_exception(L, e);
  133. }
  134. }
  135. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  136. static int SetLevel(IntPtr L)
  137. {
  138. try
  139. {
  140. ToLua.CheckArgsCount(L, 2);
  141. HeroActorData obj = (HeroActorData)ToLua.CheckObject<HeroActorData>(L, 1);
  142. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  143. obj.SetLevel(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 SetProfessionId(IntPtr L)
  153. {
  154. try
  155. {
  156. int count = LuaDLL.lua_gettop(L);
  157. if (count == 2)
  158. {
  159. HeroActorData obj = (HeroActorData)ToLua.CheckObject<HeroActorData>(L, 1);
  160. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  161. obj.SetProfessionId(arg0);
  162. return 0;
  163. }
  164. else if (count == 3)
  165. {
  166. HeroActorData obj = (HeroActorData)ToLua.CheckObject<HeroActorData>(L, 1);
  167. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  168. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  169. obj.SetProfessionId(arg0, arg1);
  170. return 0;
  171. }
  172. else
  173. {
  174. return LuaDLL.luaL_throw(L, "invalid arguments to method: HeroActorData.SetProfessionId");
  175. }
  176. }
  177. catch (Exception e)
  178. {
  179. return LuaDLL.toluaL_exception(L, e);
  180. }
  181. }
  182. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  183. static int RefreshSkills(IntPtr L)
  184. {
  185. try
  186. {
  187. ToLua.CheckArgsCount(L, 2);
  188. HeroActorData obj = (HeroActorData)ToLua.CheckObject<HeroActorData>(L, 1);
  189. SkillParam[] arg0 = ToLua.CheckStructArray<SkillParam>(L, 2);
  190. obj.RefreshSkills(arg0);
  191. return 0;
  192. }
  193. catch (Exception e)
  194. {
  195. return LuaDLL.toluaL_exception(L, e);
  196. }
  197. }
  198. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  199. static int SetFashionData(IntPtr L)
  200. {
  201. try
  202. {
  203. ToLua.CheckArgsCount(L, 2);
  204. HeroActorData obj = (HeroActorData)ToLua.CheckObject<HeroActorData>(L, 1);
  205. FashionParam arg0 = StackTraits<FashionParam>.Check(L, 2);
  206. obj.SetFashionData(arg0);
  207. return 0;
  208. }
  209. catch (Exception e)
  210. {
  211. return LuaDLL.toluaL_exception(L, e);
  212. }
  213. }
  214. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  215. static int GetBodyPartParam(IntPtr L)
  216. {
  217. try
  218. {
  219. ToLua.CheckArgsCount(L, 2);
  220. HeroActorData obj = (HeroActorData)ToLua.CheckObject<HeroActorData>(L, 1);
  221. BodyPart arg0 = (BodyPart)ToLua.CheckObject(L, 2, typeof(BodyPart));
  222. BodyPartParam o = obj.GetBodyPartParam(arg0);
  223. ToLua.PushValue(L, o);
  224. return 1;
  225. }
  226. catch (Exception e)
  227. {
  228. return LuaDLL.toluaL_exception(L, e);
  229. }
  230. }
  231. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  232. static int get_BaseData(IntPtr L)
  233. {
  234. object o = null;
  235. try
  236. {
  237. o = ToLua.ToObject(L, 1);
  238. HeroActorData obj = (HeroActorData)o;
  239. RoleBaseData ret = obj.BaseData;
  240. ToLua.PushObject(L, ret);
  241. return 1;
  242. }
  243. catch(Exception e)
  244. {
  245. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseData on a nil value");
  246. }
  247. }
  248. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  249. static int get_AttrData(IntPtr L)
  250. {
  251. object o = null;
  252. try
  253. {
  254. o = ToLua.ToObject(L, 1);
  255. HeroActorData obj = (HeroActorData)o;
  256. RoleAttributeData ret = obj.AttrData;
  257. ToLua.PushObject(L, ret);
  258. return 1;
  259. }
  260. catch(Exception e)
  261. {
  262. return LuaDLL.toluaL_exception(L, e, o, "attempt to index AttrData on a nil value");
  263. }
  264. }
  265. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  266. static int get_ProfessionData(IntPtr L)
  267. {
  268. object o = null;
  269. try
  270. {
  271. o = ToLua.ToObject(L, 1);
  272. HeroActorData obj = (HeroActorData)o;
  273. ProfessionData ret = obj.ProfessionData;
  274. ToLua.PushObject(L, ret);
  275. return 1;
  276. }
  277. catch(Exception e)
  278. {
  279. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ProfessionData on a nil value");
  280. }
  281. }
  282. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  283. static int get_ProfessionId(IntPtr L)
  284. {
  285. object o = null;
  286. try
  287. {
  288. o = ToLua.ToObject(L, 1);
  289. HeroActorData obj = (HeroActorData)o;
  290. int ret = obj.ProfessionId;
  291. LuaDLL.lua_pushinteger(L, ret);
  292. return 1;
  293. }
  294. catch(Exception e)
  295. {
  296. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ProfessionId on a nil value");
  297. }
  298. }
  299. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  300. static int get_PartResList(IntPtr L)
  301. {
  302. object o = null;
  303. try
  304. {
  305. o = ToLua.ToObject(L, 1);
  306. HeroActorData obj = (HeroActorData)o;
  307. System.Collections.Generic.Dictionary<BodyPart,string> ret = obj.PartResList;
  308. ToLua.PushSealed(L, ret);
  309. return 1;
  310. }
  311. catch(Exception e)
  312. {
  313. return LuaDLL.toluaL_exception(L, e, o, "attempt to index PartResList on a nil value");
  314. }
  315. }
  316. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  317. static int get_FashionData(IntPtr L)
  318. {
  319. object o = null;
  320. try
  321. {
  322. o = ToLua.ToObject(L, 1);
  323. HeroActorData obj = (HeroActorData)o;
  324. FashionParam ret = obj.FashionData;
  325. ToLua.PushValue(L, ret);
  326. return 1;
  327. }
  328. catch(Exception e)
  329. {
  330. return LuaDLL.toluaL_exception(L, e, o, "attempt to index FashionData on a nil value");
  331. }
  332. }
  333. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  334. static int get_AnimCtrlName(IntPtr L)
  335. {
  336. object o = null;
  337. try
  338. {
  339. o = ToLua.ToObject(L, 1);
  340. HeroActorData obj = (HeroActorData)o;
  341. string ret = obj.AnimCtrlName;
  342. LuaDLL.lua_pushstring(L, ret);
  343. return 1;
  344. }
  345. catch(Exception e)
  346. {
  347. return LuaDLL.toluaL_exception(L, e, o, "attempt to index AnimCtrlName on a nil value");
  348. }
  349. }
  350. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  351. static int get_ShowAnimCtrlName(IntPtr L)
  352. {
  353. object o = null;
  354. try
  355. {
  356. o = ToLua.ToObject(L, 1);
  357. HeroActorData obj = (HeroActorData)o;
  358. string ret = obj.ShowAnimCtrlName;
  359. LuaDLL.lua_pushstring(L, ret);
  360. return 1;
  361. }
  362. catch(Exception e)
  363. {
  364. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ShowAnimCtrlName on a nil value");
  365. }
  366. }
  367. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  368. static int get_ProfessionIcon(IntPtr L)
  369. {
  370. object o = null;
  371. try
  372. {
  373. o = ToLua.ToObject(L, 1);
  374. HeroActorData obj = (HeroActorData)o;
  375. string ret = obj.ProfessionIcon;
  376. LuaDLL.lua_pushstring(L, ret);
  377. return 1;
  378. }
  379. catch(Exception e)
  380. {
  381. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ProfessionIcon on a nil value");
  382. }
  383. }
  384. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  385. static int get_HeadIcon(IntPtr L)
  386. {
  387. object o = null;
  388. try
  389. {
  390. o = ToLua.ToObject(L, 1);
  391. HeroActorData obj = (HeroActorData)o;
  392. string ret = obj.HeadIcon;
  393. LuaDLL.lua_pushstring(L, ret);
  394. return 1;
  395. }
  396. catch(Exception e)
  397. {
  398. return LuaDLL.toluaL_exception(L, e, o, "attempt to index HeadIcon on a nil value");
  399. }
  400. }
  401. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  402. static int get_BattleBigIcon(IntPtr L)
  403. {
  404. object o = null;
  405. try
  406. {
  407. o = ToLua.ToObject(L, 1);
  408. HeroActorData obj = (HeroActorData)o;
  409. string ret = obj.BattleBigIcon;
  410. LuaDLL.lua_pushstring(L, ret);
  411. return 1;
  412. }
  413. catch(Exception e)
  414. {
  415. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BattleBigIcon on a nil value");
  416. }
  417. }
  418. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  419. static int get_SkillFrameEventName(IntPtr L)
  420. {
  421. object o = null;
  422. try
  423. {
  424. o = ToLua.ToObject(L, 1);
  425. HeroActorData obj = (HeroActorData)o;
  426. string ret = obj.SkillFrameEventName;
  427. LuaDLL.lua_pushstring(L, ret);
  428. return 1;
  429. }
  430. catch(Exception e)
  431. {
  432. return LuaDLL.toluaL_exception(L, e, o, "attempt to index SkillFrameEventName on a nil value");
  433. }
  434. }
  435. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  436. static int get_NatureId(IntPtr L)
  437. {
  438. object o = null;
  439. try
  440. {
  441. o = ToLua.ToObject(L, 1);
  442. HeroActorData obj = (HeroActorData)o;
  443. int ret = obj.NatureId;
  444. LuaDLL.lua_pushinteger(L, ret);
  445. return 1;
  446. }
  447. catch(Exception e)
  448. {
  449. return LuaDLL.toluaL_exception(L, e, o, "attempt to index NatureId on a nil value");
  450. }
  451. }
  452. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  453. static int get_BaseLife(IntPtr L)
  454. {
  455. object o = null;
  456. try
  457. {
  458. o = ToLua.ToObject(L, 1);
  459. HeroActorData obj = (HeroActorData)o;
  460. SFloat ret = obj.BaseLife;
  461. ToLua.PushValue(L, ret);
  462. return 1;
  463. }
  464. catch(Exception e)
  465. {
  466. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseLife on a nil value");
  467. }
  468. }
  469. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  470. static int get_BaseSp(IntPtr L)
  471. {
  472. object o = null;
  473. try
  474. {
  475. o = ToLua.ToObject(L, 1);
  476. HeroActorData obj = (HeroActorData)o;
  477. SFloat ret = obj.BaseSp;
  478. ToLua.PushValue(L, ret);
  479. return 1;
  480. }
  481. catch(Exception e)
  482. {
  483. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseSp on a nil value");
  484. }
  485. }
  486. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  487. static int get_BaseAttack(IntPtr L)
  488. {
  489. object o = null;
  490. try
  491. {
  492. o = ToLua.ToObject(L, 1);
  493. HeroActorData obj = (HeroActorData)o;
  494. SFloat ret = obj.BaseAttack;
  495. ToLua.PushValue(L, ret);
  496. return 1;
  497. }
  498. catch(Exception e)
  499. {
  500. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseAttack on a nil value");
  501. }
  502. }
  503. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  504. static int get_BaseMagicAttack(IntPtr L)
  505. {
  506. object o = null;
  507. try
  508. {
  509. o = ToLua.ToObject(L, 1);
  510. HeroActorData obj = (HeroActorData)o;
  511. SFloat ret = obj.BaseMagicAttack;
  512. ToLua.PushValue(L, ret);
  513. return 1;
  514. }
  515. catch(Exception e)
  516. {
  517. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseMagicAttack on a nil value");
  518. }
  519. }
  520. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  521. static int get_BaseDefense(IntPtr L)
  522. {
  523. object o = null;
  524. try
  525. {
  526. o = ToLua.ToObject(L, 1);
  527. HeroActorData obj = (HeroActorData)o;
  528. SFloat ret = obj.BaseDefense;
  529. ToLua.PushValue(L, ret);
  530. return 1;
  531. }
  532. catch(Exception e)
  533. {
  534. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseDefense on a nil value");
  535. }
  536. }
  537. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  538. static int get_BaseMagicDefense(IntPtr L)
  539. {
  540. object o = null;
  541. try
  542. {
  543. o = ToLua.ToObject(L, 1);
  544. HeroActorData obj = (HeroActorData)o;
  545. SFloat ret = obj.BaseMagicDefense;
  546. ToLua.PushValue(L, ret);
  547. return 1;
  548. }
  549. catch(Exception e)
  550. {
  551. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseMagicDefense on a nil value");
  552. }
  553. }
  554. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  555. static int get_BaseDodge(IntPtr L)
  556. {
  557. object o = null;
  558. try
  559. {
  560. o = ToLua.ToObject(L, 1);
  561. HeroActorData obj = (HeroActorData)o;
  562. SFloat ret = obj.BaseDodge;
  563. ToLua.PushValue(L, ret);
  564. return 1;
  565. }
  566. catch(Exception e)
  567. {
  568. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseDodge on a nil value");
  569. }
  570. }
  571. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  572. static int get_BaseHit(IntPtr L)
  573. {
  574. object o = null;
  575. try
  576. {
  577. o = ToLua.ToObject(L, 1);
  578. HeroActorData obj = (HeroActorData)o;
  579. SFloat ret = obj.BaseHit;
  580. ToLua.PushValue(L, ret);
  581. return 1;
  582. }
  583. catch(Exception e)
  584. {
  585. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseHit on a nil value");
  586. }
  587. }
  588. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  589. static int get_BaseCrit(IntPtr L)
  590. {
  591. object o = null;
  592. try
  593. {
  594. o = ToLua.ToObject(L, 1);
  595. HeroActorData obj = (HeroActorData)o;
  596. SFloat ret = obj.BaseCrit;
  597. ToLua.PushValue(L, ret);
  598. return 1;
  599. }
  600. catch(Exception e)
  601. {
  602. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseCrit on a nil value");
  603. }
  604. }
  605. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  606. static int get_BaseTen(IntPtr L)
  607. {
  608. object o = null;
  609. try
  610. {
  611. o = ToLua.ToObject(L, 1);
  612. HeroActorData obj = (HeroActorData)o;
  613. SFloat ret = obj.BaseTen;
  614. ToLua.PushValue(L, ret);
  615. return 1;
  616. }
  617. catch(Exception e)
  618. {
  619. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseTen on a nil value");
  620. }
  621. }
  622. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  623. static int get_BaseAttackSpeed(IntPtr L)
  624. {
  625. object o = null;
  626. try
  627. {
  628. o = ToLua.ToObject(L, 1);
  629. HeroActorData obj = (HeroActorData)o;
  630. SFloat ret = obj.BaseAttackSpeed;
  631. ToLua.PushValue(L, ret);
  632. return 1;
  633. }
  634. catch(Exception e)
  635. {
  636. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseAttackSpeed on a nil value");
  637. }
  638. }
  639. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  640. static int get_Life(IntPtr L)
  641. {
  642. object o = null;
  643. try
  644. {
  645. o = ToLua.ToObject(L, 1);
  646. HeroActorData obj = (HeroActorData)o;
  647. SFloat ret = obj.Life;
  648. ToLua.PushValue(L, ret);
  649. return 1;
  650. }
  651. catch(Exception e)
  652. {
  653. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Life on a nil value");
  654. }
  655. }
  656. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  657. static int get_Sp(IntPtr L)
  658. {
  659. object o = null;
  660. try
  661. {
  662. o = ToLua.ToObject(L, 1);
  663. HeroActorData obj = (HeroActorData)o;
  664. SFloat ret = obj.Sp;
  665. ToLua.PushValue(L, ret);
  666. return 1;
  667. }
  668. catch(Exception e)
  669. {
  670. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Sp on a nil value");
  671. }
  672. }
  673. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  674. static int get_Attack(IntPtr L)
  675. {
  676. object o = null;
  677. try
  678. {
  679. o = ToLua.ToObject(L, 1);
  680. HeroActorData obj = (HeroActorData)o;
  681. SFloat ret = obj.Attack;
  682. ToLua.PushValue(L, ret);
  683. return 1;
  684. }
  685. catch(Exception e)
  686. {
  687. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Attack on a nil value");
  688. }
  689. }
  690. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  691. static int get_MagicAttack(IntPtr L)
  692. {
  693. object o = null;
  694. try
  695. {
  696. o = ToLua.ToObject(L, 1);
  697. HeroActorData obj = (HeroActorData)o;
  698. SFloat ret = obj.MagicAttack;
  699. ToLua.PushValue(L, ret);
  700. return 1;
  701. }
  702. catch(Exception e)
  703. {
  704. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MagicAttack on a nil value");
  705. }
  706. }
  707. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  708. static int get_Defense(IntPtr L)
  709. {
  710. object o = null;
  711. try
  712. {
  713. o = ToLua.ToObject(L, 1);
  714. HeroActorData obj = (HeroActorData)o;
  715. SFloat ret = obj.Defense;
  716. ToLua.PushValue(L, ret);
  717. return 1;
  718. }
  719. catch(Exception e)
  720. {
  721. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Defense on a nil value");
  722. }
  723. }
  724. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  725. static int get_MagicDefense(IntPtr L)
  726. {
  727. object o = null;
  728. try
  729. {
  730. o = ToLua.ToObject(L, 1);
  731. HeroActorData obj = (HeroActorData)o;
  732. SFloat ret = obj.MagicDefense;
  733. ToLua.PushValue(L, ret);
  734. return 1;
  735. }
  736. catch(Exception e)
  737. {
  738. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MagicDefense on a nil value");
  739. }
  740. }
  741. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  742. static int get_Hit(IntPtr L)
  743. {
  744. object o = null;
  745. try
  746. {
  747. o = ToLua.ToObject(L, 1);
  748. HeroActorData obj = (HeroActorData)o;
  749. SFloat ret = obj.Hit;
  750. ToLua.PushValue(L, ret);
  751. return 1;
  752. }
  753. catch(Exception e)
  754. {
  755. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Hit on a nil value");
  756. }
  757. }
  758. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  759. static int get_Crit(IntPtr L)
  760. {
  761. object o = null;
  762. try
  763. {
  764. o = ToLua.ToObject(L, 1);
  765. HeroActorData obj = (HeroActorData)o;
  766. SFloat ret = obj.Crit;
  767. ToLua.PushValue(L, ret);
  768. return 1;
  769. }
  770. catch(Exception e)
  771. {
  772. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Crit on a nil value");
  773. }
  774. }
  775. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  776. static int get_Dodge(IntPtr L)
  777. {
  778. object o = null;
  779. try
  780. {
  781. o = ToLua.ToObject(L, 1);
  782. HeroActorData obj = (HeroActorData)o;
  783. SFloat ret = obj.Dodge;
  784. ToLua.PushValue(L, ret);
  785. return 1;
  786. }
  787. catch(Exception e)
  788. {
  789. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Dodge on a nil value");
  790. }
  791. }
  792. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  793. static int get_Ten(IntPtr L)
  794. {
  795. object o = null;
  796. try
  797. {
  798. o = ToLua.ToObject(L, 1);
  799. HeroActorData obj = (HeroActorData)o;
  800. SFloat ret = obj.Ten;
  801. ToLua.PushValue(L, ret);
  802. return 1;
  803. }
  804. catch(Exception e)
  805. {
  806. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Ten on a nil value");
  807. }
  808. }
  809. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  810. static int get_LocalAttackSpeed(IntPtr L)
  811. {
  812. object o = null;
  813. try
  814. {
  815. o = ToLua.ToObject(L, 1);
  816. HeroActorData obj = (HeroActorData)o;
  817. SFloat ret = obj.LocalAttackSpeed;
  818. ToLua.PushValue(L, ret);
  819. return 1;
  820. }
  821. catch(Exception e)
  822. {
  823. return LuaDLL.toluaL_exception(L, e, o, "attempt to index LocalAttackSpeed on a nil value");
  824. }
  825. }
  826. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  827. static int get_AttackSpeed(IntPtr L)
  828. {
  829. object o = null;
  830. try
  831. {
  832. o = ToLua.ToObject(L, 1);
  833. HeroActorData obj = (HeroActorData)o;
  834. SFloat ret = obj.AttackSpeed;
  835. ToLua.PushValue(L, ret);
  836. return 1;
  837. }
  838. catch(Exception e)
  839. {
  840. return LuaDLL.toluaL_exception(L, e, o, "attempt to index AttackSpeed on a nil value");
  841. }
  842. }
  843. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  844. static int get_LocalCastAcceleration(IntPtr L)
  845. {
  846. object o = null;
  847. try
  848. {
  849. o = ToLua.ToObject(L, 1);
  850. HeroActorData obj = (HeroActorData)o;
  851. SFloat ret = obj.LocalCastAcceleration;
  852. ToLua.PushValue(L, ret);
  853. return 1;
  854. }
  855. catch(Exception e)
  856. {
  857. return LuaDLL.toluaL_exception(L, e, o, "attempt to index LocalCastAcceleration on a nil value");
  858. }
  859. }
  860. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  861. static int get_CastAcceleration(IntPtr L)
  862. {
  863. object o = null;
  864. try
  865. {
  866. o = ToLua.ToObject(L, 1);
  867. HeroActorData obj = (HeroActorData)o;
  868. SFloat ret = obj.CastAcceleration;
  869. ToLua.PushValue(L, ret);
  870. return 1;
  871. }
  872. catch(Exception e)
  873. {
  874. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CastAcceleration on a nil value");
  875. }
  876. }
  877. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  878. static int get_GodPower(IntPtr L)
  879. {
  880. object o = null;
  881. try
  882. {
  883. o = ToLua.ToObject(L, 1);
  884. HeroActorData obj = (HeroActorData)o;
  885. SFloat ret = obj.GodPower;
  886. ToLua.PushValue(L, ret);
  887. return 1;
  888. }
  889. catch(Exception e)
  890. {
  891. return LuaDLL.toluaL_exception(L, e, o, "attempt to index GodPower on a nil value");
  892. }
  893. }
  894. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  895. static int get_IsHero(IntPtr L)
  896. {
  897. object o = null;
  898. try
  899. {
  900. o = ToLua.ToObject(L, 1);
  901. HeroActorData obj = (HeroActorData)o;
  902. bool ret = obj.IsHero;
  903. LuaDLL.lua_pushboolean(L, ret);
  904. return 1;
  905. }
  906. catch(Exception e)
  907. {
  908. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsHero on a nil value");
  909. }
  910. }
  911. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  912. static int get_AvatarID(IntPtr L)
  913. {
  914. object o = null;
  915. try
  916. {
  917. o = ToLua.ToObject(L, 1);
  918. HeroActorData obj = (HeroActorData)o;
  919. int ret = obj.AvatarID;
  920. LuaDLL.lua_pushinteger(L, ret);
  921. return 1;
  922. }
  923. catch(Exception e)
  924. {
  925. return LuaDLL.toluaL_exception(L, e, o, "attempt to index AvatarID on a nil value");
  926. }
  927. }
  928. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  929. static int get_Name(IntPtr L)
  930. {
  931. object o = null;
  932. try
  933. {
  934. o = ToLua.ToObject(L, 1);
  935. HeroActorData obj = (HeroActorData)o;
  936. string ret = obj.Name;
  937. LuaDLL.lua_pushstring(L, ret);
  938. return 1;
  939. }
  940. catch(Exception e)
  941. {
  942. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Name on a nil value");
  943. }
  944. }
  945. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  946. static int get_Description(IntPtr L)
  947. {
  948. object o = null;
  949. try
  950. {
  951. o = ToLua.ToObject(L, 1);
  952. HeroActorData obj = (HeroActorData)o;
  953. string ret = obj.Description;
  954. LuaDLL.lua_pushstring(L, ret);
  955. return 1;
  956. }
  957. catch(Exception e)
  958. {
  959. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Description on a nil value");
  960. }
  961. }
  962. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  963. static int get_Profession(IntPtr L)
  964. {
  965. object o = null;
  966. try
  967. {
  968. o = ToLua.ToObject(L, 1);
  969. HeroActorData obj = (HeroActorData)o;
  970. ProfessionType ret = obj.Profession;
  971. ToLua.Push(L, ret);
  972. return 1;
  973. }
  974. catch(Exception e)
  975. {
  976. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Profession on a nil value");
  977. }
  978. }
  979. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  980. static int get_JobStage(IntPtr L)
  981. {
  982. object o = null;
  983. try
  984. {
  985. o = ToLua.ToObject(L, 1);
  986. HeroActorData obj = (HeroActorData)o;
  987. int ret = obj.JobStage;
  988. LuaDLL.lua_pushinteger(L, ret);
  989. return 1;
  990. }
  991. catch(Exception e)
  992. {
  993. return LuaDLL.toluaL_exception(L, e, o, "attempt to index JobStage on a nil value");
  994. }
  995. }
  996. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  997. static int get_JobBranch(IntPtr L)
  998. {
  999. object o = null;
  1000. try
  1001. {
  1002. o = ToLua.ToObject(L, 1);
  1003. HeroActorData obj = (HeroActorData)o;
  1004. int ret = obj.JobBranch;
  1005. LuaDLL.lua_pushinteger(L, ret);
  1006. return 1;
  1007. }
  1008. catch(Exception e)
  1009. {
  1010. return LuaDLL.toluaL_exception(L, e, o, "attempt to index JobBranch on a nil value");
  1011. }
  1012. }
  1013. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1014. static int get_PositionValue(IntPtr L)
  1015. {
  1016. object o = null;
  1017. try
  1018. {
  1019. o = ToLua.ToObject(L, 1);
  1020. HeroActorData obj = (HeroActorData)o;
  1021. int ret = obj.PositionValue;
  1022. LuaDLL.lua_pushinteger(L, ret);
  1023. return 1;
  1024. }
  1025. catch(Exception e)
  1026. {
  1027. return LuaDLL.toluaL_exception(L, e, o, "attempt to index PositionValue on a nil value");
  1028. }
  1029. }
  1030. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1031. static int get_BaseSTR(IntPtr L)
  1032. {
  1033. object o = null;
  1034. try
  1035. {
  1036. o = ToLua.ToObject(L, 1);
  1037. HeroActorData obj = (HeroActorData)o;
  1038. SInt ret = obj.BaseSTR;
  1039. ToLua.PushValue(L, ret);
  1040. return 1;
  1041. }
  1042. catch(Exception e)
  1043. {
  1044. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseSTR on a nil value");
  1045. }
  1046. }
  1047. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1048. static int get_BaseAGI(IntPtr L)
  1049. {
  1050. object o = null;
  1051. try
  1052. {
  1053. o = ToLua.ToObject(L, 1);
  1054. HeroActorData obj = (HeroActorData)o;
  1055. SInt ret = obj.BaseAGI;
  1056. ToLua.PushValue(L, ret);
  1057. return 1;
  1058. }
  1059. catch(Exception e)
  1060. {
  1061. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseAGI on a nil value");
  1062. }
  1063. }
  1064. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1065. static int get_BaseINT(IntPtr L)
  1066. {
  1067. object o = null;
  1068. try
  1069. {
  1070. o = ToLua.ToObject(L, 1);
  1071. HeroActorData obj = (HeroActorData)o;
  1072. SInt ret = obj.BaseINT;
  1073. ToLua.PushValue(L, ret);
  1074. return 1;
  1075. }
  1076. catch(Exception e)
  1077. {
  1078. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseINT on a nil value");
  1079. }
  1080. }
  1081. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1082. static int get_BaseVIT(IntPtr L)
  1083. {
  1084. object o = null;
  1085. try
  1086. {
  1087. o = ToLua.ToObject(L, 1);
  1088. HeroActorData obj = (HeroActorData)o;
  1089. SInt ret = obj.BaseVIT;
  1090. ToLua.PushValue(L, ret);
  1091. return 1;
  1092. }
  1093. catch(Exception e)
  1094. {
  1095. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseVIT on a nil value");
  1096. }
  1097. }
  1098. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1099. static int get_BaseDEX(IntPtr L)
  1100. {
  1101. object o = null;
  1102. try
  1103. {
  1104. o = ToLua.ToObject(L, 1);
  1105. HeroActorData obj = (HeroActorData)o;
  1106. SInt ret = obj.BaseDEX;
  1107. ToLua.PushValue(L, ret);
  1108. return 1;
  1109. }
  1110. catch(Exception e)
  1111. {
  1112. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseDEX on a nil value");
  1113. }
  1114. }
  1115. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1116. static int get_BaseLUK(IntPtr L)
  1117. {
  1118. object o = null;
  1119. try
  1120. {
  1121. o = ToLua.ToObject(L, 1);
  1122. HeroActorData obj = (HeroActorData)o;
  1123. SInt ret = obj.BaseLUK;
  1124. ToLua.PushValue(L, ret);
  1125. return 1;
  1126. }
  1127. catch(Exception e)
  1128. {
  1129. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseLUK on a nil value");
  1130. }
  1131. }
  1132. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1133. static int get_STR(IntPtr L)
  1134. {
  1135. object o = null;
  1136. try
  1137. {
  1138. o = ToLua.ToObject(L, 1);
  1139. HeroActorData obj = (HeroActorData)o;
  1140. SInt ret = obj.STR;
  1141. ToLua.PushValue(L, ret);
  1142. return 1;
  1143. }
  1144. catch(Exception e)
  1145. {
  1146. return LuaDLL.toluaL_exception(L, e, o, "attempt to index STR on a nil value");
  1147. }
  1148. }
  1149. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1150. static int get_AGI(IntPtr L)
  1151. {
  1152. object o = null;
  1153. try
  1154. {
  1155. o = ToLua.ToObject(L, 1);
  1156. HeroActorData obj = (HeroActorData)o;
  1157. SInt ret = obj.AGI;
  1158. ToLua.PushValue(L, ret);
  1159. return 1;
  1160. }
  1161. catch(Exception e)
  1162. {
  1163. return LuaDLL.toluaL_exception(L, e, o, "attempt to index AGI on a nil value");
  1164. }
  1165. }
  1166. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1167. static int get_INT(IntPtr L)
  1168. {
  1169. object o = null;
  1170. try
  1171. {
  1172. o = ToLua.ToObject(L, 1);
  1173. HeroActorData obj = (HeroActorData)o;
  1174. SInt ret = obj.INT;
  1175. ToLua.PushValue(L, ret);
  1176. return 1;
  1177. }
  1178. catch(Exception e)
  1179. {
  1180. return LuaDLL.toluaL_exception(L, e, o, "attempt to index INT on a nil value");
  1181. }
  1182. }
  1183. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1184. static int get_VIT(IntPtr L)
  1185. {
  1186. object o = null;
  1187. try
  1188. {
  1189. o = ToLua.ToObject(L, 1);
  1190. HeroActorData obj = (HeroActorData)o;
  1191. SInt ret = obj.VIT;
  1192. ToLua.PushValue(L, ret);
  1193. return 1;
  1194. }
  1195. catch(Exception e)
  1196. {
  1197. return LuaDLL.toluaL_exception(L, e, o, "attempt to index VIT on a nil value");
  1198. }
  1199. }
  1200. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1201. static int get_DEX(IntPtr L)
  1202. {
  1203. object o = null;
  1204. try
  1205. {
  1206. o = ToLua.ToObject(L, 1);
  1207. HeroActorData obj = (HeroActorData)o;
  1208. SInt ret = obj.DEX;
  1209. ToLua.PushValue(L, ret);
  1210. return 1;
  1211. }
  1212. catch(Exception e)
  1213. {
  1214. return LuaDLL.toluaL_exception(L, e, o, "attempt to index DEX on a nil value");
  1215. }
  1216. }
  1217. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1218. static int get_LUK(IntPtr L)
  1219. {
  1220. object o = null;
  1221. try
  1222. {
  1223. o = ToLua.ToObject(L, 1);
  1224. HeroActorData obj = (HeroActorData)o;
  1225. SInt ret = obj.LUK;
  1226. ToLua.PushValue(L, ret);
  1227. return 1;
  1228. }
  1229. catch(Exception e)
  1230. {
  1231. return LuaDLL.toluaL_exception(L, e, o, "attempt to index LUK on a nil value");
  1232. }
  1233. }
  1234. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1235. static int set_HeadIcon(IntPtr L)
  1236. {
  1237. object o = null;
  1238. try
  1239. {
  1240. o = ToLua.ToObject(L, 1);
  1241. HeroActorData obj = (HeroActorData)o;
  1242. string arg0 = ToLua.CheckString(L, 2);
  1243. obj.HeadIcon = arg0;
  1244. return 0;
  1245. }
  1246. catch(Exception e)
  1247. {
  1248. return LuaDLL.toluaL_exception(L, e, o, "attempt to index HeadIcon on a nil value");
  1249. }
  1250. }
  1251. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1252. static int set_Name(IntPtr L)
  1253. {
  1254. object o = null;
  1255. try
  1256. {
  1257. o = ToLua.ToObject(L, 1);
  1258. HeroActorData obj = (HeroActorData)o;
  1259. string arg0 = ToLua.CheckString(L, 2);
  1260. obj.Name = arg0;
  1261. return 0;
  1262. }
  1263. catch(Exception e)
  1264. {
  1265. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Name on a nil value");
  1266. }
  1267. }
  1268. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1269. static int set_BaseSTR(IntPtr L)
  1270. {
  1271. object o = null;
  1272. try
  1273. {
  1274. o = ToLua.ToObject(L, 1);
  1275. HeroActorData obj = (HeroActorData)o;
  1276. SInt arg0 = StackTraits<SInt>.Check(L, 2);
  1277. obj.BaseSTR = arg0;
  1278. return 0;
  1279. }
  1280. catch(Exception e)
  1281. {
  1282. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseSTR on a nil value");
  1283. }
  1284. }
  1285. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1286. static int set_BaseAGI(IntPtr L)
  1287. {
  1288. object o = null;
  1289. try
  1290. {
  1291. o = ToLua.ToObject(L, 1);
  1292. HeroActorData obj = (HeroActorData)o;
  1293. SInt arg0 = StackTraits<SInt>.Check(L, 2);
  1294. obj.BaseAGI = arg0;
  1295. return 0;
  1296. }
  1297. catch(Exception e)
  1298. {
  1299. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseAGI on a nil value");
  1300. }
  1301. }
  1302. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1303. static int set_BaseINT(IntPtr L)
  1304. {
  1305. object o = null;
  1306. try
  1307. {
  1308. o = ToLua.ToObject(L, 1);
  1309. HeroActorData obj = (HeroActorData)o;
  1310. SInt arg0 = StackTraits<SInt>.Check(L, 2);
  1311. obj.BaseINT = arg0;
  1312. return 0;
  1313. }
  1314. catch(Exception e)
  1315. {
  1316. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseINT on a nil value");
  1317. }
  1318. }
  1319. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1320. static int set_BaseVIT(IntPtr L)
  1321. {
  1322. object o = null;
  1323. try
  1324. {
  1325. o = ToLua.ToObject(L, 1);
  1326. HeroActorData obj = (HeroActorData)o;
  1327. SInt arg0 = StackTraits<SInt>.Check(L, 2);
  1328. obj.BaseVIT = arg0;
  1329. return 0;
  1330. }
  1331. catch(Exception e)
  1332. {
  1333. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseVIT on a nil value");
  1334. }
  1335. }
  1336. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1337. static int set_BaseDEX(IntPtr L)
  1338. {
  1339. object o = null;
  1340. try
  1341. {
  1342. o = ToLua.ToObject(L, 1);
  1343. HeroActorData obj = (HeroActorData)o;
  1344. SInt arg0 = StackTraits<SInt>.Check(L, 2);
  1345. obj.BaseDEX = arg0;
  1346. return 0;
  1347. }
  1348. catch(Exception e)
  1349. {
  1350. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseDEX on a nil value");
  1351. }
  1352. }
  1353. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1354. static int set_BaseLUK(IntPtr L)
  1355. {
  1356. object o = null;
  1357. try
  1358. {
  1359. o = ToLua.ToObject(L, 1);
  1360. HeroActorData obj = (HeroActorData)o;
  1361. SInt arg0 = StackTraits<SInt>.Check(L, 2);
  1362. obj.BaseLUK = arg0;
  1363. return 0;
  1364. }
  1365. catch(Exception e)
  1366. {
  1367. return LuaDLL.toluaL_exception(L, e, o, "attempt to index BaseLUK on a nil value");
  1368. }
  1369. }
  1370. }