GameMgrWrap.cs 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class GameMgrWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(GameMgr), typeof(SingletonMono<GameMgr>));
  9. L.RegFunction("DoTaskByCorutine", DoTaskByCorutine);
  10. L.RegFunction("StartDetector", StartDetector);
  11. L.RegFunction("SetOnSceneLoadedLuaFunc", SetOnSceneLoadedLuaFunc);
  12. L.RegFunction("ReLogin", ReLogin);
  13. L.RegFunction("ReLoginClearData", ReLoginClearData);
  14. L.RegFunction("SetLuaPlayStoryFunc", SetLuaPlayStoryFunc);
  15. L.RegFunction("LoadCurrentBattle", LoadCurrentBattle);
  16. L.RegFunction("CloseLoading", CloseLoading);
  17. L.RegFunction("SetTeamData", SetTeamData);
  18. L.RegFunction("RefreshTeamData", RefreshTeamData);
  19. L.RegFunction("UpdateTeamSkills", UpdateTeamSkills);
  20. L.RegFunction("CreateRoleViewComplete", CreateRoleViewComplete);
  21. L.RegFunction("RefreshRoleViewComplete", RefreshRoleViewComplete);
  22. L.RegFunction("NotifyRefreshRoleView", NotifyRefreshRoleView);
  23. L.RegFunction("SetMapLevelId", SetMapLevelId);
  24. L.RegFunction("PreloadCreateRoleScene", PreloadCreateRoleScene);
  25. L.RegFunction("GotoLogin", GotoLogin);
  26. L.RegFunction("PreloadGuildLobby", PreloadGuildLobby);
  27. L.RegFunction("PreloadAllFellows", PreloadAllFellows);
  28. L.RegFunction("PreloadBattle", PreloadBattle);
  29. L.RegFunction("StartNewbieBossBattle", StartNewbieBossBattle);
  30. L.RegFunction("PreloadViewTeam", PreloadViewTeam);
  31. L.RegFunction("PreloadVersusBattle", PreloadVersusBattle);
  32. L.RegFunction("PreloadBossBattle", PreloadBossBattle);
  33. L.RegFunction("PreloadTimeBattle", PreloadTimeBattle);
  34. L.RegFunction("ReplayTimeBattle", ReplayTimeBattle);
  35. L.RegFunction("ForceStopBattle", ForceStopBattle);
  36. L.RegFunction("ShutDownBattle", ShutDownBattle);
  37. L.RegFunction("DisposeBattle", DisposeBattle);
  38. L.RegFunction("SetGameSpeed", SetGameSpeed);
  39. L.RegFunction("SaveGameSpeed", SaveGameSpeed);
  40. L.RegFunction("GetGameSpeed", GetGameSpeed);
  41. L.RegFunction("Random", Random);
  42. L.RegFunction("CalcPassedTime", CalcPassedTime);
  43. L.RegFunction("QuitGame", QuitGame);
  44. L.RegFunction("PlayDialog", PlayDialog);
  45. L.RegFunction("RequestHttpServer", RequestHttpServer);
  46. L.RegFunction("CleanUnusedAssets", CleanUnusedAssets);
  47. L.RegFunction("OpenUrl", OpenUrl);
  48. L.RegFunction("EnableAntiAliasing", EnableAntiAliasing);
  49. L.RegFunction("DisableAntiAliasing", DisableAntiAliasing);
  50. L.RegFunction("SdkInitFunc", SdkInitFunc);
  51. L.RegFunction("SdkLoginFunc", SdkLoginFunc);
  52. L.RegFunction("SdkLogoutFunc", SdkLogoutFunc);
  53. L.RegFunction("SdkPayFunc", SdkPayFunc);
  54. L.RegFunction("SdkQuestionFunc", SdkQuestionFunc);
  55. L.RegFunction("SdkCanEnterServerJudgeFunc", SdkCanEnterServerJudgeFunc);
  56. L.RegFunction("SdkInit", SdkInit);
  57. L.RegFunction("SdkLogin", SdkLogin);
  58. L.RegFunction("SdkPay", SdkPay);
  59. L.RegFunction("SdkLogout", SdkLogout);
  60. L.RegFunction("SdkExit", SdkExit);
  61. L.RegFunction("SdkShowToolbar", SdkShowToolbar);
  62. L.RegFunction("SdkHideToolBar", SdkHideToolBar);
  63. L.RegFunction("ClearDifAttr", ClearDifAttr);
  64. L.RegFunction("AddDifAttr", AddDifAttr);
  65. L.RegFunction("AddDifAttrs", AddDifAttrs);
  66. L.RegFunction("__eq", op_Equality);
  67. L.RegFunction("__tostring", ToLua.op_ToString);
  68. L.RegVar("VersionUpdateState", get_VersionUpdateState, null);
  69. L.RegVar("LoginState", get_LoginState, null);
  70. L.RegVar("LoadingState", get_LoadingState, null);
  71. L.RegVar("BattleState", get_BattleState, null);
  72. L.RegVar("RandSeed", get_RandSeed, set_RandSeed);
  73. L.RegVar("mGameSpeed", get_mGameSpeed, set_mGameSpeed);
  74. L.RegVar("GameVersion", get_GameVersion, null);
  75. L.RegVar("ResVersion", get_ResVersion, null);
  76. L.RegVar("IsSingle", get_IsSingle, null);
  77. L.RegVar("GameSpeed", get_GameSpeed, null);
  78. L.RegVar("Instance", get_Instance, null);
  79. L.RegVar("InStartDungeon", get_InStartDungeon, null);
  80. L.RegVar("IsEditorMode", get_IsEditorMode, null);
  81. L.RegVar("CreateMaleRoot", get_CreateMaleRoot, null);
  82. L.RegVar("CreateFemaleRoot", get_CreateFemaleRoot, null);
  83. L.RegVar("CreateShowRoot", get_CreateShowRoot, null);
  84. L.RegVar("NetStatus", get_NetStatus, null);
  85. L.RegVar("CharacterInfo", get_CharacterInfo, null);
  86. L.RegVar("DeviceId", get_DeviceId, null);
  87. L.RegVar("CurLangKey", get_CurLangKey, set_CurLangKey);
  88. L.RegVar("IsMobileDevice", get_IsMobileDevice, null);
  89. L.RegVar("IsBadDevice", get_IsBadDevice, null);
  90. L.RegVar("IsNormalDevice", get_IsNormalDevice, null);
  91. L.RegVar("IsGoodDevice", get_IsGoodDevice, null);
  92. L.RegVar("maxFrameTime", get_maxFrameTime, null);
  93. L.EndClass();
  94. }
  95. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  96. static int DoTaskByCorutine(IntPtr L)
  97. {
  98. try
  99. {
  100. ToLua.CheckArgsCount(L, 2);
  101. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  102. System.Func<System.Collections.IEnumerator> arg0 = (System.Func<System.Collections.IEnumerator>)ToLua.CheckDelegate<System.Func<System.Collections.IEnumerator>>(L, 2);
  103. obj.DoTaskByCorutine(arg0);
  104. return 0;
  105. }
  106. catch (Exception e)
  107. {
  108. return LuaDLL.toluaL_exception(L, e);
  109. }
  110. }
  111. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  112. static int StartDetector(IntPtr L)
  113. {
  114. try
  115. {
  116. ToLua.CheckArgsCount(L, 1);
  117. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  118. obj.StartDetector();
  119. return 0;
  120. }
  121. catch (Exception e)
  122. {
  123. return LuaDLL.toluaL_exception(L, e);
  124. }
  125. }
  126. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  127. static int SetOnSceneLoadedLuaFunc(IntPtr L)
  128. {
  129. try
  130. {
  131. ToLua.CheckArgsCount(L, 2);
  132. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  133. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  134. obj.SetOnSceneLoadedLuaFunc(arg0);
  135. return 0;
  136. }
  137. catch (Exception e)
  138. {
  139. return LuaDLL.toluaL_exception(L, e);
  140. }
  141. }
  142. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  143. static int ReLogin(IntPtr L)
  144. {
  145. try
  146. {
  147. ToLua.CheckArgsCount(L, 1);
  148. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  149. obj.ReLogin();
  150. return 0;
  151. }
  152. catch (Exception e)
  153. {
  154. return LuaDLL.toluaL_exception(L, e);
  155. }
  156. }
  157. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  158. static int ReLoginClearData(IntPtr L)
  159. {
  160. try
  161. {
  162. ToLua.CheckArgsCount(L, 1);
  163. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  164. obj.ReLoginClearData();
  165. return 0;
  166. }
  167. catch (Exception e)
  168. {
  169. return LuaDLL.toluaL_exception(L, e);
  170. }
  171. }
  172. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  173. static int SetLuaPlayStoryFunc(IntPtr L)
  174. {
  175. try
  176. {
  177. ToLua.CheckArgsCount(L, 2);
  178. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  179. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  180. obj.SetLuaPlayStoryFunc(arg0);
  181. return 0;
  182. }
  183. catch (Exception e)
  184. {
  185. return LuaDLL.toluaL_exception(L, e);
  186. }
  187. }
  188. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  189. static int LoadCurrentBattle(IntPtr L)
  190. {
  191. try
  192. {
  193. ToLua.CheckArgsCount(L, 1);
  194. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  195. obj.LoadCurrentBattle();
  196. return 0;
  197. }
  198. catch (Exception e)
  199. {
  200. return LuaDLL.toluaL_exception(L, e);
  201. }
  202. }
  203. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  204. static int CloseLoading(IntPtr L)
  205. {
  206. try
  207. {
  208. ToLua.CheckArgsCount(L, 1);
  209. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  210. obj.CloseLoading();
  211. return 0;
  212. }
  213. catch (Exception e)
  214. {
  215. return LuaDLL.toluaL_exception(L, e);
  216. }
  217. }
  218. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  219. static int SetTeamData(IntPtr L)
  220. {
  221. try
  222. {
  223. ToLua.CheckArgsCount(L, 3);
  224. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  225. LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
  226. LuaTable arg1 = ToLua.CheckLuaTable(L, 3);
  227. obj.SetTeamData(arg0, arg1);
  228. return 0;
  229. }
  230. catch (Exception e)
  231. {
  232. return LuaDLL.toluaL_exception(L, e);
  233. }
  234. }
  235. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  236. static int RefreshTeamData(IntPtr L)
  237. {
  238. try
  239. {
  240. ToLua.CheckArgsCount(L, 1);
  241. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  242. obj.RefreshTeamData();
  243. return 0;
  244. }
  245. catch (Exception e)
  246. {
  247. return LuaDLL.toluaL_exception(L, e);
  248. }
  249. }
  250. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  251. static int UpdateTeamSkills(IntPtr L)
  252. {
  253. try
  254. {
  255. ToLua.CheckArgsCount(L, 2);
  256. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  257. LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
  258. obj.UpdateTeamSkills(arg0);
  259. return 0;
  260. }
  261. catch (Exception e)
  262. {
  263. return LuaDLL.toluaL_exception(L, e);
  264. }
  265. }
  266. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  267. static int CreateRoleViewComplete(IntPtr L)
  268. {
  269. try
  270. {
  271. ToLua.CheckArgsCount(L, 2);
  272. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  273. UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
  274. obj.CreateRoleViewComplete(arg0);
  275. return 0;
  276. }
  277. catch (Exception e)
  278. {
  279. return LuaDLL.toluaL_exception(L, e);
  280. }
  281. }
  282. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  283. static int RefreshRoleViewComplete(IntPtr L)
  284. {
  285. try
  286. {
  287. ToLua.CheckArgsCount(L, 3);
  288. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  289. UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
  290. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  291. obj.RefreshRoleViewComplete(arg0, arg1);
  292. return 0;
  293. }
  294. catch (Exception e)
  295. {
  296. return LuaDLL.toluaL_exception(L, e);
  297. }
  298. }
  299. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  300. static int NotifyRefreshRoleView(IntPtr L)
  301. {
  302. try
  303. {
  304. ToLua.CheckArgsCount(L, 1);
  305. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  306. obj.NotifyRefreshRoleView();
  307. return 0;
  308. }
  309. catch (Exception e)
  310. {
  311. return LuaDLL.toluaL_exception(L, e);
  312. }
  313. }
  314. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  315. static int SetMapLevelId(IntPtr L)
  316. {
  317. try
  318. {
  319. ToLua.CheckArgsCount(L, 3);
  320. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  321. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  322. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  323. obj.SetMapLevelId(arg0, arg1);
  324. return 0;
  325. }
  326. catch (Exception e)
  327. {
  328. return LuaDLL.toluaL_exception(L, e);
  329. }
  330. }
  331. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  332. static int PreloadCreateRoleScene(IntPtr L)
  333. {
  334. try
  335. {
  336. ToLua.CheckArgsCount(L, 1);
  337. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  338. obj.PreloadCreateRoleScene();
  339. return 0;
  340. }
  341. catch (Exception e)
  342. {
  343. return LuaDLL.toluaL_exception(L, e);
  344. }
  345. }
  346. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  347. static int GotoLogin(IntPtr L)
  348. {
  349. try
  350. {
  351. ToLua.CheckArgsCount(L, 1);
  352. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  353. obj.GotoLogin();
  354. return 0;
  355. }
  356. catch (Exception e)
  357. {
  358. return LuaDLL.toluaL_exception(L, e);
  359. }
  360. }
  361. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  362. static int PreloadGuildLobby(IntPtr L)
  363. {
  364. try
  365. {
  366. ToLua.CheckArgsCount(L, 1);
  367. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  368. obj.PreloadGuildLobby();
  369. return 0;
  370. }
  371. catch (Exception e)
  372. {
  373. return LuaDLL.toluaL_exception(L, e);
  374. }
  375. }
  376. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  377. static int PreloadAllFellows(IntPtr L)
  378. {
  379. try
  380. {
  381. ToLua.CheckArgsCount(L, 2);
  382. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  383. ActorData[] arg0 = ToLua.CheckObjectArray<ActorData>(L, 2);
  384. obj.PreloadAllFellows(arg0);
  385. return 0;
  386. }
  387. catch (Exception e)
  388. {
  389. return LuaDLL.toluaL_exception(L, e);
  390. }
  391. }
  392. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  393. static int PreloadBattle(IntPtr L)
  394. {
  395. try
  396. {
  397. ToLua.CheckArgsCount(L, 2);
  398. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  399. LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
  400. obj.PreloadBattle(arg0);
  401. return 0;
  402. }
  403. catch (Exception e)
  404. {
  405. return LuaDLL.toluaL_exception(L, e);
  406. }
  407. }
  408. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  409. static int StartNewbieBossBattle(IntPtr L)
  410. {
  411. try
  412. {
  413. ToLua.CheckArgsCount(L, 3);
  414. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  415. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  416. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  417. System.Collections.Generic.List<ActorData> o = obj.StartNewbieBossBattle(arg0, arg1);
  418. ToLua.PushSealed(L, o);
  419. return 1;
  420. }
  421. catch (Exception e)
  422. {
  423. return LuaDLL.toluaL_exception(L, e);
  424. }
  425. }
  426. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  427. static int PreloadViewTeam(IntPtr L)
  428. {
  429. try
  430. {
  431. ToLua.CheckArgsCount(L, 4);
  432. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  433. ActorData[] arg0 = ToLua.CheckObjectArray<ActorData>(L, 2);
  434. string arg1 = ToLua.CheckString(L, 3);
  435. LuaTable arg2 = ToLua.CheckLuaTable(L, 4);
  436. obj.PreloadViewTeam(arg0, arg1, arg2);
  437. return 0;
  438. }
  439. catch (Exception e)
  440. {
  441. return LuaDLL.toluaL_exception(L, e);
  442. }
  443. }
  444. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  445. static int PreloadVersusBattle(IntPtr L)
  446. {
  447. try
  448. {
  449. ToLua.CheckArgsCount(L, 11);
  450. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  451. BattleSubMode arg0 = (BattleSubMode)ToLua.CheckObject(L, 2, typeof(BattleSubMode));
  452. ActorData[] arg1 = ToLua.CheckObjectArray<ActorData>(L, 3);
  453. ActorData[] arg2 = ToLua.CheckObjectArray<ActorData>(L, 4);
  454. string arg3 = ToLua.CheckString(L, 5);
  455. float arg4 = (float)LuaDLL.luaL_checknumber(L, 6);
  456. BattleEndCondition[] arg5 = ToLua.CheckObjectArray<BattleEndCondition>(L, 7);
  457. GvGMark[] arg6 = ToLua.CheckObjectArray<GvGMark>(L, 8);
  458. GvGMark[] arg7 = ToLua.CheckObjectArray<GvGMark>(L, 9);
  459. bool arg8 = LuaDLL.luaL_checkboolean(L, 10);
  460. int arg9 = (int)LuaDLL.luaL_checknumber(L, 11);
  461. obj.PreloadVersusBattle(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
  462. return 0;
  463. }
  464. catch (Exception e)
  465. {
  466. return LuaDLL.toluaL_exception(L, e);
  467. }
  468. }
  469. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  470. static int PreloadBossBattle(IntPtr L)
  471. {
  472. try
  473. {
  474. ToLua.CheckArgsCount(L, 5);
  475. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  476. ActorData[] arg0 = ToLua.CheckObjectArray<ActorData>(L, 2);
  477. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  478. int arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
  479. BattleEndCondition[] arg3 = ToLua.CheckObjectArray<BattleEndCondition>(L, 5);
  480. obj.PreloadBossBattle(arg0, arg1, arg2, arg3);
  481. return 0;
  482. }
  483. catch (Exception e)
  484. {
  485. return LuaDLL.toluaL_exception(L, e);
  486. }
  487. }
  488. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  489. static int PreloadTimeBattle(IntPtr L)
  490. {
  491. try
  492. {
  493. ToLua.CheckArgsCount(L, 14);
  494. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  495. LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
  496. BattleSubMode arg1 = (BattleSubMode)ToLua.CheckObject(L, 3, typeof(BattleSubMode));
  497. float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
  498. string arg3 = ToLua.CheckString(L, 5);
  499. string arg4 = ToLua.CheckString(L, 6);
  500. ActorData[] arg5 = ToLua.CheckObjectArray<ActorData>(L, 7);
  501. ActorData[] arg6 = ToLua.CheckObjectArray<ActorData>(L, 8);
  502. ServerFighterParam[] arg7 = ToLua.CheckObjectArray<ServerFighterParam>(L, 9);
  503. BattleEndCondition[] arg8 = ToLua.CheckObjectArray<BattleEndCondition>(L, 10);
  504. ValType[] arg9 = ToLua.CheckStructArray<ValType>(L, 11);
  505. int arg10 = (int)LuaDLL.luaL_checknumber(L, 12);
  506. GvGMark[] arg11 = ToLua.CheckObjectArray<GvGMark>(L, 13);
  507. GvGMark[] arg12 = ToLua.CheckObjectArray<GvGMark>(L, 14);
  508. bool o = obj.PreloadTimeBattle(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12);
  509. LuaDLL.lua_pushboolean(L, o);
  510. return 1;
  511. }
  512. catch (Exception e)
  513. {
  514. return LuaDLL.toluaL_exception(L, e);
  515. }
  516. }
  517. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  518. static int ReplayTimeBattle(IntPtr L)
  519. {
  520. try
  521. {
  522. ToLua.CheckArgsCount(L, 7);
  523. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  524. LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
  525. BattleSubMode arg1 = (BattleSubMode)ToLua.CheckObject(L, 3, typeof(BattleSubMode));
  526. float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
  527. string arg3 = ToLua.CheckString(L, 5);
  528. string arg4 = ToLua.CheckString(L, 6);
  529. string arg5 = ToLua.CheckString(L, 7);
  530. bool o = obj.ReplayTimeBattle(arg0, arg1, arg2, arg3, arg4, arg5);
  531. LuaDLL.lua_pushboolean(L, o);
  532. return 1;
  533. }
  534. catch (Exception e)
  535. {
  536. return LuaDLL.toluaL_exception(L, e);
  537. }
  538. }
  539. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  540. static int ForceStopBattle(IntPtr L)
  541. {
  542. try
  543. {
  544. ToLua.CheckArgsCount(L, 1);
  545. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  546. obj.ForceStopBattle();
  547. return 0;
  548. }
  549. catch (Exception e)
  550. {
  551. return LuaDLL.toluaL_exception(L, e);
  552. }
  553. }
  554. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  555. static int ShutDownBattle(IntPtr L)
  556. {
  557. try
  558. {
  559. int count = LuaDLL.lua_gettop(L);
  560. if (count == 1)
  561. {
  562. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  563. obj.ShutDownBattle();
  564. return 0;
  565. }
  566. else if (count == 2)
  567. {
  568. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  569. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  570. obj.ShutDownBattle(arg0);
  571. return 0;
  572. }
  573. else
  574. {
  575. return LuaDLL.luaL_throw(L, "invalid arguments to method: GameMgr.ShutDownBattle");
  576. }
  577. }
  578. catch (Exception e)
  579. {
  580. return LuaDLL.toluaL_exception(L, e);
  581. }
  582. }
  583. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  584. static int DisposeBattle(IntPtr L)
  585. {
  586. try
  587. {
  588. ToLua.CheckArgsCount(L, 1);
  589. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  590. obj.DisposeBattle();
  591. return 0;
  592. }
  593. catch (Exception e)
  594. {
  595. return LuaDLL.toluaL_exception(L, e);
  596. }
  597. }
  598. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  599. static int SetGameSpeed(IntPtr L)
  600. {
  601. try
  602. {
  603. ToLua.CheckArgsCount(L, 2);
  604. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  605. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  606. obj.SetGameSpeed(arg0);
  607. return 0;
  608. }
  609. catch (Exception e)
  610. {
  611. return LuaDLL.toluaL_exception(L, e);
  612. }
  613. }
  614. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  615. static int SaveGameSpeed(IntPtr L)
  616. {
  617. try
  618. {
  619. ToLua.CheckArgsCount(L, 2);
  620. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  621. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  622. obj.SaveGameSpeed(arg0);
  623. return 0;
  624. }
  625. catch (Exception e)
  626. {
  627. return LuaDLL.toluaL_exception(L, e);
  628. }
  629. }
  630. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  631. static int GetGameSpeed(IntPtr L)
  632. {
  633. try
  634. {
  635. ToLua.CheckArgsCount(L, 1);
  636. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  637. float o = obj.GetGameSpeed();
  638. LuaDLL.lua_pushnumber(L, o);
  639. return 1;
  640. }
  641. catch (Exception e)
  642. {
  643. return LuaDLL.toluaL_exception(L, e);
  644. }
  645. }
  646. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  647. static int Random(IntPtr L)
  648. {
  649. try
  650. {
  651. ToLua.CheckArgsCount(L, 3);
  652. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  653. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  654. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  655. int o = obj.Random(arg0, arg1);
  656. LuaDLL.lua_pushinteger(L, o);
  657. return 1;
  658. }
  659. catch (Exception e)
  660. {
  661. return LuaDLL.toluaL_exception(L, e);
  662. }
  663. }
  664. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  665. static int CalcPassedTime(IntPtr L)
  666. {
  667. try
  668. {
  669. ToLua.CheckArgsCount(L, 2);
  670. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  671. long arg0 = LuaDLL.tolua_checkint64(L, 2);
  672. uint o = obj.CalcPassedTime(arg0);
  673. LuaDLL.lua_pushnumber(L, o);
  674. return 1;
  675. }
  676. catch (Exception e)
  677. {
  678. return LuaDLL.toluaL_exception(L, e);
  679. }
  680. }
  681. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  682. static int QuitGame(IntPtr L)
  683. {
  684. try
  685. {
  686. int count = LuaDLL.lua_gettop(L);
  687. if (count == 1)
  688. {
  689. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  690. obj.QuitGame();
  691. return 0;
  692. }
  693. else if (count == 2)
  694. {
  695. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  696. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  697. obj.QuitGame(arg0);
  698. return 0;
  699. }
  700. else
  701. {
  702. return LuaDLL.luaL_throw(L, "invalid arguments to method: GameMgr.QuitGame");
  703. }
  704. }
  705. catch (Exception e)
  706. {
  707. return LuaDLL.toluaL_exception(L, e);
  708. }
  709. }
  710. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  711. static int PlayDialog(IntPtr L)
  712. {
  713. try
  714. {
  715. int count = LuaDLL.lua_gettop(L);
  716. if (count == 2)
  717. {
  718. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  719. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  720. obj.PlayDialog(arg0);
  721. return 0;
  722. }
  723. else if (count == 3)
  724. {
  725. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  726. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  727. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  728. obj.PlayDialog(arg0, arg1);
  729. return 0;
  730. }
  731. else
  732. {
  733. return LuaDLL.luaL_throw(L, "invalid arguments to method: GameMgr.PlayDialog");
  734. }
  735. }
  736. catch (Exception e)
  737. {
  738. return LuaDLL.toluaL_exception(L, e);
  739. }
  740. }
  741. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  742. static int RequestHttpServer(IntPtr L)
  743. {
  744. try
  745. {
  746. ToLua.CheckArgsCount(L, 3);
  747. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  748. string arg0 = ToLua.CheckString(L, 2);
  749. LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3);
  750. obj.RequestHttpServer(arg0, arg1);
  751. return 0;
  752. }
  753. catch (Exception e)
  754. {
  755. return LuaDLL.toluaL_exception(L, e);
  756. }
  757. }
  758. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  759. static int CleanUnusedAssets(IntPtr L)
  760. {
  761. try
  762. {
  763. ToLua.CheckArgsCount(L, 1);
  764. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  765. obj.CleanUnusedAssets();
  766. return 0;
  767. }
  768. catch (Exception e)
  769. {
  770. return LuaDLL.toluaL_exception(L, e);
  771. }
  772. }
  773. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  774. static int OpenUrl(IntPtr L)
  775. {
  776. try
  777. {
  778. ToLua.CheckArgsCount(L, 2);
  779. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  780. string arg0 = ToLua.CheckString(L, 2);
  781. obj.OpenUrl(arg0);
  782. return 0;
  783. }
  784. catch (Exception e)
  785. {
  786. return LuaDLL.toluaL_exception(L, e);
  787. }
  788. }
  789. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  790. static int EnableAntiAliasing(IntPtr L)
  791. {
  792. try
  793. {
  794. ToLua.CheckArgsCount(L, 1);
  795. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  796. obj.EnableAntiAliasing();
  797. return 0;
  798. }
  799. catch (Exception e)
  800. {
  801. return LuaDLL.toluaL_exception(L, e);
  802. }
  803. }
  804. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  805. static int DisableAntiAliasing(IntPtr L)
  806. {
  807. try
  808. {
  809. ToLua.CheckArgsCount(L, 1);
  810. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  811. obj.DisableAntiAliasing();
  812. return 0;
  813. }
  814. catch (Exception e)
  815. {
  816. return LuaDLL.toluaL_exception(L, e);
  817. }
  818. }
  819. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  820. static int SdkInitFunc(IntPtr L)
  821. {
  822. try
  823. {
  824. ToLua.CheckArgsCount(L, 2);
  825. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  826. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  827. obj.SdkInitFunc(arg0);
  828. return 0;
  829. }
  830. catch (Exception e)
  831. {
  832. return LuaDLL.toluaL_exception(L, e);
  833. }
  834. }
  835. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  836. static int SdkLoginFunc(IntPtr L)
  837. {
  838. try
  839. {
  840. ToLua.CheckArgsCount(L, 2);
  841. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  842. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  843. obj.SdkLoginFunc(arg0);
  844. return 0;
  845. }
  846. catch (Exception e)
  847. {
  848. return LuaDLL.toluaL_exception(L, e);
  849. }
  850. }
  851. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  852. static int SdkLogoutFunc(IntPtr L)
  853. {
  854. try
  855. {
  856. ToLua.CheckArgsCount(L, 2);
  857. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  858. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  859. obj.SdkLogoutFunc(arg0);
  860. return 0;
  861. }
  862. catch (Exception e)
  863. {
  864. return LuaDLL.toluaL_exception(L, e);
  865. }
  866. }
  867. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  868. static int SdkPayFunc(IntPtr L)
  869. {
  870. try
  871. {
  872. ToLua.CheckArgsCount(L, 2);
  873. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  874. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  875. obj.SdkPayFunc(arg0);
  876. return 0;
  877. }
  878. catch (Exception e)
  879. {
  880. return LuaDLL.toluaL_exception(L, e);
  881. }
  882. }
  883. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  884. static int SdkQuestionFunc(IntPtr L)
  885. {
  886. try
  887. {
  888. ToLua.CheckArgsCount(L, 2);
  889. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  890. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  891. obj.SdkQuestionFunc(arg0);
  892. return 0;
  893. }
  894. catch (Exception e)
  895. {
  896. return LuaDLL.toluaL_exception(L, e);
  897. }
  898. }
  899. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  900. static int SdkCanEnterServerJudgeFunc(IntPtr L)
  901. {
  902. try
  903. {
  904. ToLua.CheckArgsCount(L, 2);
  905. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  906. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  907. obj.SdkCanEnterServerJudgeFunc(arg0);
  908. return 0;
  909. }
  910. catch (Exception e)
  911. {
  912. return LuaDLL.toluaL_exception(L, e);
  913. }
  914. }
  915. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  916. static int SdkInit(IntPtr L)
  917. {
  918. try
  919. {
  920. ToLua.CheckArgsCount(L, 1);
  921. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  922. obj.SdkInit();
  923. return 0;
  924. }
  925. catch (Exception e)
  926. {
  927. return LuaDLL.toluaL_exception(L, e);
  928. }
  929. }
  930. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  931. static int SdkLogin(IntPtr L)
  932. {
  933. try
  934. {
  935. ToLua.CheckArgsCount(L, 1);
  936. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  937. obj.SdkLogin();
  938. return 0;
  939. }
  940. catch (Exception e)
  941. {
  942. return LuaDLL.toluaL_exception(L, e);
  943. }
  944. }
  945. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  946. static int SdkPay(IntPtr L)
  947. {
  948. try
  949. {
  950. ToLua.CheckArgsCount(L, 8);
  951. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  952. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  953. string arg1 = ToLua.CheckString(L, 3);
  954. string arg2 = ToLua.CheckString(L, 4);
  955. int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
  956. float arg4 = (float)LuaDLL.luaL_checknumber(L, 6);
  957. string arg5 = ToLua.CheckString(L, 7);
  958. string arg6 = ToLua.CheckString(L, 8);
  959. obj.SdkPay(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
  960. return 0;
  961. }
  962. catch (Exception e)
  963. {
  964. return LuaDLL.toluaL_exception(L, e);
  965. }
  966. }
  967. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  968. static int SdkLogout(IntPtr L)
  969. {
  970. try
  971. {
  972. ToLua.CheckArgsCount(L, 1);
  973. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  974. obj.SdkLogout();
  975. return 0;
  976. }
  977. catch (Exception e)
  978. {
  979. return LuaDLL.toluaL_exception(L, e);
  980. }
  981. }
  982. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  983. static int SdkExit(IntPtr L)
  984. {
  985. try
  986. {
  987. ToLua.CheckArgsCount(L, 1);
  988. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  989. obj.SdkExit();
  990. return 0;
  991. }
  992. catch (Exception e)
  993. {
  994. return LuaDLL.toluaL_exception(L, e);
  995. }
  996. }
  997. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  998. static int SdkShowToolbar(IntPtr L)
  999. {
  1000. try
  1001. {
  1002. ToLua.CheckArgsCount(L, 1);
  1003. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  1004. obj.SdkShowToolbar();
  1005. return 0;
  1006. }
  1007. catch (Exception e)
  1008. {
  1009. return LuaDLL.toluaL_exception(L, e);
  1010. }
  1011. }
  1012. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1013. static int SdkHideToolBar(IntPtr L)
  1014. {
  1015. try
  1016. {
  1017. ToLua.CheckArgsCount(L, 1);
  1018. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  1019. obj.SdkHideToolBar();
  1020. return 0;
  1021. }
  1022. catch (Exception e)
  1023. {
  1024. return LuaDLL.toluaL_exception(L, e);
  1025. }
  1026. }
  1027. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1028. static int ClearDifAttr(IntPtr L)
  1029. {
  1030. try
  1031. {
  1032. ToLua.CheckArgsCount(L, 1);
  1033. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  1034. obj.ClearDifAttr();
  1035. return 0;
  1036. }
  1037. catch (Exception e)
  1038. {
  1039. return LuaDLL.toluaL_exception(L, e);
  1040. }
  1041. }
  1042. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1043. static int AddDifAttr(IntPtr L)
  1044. {
  1045. try
  1046. {
  1047. ToLua.CheckArgsCount(L, 3);
  1048. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  1049. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1050. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  1051. obj.AddDifAttr(arg0, arg1);
  1052. return 0;
  1053. }
  1054. catch (Exception e)
  1055. {
  1056. return LuaDLL.toluaL_exception(L, e);
  1057. }
  1058. }
  1059. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1060. static int AddDifAttrs(IntPtr L)
  1061. {
  1062. try
  1063. {
  1064. ToLua.CheckArgsCount(L, 2);
  1065. GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
  1066. System.Collections.Generic.Dictionary<object,object> arg0 = (System.Collections.Generic.Dictionary<object,object>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.Dictionary<object,object>));
  1067. obj.AddDifAttrs(arg0);
  1068. return 0;
  1069. }
  1070. catch (Exception e)
  1071. {
  1072. return LuaDLL.toluaL_exception(L, e);
  1073. }
  1074. }
  1075. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1076. static int op_Equality(IntPtr L)
  1077. {
  1078. try
  1079. {
  1080. ToLua.CheckArgsCount(L, 2);
  1081. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  1082. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  1083. bool o = arg0 == arg1;
  1084. LuaDLL.lua_pushboolean(L, o);
  1085. return 1;
  1086. }
  1087. catch (Exception e)
  1088. {
  1089. return LuaDLL.toluaL_exception(L, e);
  1090. }
  1091. }
  1092. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1093. static int get_VersionUpdateState(IntPtr L)
  1094. {
  1095. try
  1096. {
  1097. LuaDLL.lua_pushstring(L, GameMgr.VersionUpdateState);
  1098. return 1;
  1099. }
  1100. catch (Exception e)
  1101. {
  1102. return LuaDLL.toluaL_exception(L, e);
  1103. }
  1104. }
  1105. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1106. static int get_LoginState(IntPtr L)
  1107. {
  1108. try
  1109. {
  1110. LuaDLL.lua_pushstring(L, GameMgr.LoginState);
  1111. return 1;
  1112. }
  1113. catch (Exception e)
  1114. {
  1115. return LuaDLL.toluaL_exception(L, e);
  1116. }
  1117. }
  1118. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1119. static int get_LoadingState(IntPtr L)
  1120. {
  1121. try
  1122. {
  1123. LuaDLL.lua_pushstring(L, GameMgr.LoadingState);
  1124. return 1;
  1125. }
  1126. catch (Exception e)
  1127. {
  1128. return LuaDLL.toluaL_exception(L, e);
  1129. }
  1130. }
  1131. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1132. static int get_BattleState(IntPtr L)
  1133. {
  1134. try
  1135. {
  1136. LuaDLL.lua_pushstring(L, GameMgr.BattleState);
  1137. return 1;
  1138. }
  1139. catch (Exception e)
  1140. {
  1141. return LuaDLL.toluaL_exception(L, e);
  1142. }
  1143. }
  1144. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1145. static int get_RandSeed(IntPtr L)
  1146. {
  1147. try
  1148. {
  1149. LuaDLL.lua_pushinteger(L, GameMgr.RandSeed);
  1150. return 1;
  1151. }
  1152. catch (Exception e)
  1153. {
  1154. return LuaDLL.toluaL_exception(L, e);
  1155. }
  1156. }
  1157. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1158. static int get_mGameSpeed(IntPtr L)
  1159. {
  1160. object o = null;
  1161. try
  1162. {
  1163. o = ToLua.ToObject(L, 1);
  1164. GameMgr obj = (GameMgr)o;
  1165. float ret = obj.mGameSpeed;
  1166. LuaDLL.lua_pushnumber(L, ret);
  1167. return 1;
  1168. }
  1169. catch(Exception e)
  1170. {
  1171. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mGameSpeed on a nil value");
  1172. }
  1173. }
  1174. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1175. static int get_GameVersion(IntPtr L)
  1176. {
  1177. object o = null;
  1178. try
  1179. {
  1180. o = ToLua.ToObject(L, 1);
  1181. GameMgr obj = (GameMgr)o;
  1182. string ret = obj.GameVersion;
  1183. LuaDLL.lua_pushstring(L, ret);
  1184. return 1;
  1185. }
  1186. catch(Exception e)
  1187. {
  1188. return LuaDLL.toluaL_exception(L, e, o, "attempt to index GameVersion on a nil value");
  1189. }
  1190. }
  1191. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1192. static int get_ResVersion(IntPtr L)
  1193. {
  1194. object o = null;
  1195. try
  1196. {
  1197. o = ToLua.ToObject(L, 1);
  1198. GameMgr obj = (GameMgr)o;
  1199. string ret = obj.ResVersion;
  1200. LuaDLL.lua_pushstring(L, ret);
  1201. return 1;
  1202. }
  1203. catch(Exception e)
  1204. {
  1205. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ResVersion on a nil value");
  1206. }
  1207. }
  1208. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1209. static int get_IsSingle(IntPtr L)
  1210. {
  1211. object o = null;
  1212. try
  1213. {
  1214. o = ToLua.ToObject(L, 1);
  1215. GameMgr obj = (GameMgr)o;
  1216. bool ret = obj.IsSingle;
  1217. LuaDLL.lua_pushboolean(L, ret);
  1218. return 1;
  1219. }
  1220. catch(Exception e)
  1221. {
  1222. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsSingle on a nil value");
  1223. }
  1224. }
  1225. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1226. static int get_GameSpeed(IntPtr L)
  1227. {
  1228. object o = null;
  1229. try
  1230. {
  1231. o = ToLua.ToObject(L, 1);
  1232. GameMgr obj = (GameMgr)o;
  1233. float ret = obj.GameSpeed;
  1234. LuaDLL.lua_pushnumber(L, ret);
  1235. return 1;
  1236. }
  1237. catch(Exception e)
  1238. {
  1239. return LuaDLL.toluaL_exception(L, e, o, "attempt to index GameSpeed on a nil value");
  1240. }
  1241. }
  1242. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1243. static int get_Instance(IntPtr L)
  1244. {
  1245. try
  1246. {
  1247. ToLua.Push(L, GameMgr.Instance);
  1248. return 1;
  1249. }
  1250. catch (Exception e)
  1251. {
  1252. return LuaDLL.toluaL_exception(L, e);
  1253. }
  1254. }
  1255. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1256. static int get_InStartDungeon(IntPtr L)
  1257. {
  1258. object o = null;
  1259. try
  1260. {
  1261. o = ToLua.ToObject(L, 1);
  1262. GameMgr obj = (GameMgr)o;
  1263. bool ret = obj.InStartDungeon;
  1264. LuaDLL.lua_pushboolean(L, ret);
  1265. return 1;
  1266. }
  1267. catch(Exception e)
  1268. {
  1269. return LuaDLL.toluaL_exception(L, e, o, "attempt to index InStartDungeon on a nil value");
  1270. }
  1271. }
  1272. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1273. static int get_IsEditorMode(IntPtr L)
  1274. {
  1275. object o = null;
  1276. try
  1277. {
  1278. o = ToLua.ToObject(L, 1);
  1279. GameMgr obj = (GameMgr)o;
  1280. bool ret = obj.IsEditorMode;
  1281. LuaDLL.lua_pushboolean(L, ret);
  1282. return 1;
  1283. }
  1284. catch(Exception e)
  1285. {
  1286. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsEditorMode on a nil value");
  1287. }
  1288. }
  1289. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1290. static int get_CreateMaleRoot(IntPtr L)
  1291. {
  1292. object o = null;
  1293. try
  1294. {
  1295. o = ToLua.ToObject(L, 1);
  1296. GameMgr obj = (GameMgr)o;
  1297. UnityEngine.GameObject ret = obj.CreateMaleRoot;
  1298. ToLua.PushSealed(L, ret);
  1299. return 1;
  1300. }
  1301. catch(Exception e)
  1302. {
  1303. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CreateMaleRoot on a nil value");
  1304. }
  1305. }
  1306. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1307. static int get_CreateFemaleRoot(IntPtr L)
  1308. {
  1309. object o = null;
  1310. try
  1311. {
  1312. o = ToLua.ToObject(L, 1);
  1313. GameMgr obj = (GameMgr)o;
  1314. UnityEngine.GameObject ret = obj.CreateFemaleRoot;
  1315. ToLua.PushSealed(L, ret);
  1316. return 1;
  1317. }
  1318. catch(Exception e)
  1319. {
  1320. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CreateFemaleRoot on a nil value");
  1321. }
  1322. }
  1323. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1324. static int get_CreateShowRoot(IntPtr L)
  1325. {
  1326. object o = null;
  1327. try
  1328. {
  1329. o = ToLua.ToObject(L, 1);
  1330. GameMgr obj = (GameMgr)o;
  1331. UnityEngine.GameObject ret = obj.CreateShowRoot;
  1332. ToLua.PushSealed(L, ret);
  1333. return 1;
  1334. }
  1335. catch(Exception e)
  1336. {
  1337. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CreateShowRoot on a nil value");
  1338. }
  1339. }
  1340. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1341. static int get_NetStatus(IntPtr L)
  1342. {
  1343. object o = null;
  1344. try
  1345. {
  1346. o = ToLua.ToObject(L, 1);
  1347. GameMgr obj = (GameMgr)o;
  1348. eNetType ret = obj.NetStatus;
  1349. ToLua.Push(L, ret);
  1350. return 1;
  1351. }
  1352. catch(Exception e)
  1353. {
  1354. return LuaDLL.toluaL_exception(L, e, o, "attempt to index NetStatus on a nil value");
  1355. }
  1356. }
  1357. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1358. static int get_CharacterInfo(IntPtr L)
  1359. {
  1360. object o = null;
  1361. try
  1362. {
  1363. o = ToLua.ToObject(L, 1);
  1364. GameMgr obj = (GameMgr)o;
  1365. MainCharacter ret = obj.CharacterInfo;
  1366. ToLua.PushObject(L, ret);
  1367. return 1;
  1368. }
  1369. catch(Exception e)
  1370. {
  1371. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CharacterInfo on a nil value");
  1372. }
  1373. }
  1374. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1375. static int get_DeviceId(IntPtr L)
  1376. {
  1377. object o = null;
  1378. try
  1379. {
  1380. o = ToLua.ToObject(L, 1);
  1381. GameMgr obj = (GameMgr)o;
  1382. string ret = obj.DeviceId;
  1383. LuaDLL.lua_pushstring(L, ret);
  1384. return 1;
  1385. }
  1386. catch(Exception e)
  1387. {
  1388. return LuaDLL.toluaL_exception(L, e, o, "attempt to index DeviceId on a nil value");
  1389. }
  1390. }
  1391. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1392. static int get_CurLangKey(IntPtr L)
  1393. {
  1394. object o = null;
  1395. try
  1396. {
  1397. o = ToLua.ToObject(L, 1);
  1398. GameMgr obj = (GameMgr)o;
  1399. string ret = obj.CurLangKey;
  1400. LuaDLL.lua_pushstring(L, ret);
  1401. return 1;
  1402. }
  1403. catch(Exception e)
  1404. {
  1405. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CurLangKey on a nil value");
  1406. }
  1407. }
  1408. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1409. static int get_IsMobileDevice(IntPtr L)
  1410. {
  1411. object o = null;
  1412. try
  1413. {
  1414. o = ToLua.ToObject(L, 1);
  1415. GameMgr obj = (GameMgr)o;
  1416. bool ret = obj.IsMobileDevice;
  1417. LuaDLL.lua_pushboolean(L, ret);
  1418. return 1;
  1419. }
  1420. catch(Exception e)
  1421. {
  1422. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsMobileDevice on a nil value");
  1423. }
  1424. }
  1425. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1426. static int get_IsBadDevice(IntPtr L)
  1427. {
  1428. object o = null;
  1429. try
  1430. {
  1431. o = ToLua.ToObject(L, 1);
  1432. GameMgr obj = (GameMgr)o;
  1433. bool ret = obj.IsBadDevice;
  1434. LuaDLL.lua_pushboolean(L, ret);
  1435. return 1;
  1436. }
  1437. catch(Exception e)
  1438. {
  1439. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsBadDevice on a nil value");
  1440. }
  1441. }
  1442. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1443. static int get_IsNormalDevice(IntPtr L)
  1444. {
  1445. object o = null;
  1446. try
  1447. {
  1448. o = ToLua.ToObject(L, 1);
  1449. GameMgr obj = (GameMgr)o;
  1450. bool ret = obj.IsNormalDevice;
  1451. LuaDLL.lua_pushboolean(L, ret);
  1452. return 1;
  1453. }
  1454. catch(Exception e)
  1455. {
  1456. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsNormalDevice on a nil value");
  1457. }
  1458. }
  1459. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1460. static int get_IsGoodDevice(IntPtr L)
  1461. {
  1462. object o = null;
  1463. try
  1464. {
  1465. o = ToLua.ToObject(L, 1);
  1466. GameMgr obj = (GameMgr)o;
  1467. bool ret = obj.IsGoodDevice;
  1468. LuaDLL.lua_pushboolean(L, ret);
  1469. return 1;
  1470. }
  1471. catch(Exception e)
  1472. {
  1473. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsGoodDevice on a nil value");
  1474. }
  1475. }
  1476. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1477. static int get_maxFrameTime(IntPtr L)
  1478. {
  1479. object o = null;
  1480. try
  1481. {
  1482. o = ToLua.ToObject(L, 1);
  1483. GameMgr obj = (GameMgr)o;
  1484. int ret = obj.maxFrameTime;
  1485. LuaDLL.lua_pushinteger(L, ret);
  1486. return 1;
  1487. }
  1488. catch(Exception e)
  1489. {
  1490. return LuaDLL.toluaL_exception(L, e, o, "attempt to index maxFrameTime on a nil value");
  1491. }
  1492. }
  1493. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1494. static int set_RandSeed(IntPtr L)
  1495. {
  1496. try
  1497. {
  1498. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1499. GameMgr.RandSeed = arg0;
  1500. return 0;
  1501. }
  1502. catch (Exception e)
  1503. {
  1504. return LuaDLL.toluaL_exception(L, e);
  1505. }
  1506. }
  1507. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1508. static int set_mGameSpeed(IntPtr L)
  1509. {
  1510. object o = null;
  1511. try
  1512. {
  1513. o = ToLua.ToObject(L, 1);
  1514. GameMgr obj = (GameMgr)o;
  1515. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1516. obj.mGameSpeed = arg0;
  1517. return 0;
  1518. }
  1519. catch(Exception e)
  1520. {
  1521. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mGameSpeed on a nil value");
  1522. }
  1523. }
  1524. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1525. static int set_CurLangKey(IntPtr L)
  1526. {
  1527. object o = null;
  1528. try
  1529. {
  1530. o = ToLua.ToObject(L, 1);
  1531. GameMgr obj = (GameMgr)o;
  1532. string arg0 = ToLua.CheckString(L, 2);
  1533. obj.CurLangKey = arg0;
  1534. return 0;
  1535. }
  1536. catch(Exception e)
  1537. {
  1538. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CurLangKey on a nil value");
  1539. }
  1540. }
  1541. }