public void OnPlayerAdded(object source, LobbyPlayerEventArgs args) { players.Add(args.PlayerID, new LobbyPlayer(args.PlayerID, args.ControllerIndex) { Name = args.PlayerID }); }
public void OnPlayerRemoved(object source, LobbyPlayerEventArgs args) { players.Remove(args.PlayerID); }
public void OnCharacterInstantiated(object source, LobbyPlayerEventArgs args) { lock (locker) charactersToInstantiate.Add(args); }