static void RecevicePursueMsg(SyncSession session, ProtocolRequestBase e)
    {
        Protocol.PursueMsg msg = new Protocol.PursueMsg();
        msg.frame        = (int)e.m_data["frame"];
        msg.advanceCount = (int)e.m_data["advancecount"];

        EventService.DispatchTypeEvent(session, msg);
    }
    static void SendPursueMsg(SyncSession session, Protocol.PursueMsg msg)
    {
        Dictionary <string, object> data = new Dictionary <string, object>();

        data.Add("frame", msg.frame);
        data.Add("advancecount", msg.advanceCount);
        session.SendMsg("pursuemsg", data);
    }
    static void RecevicePursueMsg(InputNetworkMessageEvent e)
    {
        Protocol.PursueMsg msg = new Protocol.PursueMsg();
        msg.frame        = (int)e.Data["frame"];
        msg.advanceCount = (int)e.Data["advancecount"];

        GlobalEvent.DispatchTypeEvent(msg);
    }
    static void SendPursueMsg(IProtocolMessageInterface msg)
    {
        Protocol.PursueMsg          e    = (Protocol.PursueMsg)msg;
        Dictionary <string, object> data = new Dictionary <string, object>();

        data.Add("frame", e.frame);
        data.Add("advancecount", e.advanceCount);
        NetworkManager.SendMessage("pursuemsg", data);
    }
Exemple #5
0
    static void RecevicePursueMsg(SyncSession session, ProtocolRequestBase e)
    {
        Protocol.PursueMsg msg = new Protocol.PursueMsg();
        msg.id           = (int)e.m_data["id"];
        msg.recalcFrame  = (int)e.m_data["recalcframe"];
        msg.frame        = (int)e.m_data["frame"];
        msg.advanceCount = (int)e.m_data["advancecount"];
        msg.serverTime   = (int)e.m_data["servertime"];
        msg.updateSpeed  = (float)(double)e.m_data["updatespeed"];

        EventService.DispatchTypeEvent(session, msg);
    }
Exemple #6
0
    static void SendPursueMsg(SyncSession session, Protocol.PursueMsg msg)
    {
        Dictionary <string, object> data = new Dictionary <string, object>();

        data.Add("id", msg.id);
        data.Add("recalcframe", msg.recalcFrame);
        data.Add("frame", msg.frame);
        data.Add("advancecount", msg.advanceCount);
        data.Add("servertime", msg.serverTime);
        data.Add("updatespeed", msg.updateSpeed);
        session.SendMsg("pursuemsg", data);
    }