コード例 #1
0
        private void AddRequest(GroupRequest pRequest)
        {
            if (pRequest.Group == null)
            {
                requestsWithoutGroup.Add(pRequest);
            }
            else
                if (!this.requestsByGroup.ContainsKey(pRequest.Group))
                {
                    this.requestsByGroup.Add(pRequest.Group, new List<GroupRequest>());

                    this.requestsByGroup[pRequest.Group].Add(pRequest);
                }
        }
コード例 #2
0
 private void RemoveRequest(GroupRequest pRequest)
 {
     this.requestsByGroup[pRequest.Group].Remove(pRequest);
 }
コード例 #3
0
        public void Invite(WorldClient pClient, string pInvited)
        {
            Log.WriteLine(LogLevel.Debug, "{0} Invited {1}", pClient.Character.Character.Name, pInvited);
            if (!ClientManager.Instance.IsOnline(pInvited))
                return; // not online

            WorldClient invitedClient = ClientManager.Instance.GetClientByCharname(pInvited);

            //if(pClient.Character.Group == null)
            //    pClient.Character.Group = CreateNewGroup(pClient);

            GroupRequest request = new GroupRequest(pClient, pClient.Character.Group, pInvited);
            AddRequest(request);
            if (pClient.Character.Group != null)
                pClient.Character.Group.AddInvite(request);
            SendInvitedPacket(invitedClient, pClient);
        }
コード例 #4
0
 internal void RemoveInvite(GroupRequest pRequest)
 {
     this.openRequests.Remove(pRequest);
 }
コード例 #5
0
 internal void AddInvite(GroupRequest pRequest)
 {
     this.openRequests.Add(pRequest);
 }
コード例 #6
0
 internal void RemoveInvite(GroupRequest pRequest)
 {
     this.openRequests.Remove(pRequest);
 }
コード例 #7
0
 internal void AddInvite(GroupRequest pRequest)
 {
     this.openRequests.Add(pRequest);
 }