//매칭 거절 public void SendLocalMatchingReject() { MatchingDecisionData matchingDecisionData = new MatchingDecisionData(); matchingDecisionData.decision = MatchingDecision.Reject; matchingDecisionData.myinfo = myInfo; MatchingDecisionPacket packet = new MatchingDecisionPacket(matchingDecisionData); networkManager.SendReliable <MatchingDecisionData>(packet); }
public bool Serialize(MatchingDecisionData packet) { bool ret = true; int decision = (int)packet.decision; ret &= Serialize(decision); ret &= Serialize(packet.myinfo); return(ret); }
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); }