GameMgrWrap.cs 40 KB

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