Esempio n. 1
0
 static int OnStart(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI.IHandle obj  = (UI.IHandle)ToLua.CheckObject(L, 1, typeof(UI.IHandle));
         UI.Handle  arg0 = (UI.Handle)ToLua.CheckObject(L, 2, typeof(UI.Handle));
         obj.OnStart(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 2
0
 static int OnUpdate(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UI.IHandle obj  = (UI.IHandle)ToLua.CheckObject(L, 1, typeof(UI.IHandle));
         UI.Handle  arg0 = (UI.Handle)ToLua.CheckObject(L, 2, typeof(UI.Handle));
         float      arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         obj.OnUpdate(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 3
0
    static int get_CurHandle(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle  obj = (UI.Handle)o;
            UI.IHandle ret = obj.CurHandle;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CurHandle on a nil value" : e.Message));
        }
    }
Esempio n. 4
0
    static int get_IsDurationValid(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.IHandle obj = (UI.IHandle)o;
            bool       ret = obj.IsDurationValid;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index IsDurationValid on a nil value" : e.Message));
        }
    }
Esempio n. 5
0
 static int OnReset(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         UI.IHandle obj  = (UI.IHandle)ToLua.CheckObject(L, 1, typeof(UI.IHandle));
         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));
     }
 }
Esempio n. 6
0
    static int _CreateUI_IHandle(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

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