public void AddPlayerToParty(Client c, Party p) { if (!parties.ContainsKey(p)) return; if (p.getSize() >= 4) // For now return; p.addClientToParty(c); }
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); } }