FighterStatisticsWrap.cs 35 KB

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