static int SetPerFrameHandleCnt(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ColaFramework.NetWork.NetMessageCenter obj = (ColaFramework.NetWork.NetMessageCenter)ToLua.CheckObject <ColaFramework.NetWork.NetMessageCenter>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         obj.SetPerFrameHandleCnt(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int set_OnMessage(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.NetWork.NetMessageCenter obj = (ColaFramework.NetWork.NetMessageCenter)o;
            ColaFramework.NetWork.NetMessageCenter.NetMessageAction arg0 = (ColaFramework.NetWork.NetMessageCenter.NetMessageAction)ToLua.CheckDelegate <ColaFramework.NetWork.NetMessageCenter.NetMessageAction>(L, 2);
            obj.OnMessage = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnMessage on a nil value"));
        }
    }
    static int get_TimeSinceUpdate(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.NetWork.NetMessageCenter obj = (ColaFramework.NetWork.NetMessageCenter)o;
            float ret = obj.TimeSinceUpdate;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index TimeSinceUpdate on a nil value"));
        }
    }
    static int get_OnMessage(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.NetWork.NetMessageCenter obj = (ColaFramework.NetWork.NetMessageCenter)o;
            ColaFramework.NetWork.NetMessageCenter.NetMessageAction ret = obj.OnMessage;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnMessage on a nil value"));
        }
    }
    static int set_TimeSinceUpdate(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.NetWork.NetMessageCenter obj = (ColaFramework.NetWork.NetMessageCenter)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.TimeSinceUpdate = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index TimeSinceUpdate on a nil value"));
        }
    }