static int OnGoOutClick(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         WorldMediator obj = (WorldMediator)ToLua.CheckObject(L, 1, typeof(WorldMediator));
         obj.OnGoOutClick();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int OnMarchClick(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         WorldMediator obj  = (WorldMediator)ToLua.CheckObject(L, 1, typeof(WorldMediator));
         int           arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         obj.OnMarchClick(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int set_m_UIName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            WorldMediator obj  = (WorldMediator)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));
        }
    }
    static int get_m_UIName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            WorldMediator obj = (WorldMediator)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));
        }
    }
    static int get_m_View(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            WorldMediator         obj = (WorldMediator)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));
        }
    }
 static int SetMarchState(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         WorldMediator obj  = (WorldMediator)ToLua.CheckObject(L, 1, typeof(WorldMediator));
         int           arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         int           arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
         string        arg2 = ToLua.CheckString(L, 4);
         obj.SetMarchState(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int _CreateWorldMediator(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

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