Ejemplo n.º 1
0
        public void AddPlayerToParty(Client c, Party p)
        {
            if (!parties.ContainsKey(p))
                return;

            if (p.getSize() >= 4) // For now
                return;

            p.addClientToParty(c);
        }
Ejemplo n.º 2
0
        public void RemovePlayerToParty(Client c, Party p)
        {
            if (!parties.ContainsKey(p))
                return;

            //TODO: Later just transfer owner like the real servers.
            if (c == p.getPartyHost())
            {
                foreach(Client cl in p.getMembers())
                {
                    p.removeClientFromParty(cl);
                }
                parties.Remove(p);
            }
            else
            {
                p.removeClientFromParty(c);
            }
        }