//매칭 거절
    public void SendLocalMatchingReject()
    {
        MatchingDecisionData matchingDecisionData = new MatchingDecisionData();

        matchingDecisionData.decision = MatchingDecision.Reject;
        matchingDecisionData.myinfo   = myInfo;
        MatchingDecisionPacket packet = new MatchingDecisionPacket(matchingDecisionData);

        networkManager.SendReliable <MatchingDecisionData>(packet);
    }
Exemple #2
0
        public bool Serialize(MatchingDecisionData packet)
        {
            bool ret = true;

            int decision = (int)packet.decision;

            ret &= Serialize(decision);
            ret &= Serialize(packet.myinfo);

            return(ret);
        }
Exemple #3
0
        public bool Deserialize(ref MatchingDecisionData element)
        {
            if (GetDataSize() == 0)
            {
                return(false);
            }
            bool ret = true;

            int decision = 0;

            ret &= Deserialize(ref decision);
            element.decision = (MatchingDecision)decision;

            ret &= Deserialize(ref element.myinfo);

            return(ret);
        }