Exemple #1
0
 static int OnDestroy(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         MainUIMediator obj = (MainUIMediator)ToLua.CheckObject(L, 1, typeof(MainUIMediator));
         obj.OnDestroy();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #2
0
    static int get_m_UIName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MainUIMediator obj = (MainUIMediator)o;
            string         ret = obj.m_UIName;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_UIName on a nil value" : e.Message));
        }
    }
Exemple #3
0
    static int get_m_View(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MainUIMediator        obj = (MainUIMediator)o;
            LuaInterface.LuaTable ret = obj.m_View;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_View on a nil value" : e.Message));
        }
    }
Exemple #4
0
    static int set_m_UIName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MainUIMediator obj  = (MainUIMediator)o;
            string         arg0 = ToLua.CheckString(L, 2);
            obj.m_UIName = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_UIName on a nil value" : e.Message));
        }
    }
Exemple #5
0
    static int _CreateMainUIMediator(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

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