static int GetTotalDuration(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { float o = Nova.NovaAnimation.GetTotalDuration(); LuaDLL.lua_pushnumber(L, o); return(1); } else if (count == 1) { Nova.AnimationType arg0 = (Nova.AnimationType)ToLua.CheckObject(L, 1, typeof(Nova.AnimationType)); float o = Nova.NovaAnimation.GetTotalDuration(arg0); LuaDLL.lua_pushnumber(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: Nova.NovaAnimation.GetTotalDuration")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int IsPlayingAny(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { bool o = Nova.NovaAnimation.IsPlayingAny(); LuaDLL.lua_pushboolean(L, o); return(1); } else if (count == 1) { Nova.AnimationType arg0 = (Nova.AnimationType)ToLua.CheckObject(L, 1, typeof(Nova.AnimationType)); bool o = Nova.NovaAnimation.IsPlayingAny(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: Nova.NovaAnimation.IsPlayingAny")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int StopAll(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { Nova.NovaAnimation.StopAll(); return(0); } else if (count == 1) { Nova.AnimationType arg0 = (Nova.AnimationType)ToLua.CheckObject(L, 1, typeof(Nova.AnimationType)); Nova.NovaAnimation.StopAll(arg0); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: Nova.NovaAnimation.StopAll")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_type(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.NovaAnimation obj = (Nova.NovaAnimation)o; Nova.AnimationType arg0 = (Nova.AnimationType)ToLua.CheckObject(L, 2, typeof(Nova.AnimationType)); obj.type = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index type on a nil value")); } }
static int get_type(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.NovaAnimation obj = (Nova.NovaAnimation)o; Nova.AnimationType ret = obj.type; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index type on a nil value")); } }