| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class UnityEngine_TimeWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginStaticLibs("Time");
- L.RegVar("time", get_time, null);
- L.RegVar("timeSinceLevelLoad", get_timeSinceLevelLoad, null);
- L.RegVar("deltaTime", get_deltaTime, null);
- L.RegVar("fixedTime", get_fixedTime, null);
- L.RegVar("unscaledTime", get_unscaledTime, null);
- L.RegVar("fixedUnscaledTime", get_fixedUnscaledTime, null);
- L.RegVar("unscaledDeltaTime", get_unscaledDeltaTime, null);
- L.RegVar("fixedUnscaledDeltaTime", get_fixedUnscaledDeltaTime, null);
- L.RegVar("fixedDeltaTime", get_fixedDeltaTime, set_fixedDeltaTime);
- L.RegVar("maximumDeltaTime", get_maximumDeltaTime, set_maximumDeltaTime);
- L.RegVar("smoothDeltaTime", get_smoothDeltaTime, null);
- L.RegVar("maximumParticleDeltaTime", get_maximumParticleDeltaTime, set_maximumParticleDeltaTime);
- L.RegVar("timeScale", get_timeScale, set_timeScale);
- L.RegVar("frameCount", get_frameCount, null);
- L.RegVar("renderedFrameCount", get_renderedFrameCount, null);
- L.RegVar("realtimeSinceStartup", get_realtimeSinceStartup, null);
- L.RegVar("captureFramerate", get_captureFramerate, set_captureFramerate);
- L.RegVar("inFixedTimeStep", get_inFixedTimeStep, null);
- L.EndStaticLibs();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_time(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushnumber(L, UnityEngine.Time.time);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_timeSinceLevelLoad(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushnumber(L, UnityEngine.Time.timeSinceLevelLoad);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_deltaTime(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushnumber(L, UnityEngine.Time.deltaTime);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_fixedTime(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushnumber(L, UnityEngine.Time.fixedTime);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_unscaledTime(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushnumber(L, UnityEngine.Time.unscaledTime);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_fixedUnscaledTime(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushnumber(L, UnityEngine.Time.fixedUnscaledTime);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_unscaledDeltaTime(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushnumber(L, UnityEngine.Time.unscaledDeltaTime);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_fixedUnscaledDeltaTime(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushnumber(L, UnityEngine.Time.fixedUnscaledDeltaTime);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_fixedDeltaTime(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushnumber(L, UnityEngine.Time.fixedDeltaTime);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_maximumDeltaTime(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushnumber(L, UnityEngine.Time.maximumDeltaTime);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_smoothDeltaTime(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushnumber(L, UnityEngine.Time.smoothDeltaTime);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_maximumParticleDeltaTime(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushnumber(L, UnityEngine.Time.maximumParticleDeltaTime);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_timeScale(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushnumber(L, UnityEngine.Time.timeScale);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_frameCount(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushinteger(L, UnityEngine.Time.frameCount);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_renderedFrameCount(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushinteger(L, UnityEngine.Time.renderedFrameCount);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_realtimeSinceStartup(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushnumber(L, UnityEngine.Time.realtimeSinceStartup);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_captureFramerate(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushinteger(L, UnityEngine.Time.captureFramerate);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_inFixedTimeStep(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushboolean(L, UnityEngine.Time.inFixedTimeStep);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_fixedDeltaTime(IntPtr L)
- {
- try
- {
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- UnityEngine.Time.fixedDeltaTime = arg0;
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_maximumDeltaTime(IntPtr L)
- {
- try
- {
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- UnityEngine.Time.maximumDeltaTime = arg0;
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_maximumParticleDeltaTime(IntPtr L)
- {
- try
- {
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- UnityEngine.Time.maximumParticleDeltaTime = arg0;
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_timeScale(IntPtr L)
- {
- try
- {
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- UnityEngine.Time.timeScale = arg0;
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_captureFramerate(IntPtr L)
- {
- try
- {
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- UnityEngine.Time.captureFramerate = arg0;
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- }
|