Exemplo n.º 1
0
 static int OnRecycle(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         FossilisedEffect obj = (FossilisedEffect)ToLua.CheckObject(L, 1, typeof(FossilisedEffect));
         obj.OnRecycle();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 2
0
 static int OnUpdate(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FossilisedEffect obj  = (FossilisedEffect)ToLua.CheckObject(L, 1, typeof(FossilisedEffect));
         float            arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         obj.OnUpdate(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 3
0
 static int SetEffect(IntPtr L)
 {
     try
     {
         int count             = LuaDLL.lua_gettop(L);
         FossilisedEffect obj  = (FossilisedEffect)ToLua.CheckObject(L, 1, typeof(FossilisedEffect));
         object[]         arg0 = ToLua.ToParamsObject(L, 2, count - 1);
         obj.SetEffect(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 4
0
    static int set_FadeTimes(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FossilisedEffect obj  = (FossilisedEffect)o;
            float            arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.FadeTimes = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index FadeTimes on a nil value" : e.Message));
        }
    }
Exemplo n.º 5
0
    static int get_FadeTimes(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FossilisedEffect obj = (FossilisedEffect)o;
            float            ret = obj.FadeTimes;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index FadeTimes on a nil value" : e.Message));
        }
    }