Example #1
0
        public SquadWarStartMatchmakingRequest(SqmWarParticipantData participantData)
        {
            this.Participants = new List <string>();
            int i     = 0;
            int count = participantData.Participants.Count;

            while (i < count)
            {
                this.Participants.Add(participantData.Participants[i]);
                i++;
            }
            this.AllowSameFactionMatchMaking = participantData.AllowSameFactionMatchMaking;
        }
Example #2
0
        public static SquadMsg CreateStartMatchmakingMessage(List <string> memberIds, bool allowSameFaction)
        {
            SqmWarParticipantData sqmWarParticipantData = new SqmWarParticipantData();
            int i     = 0;
            int count = memberIds.Count;

            while (i < count)
            {
                sqmWarParticipantData.Participants.Add(memberIds[i]);
                i++;
            }
            sqmWarParticipantData.AllowSameFactionMatchMaking = allowSameFaction;
            SquadMsg squadMsg = SquadMsgUtils.CreateActionMessage(SquadAction.StartWarMatchmaking, null, null);

            squadMsg.WarParticipantData = sqmWarParticipantData;
            return(squadMsg);
        }