GameMgrWrap.cs 39 KB

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