예제 #1
0
 static int OnEnd(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI.HandleVisiable obj  = (UI.HandleVisiable)ToLua.CheckObject(L, 1, typeof(UI.HandleVisiable));
         UI.Handle         arg0 = (UI.Handle)ToLua.CheckObject(L, 2, typeof(UI.Handle));
         obj.OnEnd(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #2
0
 static int OnReset(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         UI.HandleVisiable obj  = (UI.HandleVisiable)ToLua.CheckObject(L, 1, typeof(UI.HandleVisiable));
         UI.Handle         arg0 = (UI.Handle)ToLua.CheckObject(L, 2, typeof(UI.Handle));
         bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
         bool arg2 = LuaDLL.luaL_checkboolean(L, 4);
         obj.OnReset(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #3
0
    static int _CreateUI_HandleVisiable(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                UI.HandleVisiable obj = new UI.HandleVisiable();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UI.HandleVisiable.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }