public void addUser(UserInGame newuser) { if (users.Count > 10) { return; } if (users.ContainsKey(newuser.steamID)) { return; } else { users.Add(newuser.steamID, newuser); Serversendgroupmessage(newuser.steamID + " has join game!"); } }
public void addUser(string id) { if (users.Count > 10) { return; } if (users.ContainsKey(id)) { return; } else { UserInGame player = new UserInGame(); player.steamID = id; users.Add(id, player); Serversendgroupmessage(id + " has join game!"); } }