源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

647 lines
18 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_DebugWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.Debug), typeof(System.Object));
  9. L.RegFunction("DrawLine", DrawLine);
  10. L.RegFunction("DrawRay", DrawRay);
  11. L.RegFunction("Break", Break);
  12. L.RegFunction("DebugBreak", DebugBreak);
  13. L.RegFunction("Log", Log);
  14. L.RegFunction("LogFormat", LogFormat);
  15. L.RegFunction("LogError", LogError);
  16. L.RegFunction("LogErrorFormat", LogErrorFormat);
  17. L.RegFunction("ClearDeveloperConsole", ClearDeveloperConsole);
  18. L.RegFunction("LogException", LogException);
  19. L.RegFunction("LogWarning", LogWarning);
  20. L.RegFunction("LogWarningFormat", LogWarningFormat);
  21. L.RegFunction("Assert", Assert);
  22. L.RegFunction("AssertFormat", AssertFormat);
  23. L.RegFunction("LogAssertion", LogAssertion);
  24. L.RegFunction("LogAssertionFormat", LogAssertionFormat);
  25. L.RegFunction("New", _CreateUnityEngine_Debug);
  26. L.RegFunction("__tostring", ToLua.op_ToString);
  27. L.RegVar("unityLogger", get_unityLogger, null);
  28. L.RegVar("developerConsoleVisible", get_developerConsoleVisible, set_developerConsoleVisible);
  29. L.RegVar("isDebugBuild", get_isDebugBuild, null);
  30. L.EndClass();
  31. }
  32. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  33. static int _CreateUnityEngine_Debug(IntPtr L)
  34. {
  35. try
  36. {
  37. int count = LuaDLL.lua_gettop(L);
  38. if (count == 0)
  39. {
  40. UnityEngine.Debug obj = new UnityEngine.Debug();
  41. ToLua.PushObject(L, obj);
  42. return 1;
  43. }
  44. else
  45. {
  46. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Debug.New");
  47. }
  48. }
  49. catch(Exception e)
  50. {
  51. return LuaDLL.toluaL_exception(L, e);
  52. }
  53. }
  54. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  55. static int DrawLine(IntPtr L)
  56. {
  57. try
  58. {
  59. int count = LuaDLL.lua_gettop(L);
  60. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3)))
  61. {
  62. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 1);
  63. UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 2);
  64. UnityEngine.Debug.DrawLine(arg0, arg1);
  65. return 0;
  66. }
  67. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(UnityEngine.Color)))
  68. {
  69. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 1);
  70. UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 2);
  71. UnityEngine.Color arg2 = ToLua.ToColor(L, 3);
  72. UnityEngine.Debug.DrawLine(arg0, arg1, arg2);
  73. return 0;
  74. }
  75. else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(UnityEngine.Color), typeof(float)))
  76. {
  77. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 1);
  78. UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 2);
  79. UnityEngine.Color arg2 = ToLua.ToColor(L, 3);
  80. float arg3 = (float)LuaDLL.lua_tonumber(L, 4);
  81. UnityEngine.Debug.DrawLine(arg0, arg1, arg2, arg3);
  82. return 0;
  83. }
  84. else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(UnityEngine.Color), typeof(float), typeof(bool)))
  85. {
  86. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 1);
  87. UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 2);
  88. UnityEngine.Color arg2 = ToLua.ToColor(L, 3);
  89. float arg3 = (float)LuaDLL.lua_tonumber(L, 4);
  90. bool arg4 = LuaDLL.lua_toboolean(L, 5);
  91. UnityEngine.Debug.DrawLine(arg0, arg1, arg2, arg3, arg4);
  92. return 0;
  93. }
  94. else
  95. {
  96. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Debug.DrawLine");
  97. }
  98. }
  99. catch(Exception e)
  100. {
  101. return LuaDLL.toluaL_exception(L, e);
  102. }
  103. }
  104. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  105. static int DrawRay(IntPtr L)
  106. {
  107. try
  108. {
  109. int count = LuaDLL.lua_gettop(L);
  110. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3)))
  111. {
  112. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 1);
  113. UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 2);
  114. UnityEngine.Debug.DrawRay(arg0, arg1);
  115. return 0;
  116. }
  117. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(UnityEngine.Color)))
  118. {
  119. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 1);
  120. UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 2);
  121. UnityEngine.Color arg2 = ToLua.ToColor(L, 3);
  122. UnityEngine.Debug.DrawRay(arg0, arg1, arg2);
  123. return 0;
  124. }
  125. else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(UnityEngine.Color), typeof(float)))
  126. {
  127. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 1);
  128. UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 2);
  129. UnityEngine.Color arg2 = ToLua.ToColor(L, 3);
  130. float arg3 = (float)LuaDLL.lua_tonumber(L, 4);
  131. UnityEngine.Debug.DrawRay(arg0, arg1, arg2, arg3);
  132. return 0;
  133. }
  134. else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Vector3), typeof(UnityEngine.Vector3), typeof(UnityEngine.Color), typeof(float), typeof(bool)))
  135. {
  136. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 1);
  137. UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 2);
  138. UnityEngine.Color arg2 = ToLua.ToColor(L, 3);
  139. float arg3 = (float)LuaDLL.lua_tonumber(L, 4);
  140. bool arg4 = LuaDLL.lua_toboolean(L, 5);
  141. UnityEngine.Debug.DrawRay(arg0, arg1, arg2, arg3, arg4);
  142. return 0;
  143. }
  144. else
  145. {
  146. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Debug.DrawRay");
  147. }
  148. }
  149. catch(Exception e)
  150. {
  151. return LuaDLL.toluaL_exception(L, e);
  152. }
  153. }
  154. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  155. static int Break(IntPtr L)
  156. {
  157. try
  158. {
  159. ToLua.CheckArgsCount(L, 0);
  160. UnityEngine.Debug.Break();
  161. return 0;
  162. }
  163. catch(Exception e)
  164. {
  165. return LuaDLL.toluaL_exception(L, e);
  166. }
  167. }
  168. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  169. static int DebugBreak(IntPtr L)
  170. {
  171. try
  172. {
  173. ToLua.CheckArgsCount(L, 0);
  174. UnityEngine.Debug.DebugBreak();
  175. return 0;
  176. }
  177. catch(Exception e)
  178. {
  179. return LuaDLL.toluaL_exception(L, e);
  180. }
  181. }
  182. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  183. static int Log(IntPtr L)
  184. {
  185. try
  186. {
  187. int count = LuaDLL.lua_gettop(L);
  188. if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(object)))
  189. {
  190. object arg0 = ToLua.ToVarObject(L, 1);
  191. UnityEngine.Debug.Log(arg0);
  192. return 0;
  193. }
  194. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(object), typeof(UnityEngine.Object)))
  195. {
  196. object arg0 = ToLua.ToVarObject(L, 1);
  197. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  198. UnityEngine.Debug.Log(arg0, arg1);
  199. return 0;
  200. }
  201. else
  202. {
  203. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Debug.Log");
  204. }
  205. }
  206. catch(Exception e)
  207. {
  208. return LuaDLL.toluaL_exception(L, e);
  209. }
  210. }
  211. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  212. static int LogFormat(IntPtr L)
  213. {
  214. try
  215. {
  216. int count = LuaDLL.lua_gettop(L);
  217. if (TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Object), typeof(string)) && TypeChecker.CheckParamsType(L, typeof(object), 3, count - 2))
  218. {
  219. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  220. string arg1 = ToLua.ToString(L, 2);
  221. object[] arg2 = ToLua.ToParamsObject(L, 3, count - 2);
  222. UnityEngine.Debug.LogFormat(arg0, arg1, arg2);
  223. return 0;
  224. }
  225. else if (TypeChecker.CheckTypes(L, 1, typeof(string)) && TypeChecker.CheckParamsType(L, typeof(object), 2, count - 1))
  226. {
  227. string arg0 = ToLua.ToString(L, 1);
  228. object[] arg1 = ToLua.ToParamsObject(L, 2, count - 1);
  229. UnityEngine.Debug.LogFormat(arg0, arg1);
  230. return 0;
  231. }
  232. else
  233. {
  234. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Debug.LogFormat");
  235. }
  236. }
  237. catch(Exception e)
  238. {
  239. return LuaDLL.toluaL_exception(L, e);
  240. }
  241. }
  242. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  243. static int LogError(IntPtr L)
  244. {
  245. try
  246. {
  247. int count = LuaDLL.lua_gettop(L);
  248. if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(object)))
  249. {
  250. object arg0 = ToLua.ToVarObject(L, 1);
  251. UnityEngine.Debug.LogError(arg0);
  252. return 0;
  253. }
  254. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(object), typeof(UnityEngine.Object)))
  255. {
  256. object arg0 = ToLua.ToVarObject(L, 1);
  257. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  258. UnityEngine.Debug.LogError(arg0, arg1);
  259. return 0;
  260. }
  261. else
  262. {
  263. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Debug.LogError");
  264. }
  265. }
  266. catch(Exception e)
  267. {
  268. return LuaDLL.toluaL_exception(L, e);
  269. }
  270. }
  271. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  272. static int LogErrorFormat(IntPtr L)
  273. {
  274. try
  275. {
  276. int count = LuaDLL.lua_gettop(L);
  277. if (TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Object), typeof(string)) && TypeChecker.CheckParamsType(L, typeof(object), 3, count - 2))
  278. {
  279. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  280. string arg1 = ToLua.ToString(L, 2);
  281. object[] arg2 = ToLua.ToParamsObject(L, 3, count - 2);
  282. UnityEngine.Debug.LogErrorFormat(arg0, arg1, arg2);
  283. return 0;
  284. }
  285. else if (TypeChecker.CheckTypes(L, 1, typeof(string)) && TypeChecker.CheckParamsType(L, typeof(object), 2, count - 1))
  286. {
  287. string arg0 = ToLua.ToString(L, 1);
  288. object[] arg1 = ToLua.ToParamsObject(L, 2, count - 1);
  289. UnityEngine.Debug.LogErrorFormat(arg0, arg1);
  290. return 0;
  291. }
  292. else
  293. {
  294. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Debug.LogErrorFormat");
  295. }
  296. }
  297. catch(Exception e)
  298. {
  299. return LuaDLL.toluaL_exception(L, e);
  300. }
  301. }
  302. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  303. static int ClearDeveloperConsole(IntPtr L)
  304. {
  305. try
  306. {
  307. ToLua.CheckArgsCount(L, 0);
  308. UnityEngine.Debug.ClearDeveloperConsole();
  309. return 0;
  310. }
  311. catch(Exception e)
  312. {
  313. return LuaDLL.toluaL_exception(L, e);
  314. }
  315. }
  316. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  317. static int LogException(IntPtr L)
  318. {
  319. try
  320. {
  321. int count = LuaDLL.lua_gettop(L);
  322. if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(System.Exception)))
  323. {
  324. System.Exception arg0 = (System.Exception)ToLua.ToObject(L, 1);
  325. UnityEngine.Debug.LogException(arg0);
  326. return 0;
  327. }
  328. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(System.Exception), typeof(UnityEngine.Object)))
  329. {
  330. System.Exception arg0 = (System.Exception)ToLua.ToObject(L, 1);
  331. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  332. UnityEngine.Debug.LogException(arg0, arg1);
  333. return 0;
  334. }
  335. else
  336. {
  337. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Debug.LogException");
  338. }
  339. }
  340. catch(Exception e)
  341. {
  342. return LuaDLL.toluaL_exception(L, e);
  343. }
  344. }
  345. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  346. static int LogWarning(IntPtr L)
  347. {
  348. try
  349. {
  350. int count = LuaDLL.lua_gettop(L);
  351. if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(object)))
  352. {
  353. object arg0 = ToLua.ToVarObject(L, 1);
  354. UnityEngine.Debug.LogWarning(arg0);
  355. return 0;
  356. }
  357. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(object), typeof(UnityEngine.Object)))
  358. {
  359. object arg0 = ToLua.ToVarObject(L, 1);
  360. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  361. UnityEngine.Debug.LogWarning(arg0, arg1);
  362. return 0;
  363. }
  364. else
  365. {
  366. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Debug.LogWarning");
  367. }
  368. }
  369. catch(Exception e)
  370. {
  371. return LuaDLL.toluaL_exception(L, e);
  372. }
  373. }
  374. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  375. static int LogWarningFormat(IntPtr L)
  376. {
  377. try
  378. {
  379. int count = LuaDLL.lua_gettop(L);
  380. if (TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Object), typeof(string)) && TypeChecker.CheckParamsType(L, typeof(object), 3, count - 2))
  381. {
  382. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  383. string arg1 = ToLua.ToString(L, 2);
  384. object[] arg2 = ToLua.ToParamsObject(L, 3, count - 2);
  385. UnityEngine.Debug.LogWarningFormat(arg0, arg1, arg2);
  386. return 0;
  387. }
  388. else if (TypeChecker.CheckTypes(L, 1, typeof(string)) && TypeChecker.CheckParamsType(L, typeof(object), 2, count - 1))
  389. {
  390. string arg0 = ToLua.ToString(L, 1);
  391. object[] arg1 = ToLua.ToParamsObject(L, 2, count - 1);
  392. UnityEngine.Debug.LogWarningFormat(arg0, arg1);
  393. return 0;
  394. }
  395. else
  396. {
  397. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Debug.LogWarningFormat");
  398. }
  399. }
  400. catch(Exception e)
  401. {
  402. return LuaDLL.toluaL_exception(L, e);
  403. }
  404. }
  405. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  406. static int Assert(IntPtr L)
  407. {
  408. try
  409. {
  410. int count = LuaDLL.lua_gettop(L);
  411. if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(bool)))
  412. {
  413. bool arg0 = LuaDLL.lua_toboolean(L, 1);
  414. UnityEngine.Debug.Assert(arg0);
  415. return 0;
  416. }
  417. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(bool), typeof(UnityEngine.Object)))
  418. {
  419. bool arg0 = LuaDLL.lua_toboolean(L, 1);
  420. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  421. UnityEngine.Debug.Assert(arg0, arg1);
  422. return 0;
  423. }
  424. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(bool), typeof(string)))
  425. {
  426. bool arg0 = LuaDLL.lua_toboolean(L, 1);
  427. string arg1 = ToLua.ToString(L, 2);
  428. UnityEngine.Debug.Assert(arg0, arg1);
  429. return 0;
  430. }
  431. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(bool), typeof(object)))
  432. {
  433. bool arg0 = LuaDLL.lua_toboolean(L, 1);
  434. object arg1 = ToLua.ToVarObject(L, 2);
  435. UnityEngine.Debug.Assert(arg0, arg1);
  436. return 0;
  437. }
  438. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(bool), typeof(string), typeof(UnityEngine.Object)))
  439. {
  440. bool arg0 = LuaDLL.lua_toboolean(L, 1);
  441. string arg1 = ToLua.ToString(L, 2);
  442. UnityEngine.Object arg2 = (UnityEngine.Object)ToLua.ToObject(L, 3);
  443. UnityEngine.Debug.Assert(arg0, arg1, arg2);
  444. return 0;
  445. }
  446. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(bool), typeof(object), typeof(UnityEngine.Object)))
  447. {
  448. bool arg0 = LuaDLL.lua_toboolean(L, 1);
  449. object arg1 = ToLua.ToVarObject(L, 2);
  450. UnityEngine.Object arg2 = (UnityEngine.Object)ToLua.ToObject(L, 3);
  451. UnityEngine.Debug.Assert(arg0, arg1, arg2);
  452. return 0;
  453. }
  454. else
  455. {
  456. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Debug.Assert");
  457. }
  458. }
  459. catch(Exception e)
  460. {
  461. return LuaDLL.toluaL_exception(L, e);
  462. }
  463. }
  464. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  465. static int AssertFormat(IntPtr L)
  466. {
  467. try
  468. {
  469. int count = LuaDLL.lua_gettop(L);
  470. if (TypeChecker.CheckTypes(L, 1, typeof(bool), typeof(UnityEngine.Object), typeof(string)) && TypeChecker.CheckParamsType(L, typeof(object), 4, count - 3))
  471. {
  472. bool arg0 = LuaDLL.lua_toboolean(L, 1);
  473. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  474. string arg2 = ToLua.ToString(L, 3);
  475. object[] arg3 = ToLua.ToParamsObject(L, 4, count - 3);
  476. UnityEngine.Debug.AssertFormat(arg0, arg1, arg2, arg3);
  477. return 0;
  478. }
  479. else if (TypeChecker.CheckTypes(L, 1, typeof(bool), typeof(string)) && TypeChecker.CheckParamsType(L, typeof(object), 3, count - 2))
  480. {
  481. bool arg0 = LuaDLL.lua_toboolean(L, 1);
  482. string arg1 = ToLua.ToString(L, 2);
  483. object[] arg2 = ToLua.ToParamsObject(L, 3, count - 2);
  484. UnityEngine.Debug.AssertFormat(arg0, arg1, arg2);
  485. return 0;
  486. }
  487. else
  488. {
  489. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Debug.AssertFormat");
  490. }
  491. }
  492. catch(Exception e)
  493. {
  494. return LuaDLL.toluaL_exception(L, e);
  495. }
  496. }
  497. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  498. static int LogAssertion(IntPtr L)
  499. {
  500. try
  501. {
  502. int count = LuaDLL.lua_gettop(L);
  503. if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(object)))
  504. {
  505. object arg0 = ToLua.ToVarObject(L, 1);
  506. UnityEngine.Debug.LogAssertion(arg0);
  507. return 0;
  508. }
  509. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(object), typeof(UnityEngine.Object)))
  510. {
  511. object arg0 = ToLua.ToVarObject(L, 1);
  512. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  513. UnityEngine.Debug.LogAssertion(arg0, arg1);
  514. return 0;
  515. }
  516. else
  517. {
  518. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Debug.LogAssertion");
  519. }
  520. }
  521. catch(Exception e)
  522. {
  523. return LuaDLL.toluaL_exception(L, e);
  524. }
  525. }
  526. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  527. static int LogAssertionFormat(IntPtr L)
  528. {
  529. try
  530. {
  531. int count = LuaDLL.lua_gettop(L);
  532. if (TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Object), typeof(string)) && TypeChecker.CheckParamsType(L, typeof(object), 3, count - 2))
  533. {
  534. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  535. string arg1 = ToLua.ToString(L, 2);
  536. object[] arg2 = ToLua.ToParamsObject(L, 3, count - 2);
  537. UnityEngine.Debug.LogAssertionFormat(arg0, arg1, arg2);
  538. return 0;
  539. }
  540. else if (TypeChecker.CheckTypes(L, 1, typeof(string)) && TypeChecker.CheckParamsType(L, typeof(object), 2, count - 1))
  541. {
  542. string arg0 = ToLua.ToString(L, 1);
  543. object[] arg1 = ToLua.ToParamsObject(L, 2, count - 1);
  544. UnityEngine.Debug.LogAssertionFormat(arg0, arg1);
  545. return 0;
  546. }
  547. else
  548. {
  549. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Debug.LogAssertionFormat");
  550. }
  551. }
  552. catch(Exception e)
  553. {
  554. return LuaDLL.toluaL_exception(L, e);
  555. }
  556. }
  557. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  558. static int get_unityLogger(IntPtr L)
  559. {
  560. try
  561. {
  562. ToLua.PushObject(L, UnityEngine.Debug.unityLogger);
  563. return 1;
  564. }
  565. catch(Exception e)
  566. {
  567. return LuaDLL.toluaL_exception(L, e);
  568. }
  569. }
  570. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  571. static int get_developerConsoleVisible(IntPtr L)
  572. {
  573. try
  574. {
  575. LuaDLL.lua_pushboolean(L, UnityEngine.Debug.developerConsoleVisible);
  576. return 1;
  577. }
  578. catch(Exception e)
  579. {
  580. return LuaDLL.toluaL_exception(L, e);
  581. }
  582. }
  583. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  584. static int get_isDebugBuild(IntPtr L)
  585. {
  586. try
  587. {
  588. LuaDLL.lua_pushboolean(L, UnityEngine.Debug.isDebugBuild);
  589. return 1;
  590. }
  591. catch(Exception e)
  592. {
  593. return LuaDLL.toluaL_exception(L, e);
  594. }
  595. }
  596. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  597. static int set_developerConsoleVisible(IntPtr L)
  598. {
  599. try
  600. {
  601. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  602. UnityEngine.Debug.developerConsoleVisible = arg0;
  603. return 0;
  604. }
  605. catch(Exception e)
  606. {
  607. return LuaDLL.toluaL_exception(L, e);
  608. }
  609. }
  610. }