源战役客户端
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.

358 lines
7.4 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_TimeWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginStaticLibs("Time");
  9. L.RegVar("time", get_time, null);
  10. L.RegVar("timeSinceLevelLoad", get_timeSinceLevelLoad, null);
  11. L.RegVar("deltaTime", get_deltaTime, null);
  12. L.RegVar("fixedTime", get_fixedTime, null);
  13. L.RegVar("unscaledTime", get_unscaledTime, null);
  14. L.RegVar("fixedUnscaledTime", get_fixedUnscaledTime, null);
  15. L.RegVar("unscaledDeltaTime", get_unscaledDeltaTime, null);
  16. L.RegVar("fixedUnscaledDeltaTime", get_fixedUnscaledDeltaTime, null);
  17. L.RegVar("fixedDeltaTime", get_fixedDeltaTime, set_fixedDeltaTime);
  18. L.RegVar("maximumDeltaTime", get_maximumDeltaTime, set_maximumDeltaTime);
  19. L.RegVar("smoothDeltaTime", get_smoothDeltaTime, null);
  20. L.RegVar("maximumParticleDeltaTime", get_maximumParticleDeltaTime, set_maximumParticleDeltaTime);
  21. L.RegVar("timeScale", get_timeScale, set_timeScale);
  22. L.RegVar("frameCount", get_frameCount, null);
  23. L.RegVar("renderedFrameCount", get_renderedFrameCount, null);
  24. L.RegVar("realtimeSinceStartup", get_realtimeSinceStartup, null);
  25. L.RegVar("captureFramerate", get_captureFramerate, set_captureFramerate);
  26. L.RegVar("inFixedTimeStep", get_inFixedTimeStep, null);
  27. L.EndStaticLibs();
  28. }
  29. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  30. static int get_time(IntPtr L)
  31. {
  32. try
  33. {
  34. LuaDLL.lua_pushnumber(L, UnityEngine.Time.time);
  35. return 1;
  36. }
  37. catch(Exception e)
  38. {
  39. return LuaDLL.toluaL_exception(L, e);
  40. }
  41. }
  42. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  43. static int get_timeSinceLevelLoad(IntPtr L)
  44. {
  45. try
  46. {
  47. LuaDLL.lua_pushnumber(L, UnityEngine.Time.timeSinceLevelLoad);
  48. return 1;
  49. }
  50. catch(Exception e)
  51. {
  52. return LuaDLL.toluaL_exception(L, e);
  53. }
  54. }
  55. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  56. static int get_deltaTime(IntPtr L)
  57. {
  58. try
  59. {
  60. LuaDLL.lua_pushnumber(L, UnityEngine.Time.deltaTime);
  61. return 1;
  62. }
  63. catch(Exception e)
  64. {
  65. return LuaDLL.toluaL_exception(L, e);
  66. }
  67. }
  68. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  69. static int get_fixedTime(IntPtr L)
  70. {
  71. try
  72. {
  73. LuaDLL.lua_pushnumber(L, UnityEngine.Time.fixedTime);
  74. return 1;
  75. }
  76. catch(Exception e)
  77. {
  78. return LuaDLL.toluaL_exception(L, e);
  79. }
  80. }
  81. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  82. static int get_unscaledTime(IntPtr L)
  83. {
  84. try
  85. {
  86. LuaDLL.lua_pushnumber(L, UnityEngine.Time.unscaledTime);
  87. return 1;
  88. }
  89. catch(Exception e)
  90. {
  91. return LuaDLL.toluaL_exception(L, e);
  92. }
  93. }
  94. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  95. static int get_fixedUnscaledTime(IntPtr L)
  96. {
  97. try
  98. {
  99. LuaDLL.lua_pushnumber(L, UnityEngine.Time.fixedUnscaledTime);
  100. return 1;
  101. }
  102. catch(Exception e)
  103. {
  104. return LuaDLL.toluaL_exception(L, e);
  105. }
  106. }
  107. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  108. static int get_unscaledDeltaTime(IntPtr L)
  109. {
  110. try
  111. {
  112. LuaDLL.lua_pushnumber(L, UnityEngine.Time.unscaledDeltaTime);
  113. return 1;
  114. }
  115. catch(Exception e)
  116. {
  117. return LuaDLL.toluaL_exception(L, e);
  118. }
  119. }
  120. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  121. static int get_fixedUnscaledDeltaTime(IntPtr L)
  122. {
  123. try
  124. {
  125. LuaDLL.lua_pushnumber(L, UnityEngine.Time.fixedUnscaledDeltaTime);
  126. return 1;
  127. }
  128. catch(Exception e)
  129. {
  130. return LuaDLL.toluaL_exception(L, e);
  131. }
  132. }
  133. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  134. static int get_fixedDeltaTime(IntPtr L)
  135. {
  136. try
  137. {
  138. LuaDLL.lua_pushnumber(L, UnityEngine.Time.fixedDeltaTime);
  139. return 1;
  140. }
  141. catch(Exception e)
  142. {
  143. return LuaDLL.toluaL_exception(L, e);
  144. }
  145. }
  146. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  147. static int get_maximumDeltaTime(IntPtr L)
  148. {
  149. try
  150. {
  151. LuaDLL.lua_pushnumber(L, UnityEngine.Time.maximumDeltaTime);
  152. return 1;
  153. }
  154. catch(Exception e)
  155. {
  156. return LuaDLL.toluaL_exception(L, e);
  157. }
  158. }
  159. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  160. static int get_smoothDeltaTime(IntPtr L)
  161. {
  162. try
  163. {
  164. LuaDLL.lua_pushnumber(L, UnityEngine.Time.smoothDeltaTime);
  165. return 1;
  166. }
  167. catch(Exception e)
  168. {
  169. return LuaDLL.toluaL_exception(L, e);
  170. }
  171. }
  172. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  173. static int get_maximumParticleDeltaTime(IntPtr L)
  174. {
  175. try
  176. {
  177. LuaDLL.lua_pushnumber(L, UnityEngine.Time.maximumParticleDeltaTime);
  178. return 1;
  179. }
  180. catch(Exception e)
  181. {
  182. return LuaDLL.toluaL_exception(L, e);
  183. }
  184. }
  185. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  186. static int get_timeScale(IntPtr L)
  187. {
  188. try
  189. {
  190. LuaDLL.lua_pushnumber(L, UnityEngine.Time.timeScale);
  191. return 1;
  192. }
  193. catch(Exception e)
  194. {
  195. return LuaDLL.toluaL_exception(L, e);
  196. }
  197. }
  198. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  199. static int get_frameCount(IntPtr L)
  200. {
  201. try
  202. {
  203. LuaDLL.lua_pushinteger(L, UnityEngine.Time.frameCount);
  204. return 1;
  205. }
  206. catch(Exception e)
  207. {
  208. return LuaDLL.toluaL_exception(L, e);
  209. }
  210. }
  211. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  212. static int get_renderedFrameCount(IntPtr L)
  213. {
  214. try
  215. {
  216. LuaDLL.lua_pushinteger(L, UnityEngine.Time.renderedFrameCount);
  217. return 1;
  218. }
  219. catch(Exception e)
  220. {
  221. return LuaDLL.toluaL_exception(L, e);
  222. }
  223. }
  224. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  225. static int get_realtimeSinceStartup(IntPtr L)
  226. {
  227. try
  228. {
  229. LuaDLL.lua_pushnumber(L, UnityEngine.Time.realtimeSinceStartup);
  230. return 1;
  231. }
  232. catch(Exception e)
  233. {
  234. return LuaDLL.toluaL_exception(L, e);
  235. }
  236. }
  237. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  238. static int get_captureFramerate(IntPtr L)
  239. {
  240. try
  241. {
  242. LuaDLL.lua_pushinteger(L, UnityEngine.Time.captureFramerate);
  243. return 1;
  244. }
  245. catch(Exception e)
  246. {
  247. return LuaDLL.toluaL_exception(L, e);
  248. }
  249. }
  250. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  251. static int get_inFixedTimeStep(IntPtr L)
  252. {
  253. try
  254. {
  255. LuaDLL.lua_pushboolean(L, UnityEngine.Time.inFixedTimeStep);
  256. return 1;
  257. }
  258. catch(Exception e)
  259. {
  260. return LuaDLL.toluaL_exception(L, e);
  261. }
  262. }
  263. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  264. static int set_fixedDeltaTime(IntPtr L)
  265. {
  266. try
  267. {
  268. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  269. UnityEngine.Time.fixedDeltaTime = arg0;
  270. return 0;
  271. }
  272. catch(Exception e)
  273. {
  274. return LuaDLL.toluaL_exception(L, e);
  275. }
  276. }
  277. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  278. static int set_maximumDeltaTime(IntPtr L)
  279. {
  280. try
  281. {
  282. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  283. UnityEngine.Time.maximumDeltaTime = arg0;
  284. return 0;
  285. }
  286. catch(Exception e)
  287. {
  288. return LuaDLL.toluaL_exception(L, e);
  289. }
  290. }
  291. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  292. static int set_maximumParticleDeltaTime(IntPtr L)
  293. {
  294. try
  295. {
  296. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  297. UnityEngine.Time.maximumParticleDeltaTime = arg0;
  298. return 0;
  299. }
  300. catch(Exception e)
  301. {
  302. return LuaDLL.toluaL_exception(L, e);
  303. }
  304. }
  305. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  306. static int set_timeScale(IntPtr L)
  307. {
  308. try
  309. {
  310. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  311. UnityEngine.Time.timeScale = arg0;
  312. return 0;
  313. }
  314. catch(Exception e)
  315. {
  316. return LuaDLL.toluaL_exception(L, e);
  317. }
  318. }
  319. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  320. static int set_captureFramerate(IntPtr L)
  321. {
  322. try
  323. {
  324. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  325. UnityEngine.Time.captureFramerate = arg0;
  326. return 0;
  327. }
  328. catch(Exception e)
  329. {
  330. return LuaDLL.toluaL_exception(L, e);
  331. }
  332. }
  333. }