Exemple #1
0
        public static SquadMsg CreateAcceptJoinRequestMessage(string requesterId, string biSource, SquadController.ActionCallback callback, object cookie)
        {
            SquadMsg squadMsg = SquadMsgUtils.CreateMemberIdMessage(requesterId, SquadAction.AcceptApplicationToJoin, callback, cookie);

            squadMsg.BISource = biSource;
            return(squadMsg);
        }
Exemple #2
0
        public static SquadMsg CreatePromoteMemberMessage(string memberId, SquadController.ActionCallback callback, object cookie)
        {
            SquadMsg squadMsg = SquadMsgUtils.CreateMemberIdMessage(memberId, SquadAction.PromoteMember, callback, cookie);

            squadMsg.MemberData.MemberRole = SquadRole.Officer;
            return(squadMsg);
        }
Exemple #3
0
        public static SquadMsg CreateDonateMessage(string recipientId, Dictionary <string, int> donations, int donationCount, string requestId, SquadController.ActionCallback callback, object cookie)
        {
            CurrentPlayer   currentPlayer   = Service.CurrentPlayer;
            SquadMsg        squadMsg        = SquadMsgUtils.CreateMemberIdMessage(currentPlayer.PlayerId, SquadAction.DonateTroops, callback, cookie);
            SqmDonationData sqmDonationData = new SqmDonationData();

            squadMsg.DonationData         = sqmDonationData;
            sqmDonationData.RecipientId   = recipientId;
            sqmDonationData.Donations     = donations;
            sqmDonationData.DonationCount = donationCount;
            sqmDonationData.RequestId     = requestId;
            return(squadMsg);
        }
Exemple #4
0
 public static SquadMsg CreateRejectJoinRequestMessage(string requesterId, SquadController.ActionCallback callback, object cookie)
 {
     return(SquadMsgUtils.CreateMemberIdMessage(requesterId, SquadAction.RejectApplicationToJoin, callback, cookie));
 }
Exemple #5
0
 public static SquadMsg CreateRemoveMemberMessage(string memberId, SquadController.ActionCallback callback, object cookie)
 {
     return(SquadMsgUtils.CreateMemberIdMessage(memberId, SquadAction.RemoveMember, callback, cookie));
 }