static int set_onHide(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            RPGGame.UIWindow obj = (RPGGame.UIWindow)o;
            RPGGame.UIWindow.UIWindowCallBack arg0 = null;
            LuaTypes funcType2 = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (RPGGame.UIWindow.UIWindowCallBack)ToLua.CheckObject(L, 2, typeof(RPGGame.UIWindow.UIWindowCallBack));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 2);
                arg0 = DelegateFactory.CreateDelegate(typeof(RPGGame.UIWindow.UIWindowCallBack), func) as RPGGame.UIWindow.UIWindowCallBack;
            }

            obj.onHide = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onHide on a nil value" : e.Message));
        }
    }
    static int get_onHide(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            RPGGame.UIWindow obj = (RPGGame.UIWindow)o;
            RPGGame.UIWindow.UIWindowCallBack ret = obj.onHide;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onHide on a nil value" : e.Message));
        }
    }
    static int set_WindowName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            RPGGame.UIWindow obj  = (RPGGame.UIWindow)o;
            string           arg0 = ToLua.CheckString(L, 2);
            obj.WindowName = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index WindowName on a nil value" : e.Message));
        }
    }
    static int get_WindowName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            RPGGame.UIWindow obj = (RPGGame.UIWindow)o;
            string           ret = obj.WindowName;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index WindowName on a nil value" : e.Message));
        }
    }
    static int _CreateRPGGame_UIWindow(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

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