Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
documentation added
  • Loading branch information
jimmble committed Sep 20, 2017
commit d8e2072493c61a7d36dd4cecda83cab9e1a6d308
2 changes: 1 addition & 1 deletion Torch.API/Managers/IMultiplayerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public interface IMultiplayerManager : IManager
event MessageReceivedDel MessageReceived;

/// <summary>
/// List of banned SteamID's
/// List of the banned SteamID's
/// </summary>
List<ulong> BannedPlayers { get; }

Expand Down
5 changes: 5 additions & 0 deletions Torch/Managers/MultiplayerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ public class MultiplayerManager : Manager, IMultiplayerManager

public IList<IChatMessage> ChatHistory { get; } = new ObservableList<IChatMessage>();
public ObservableDictionary<ulong, PlayerViewModel> Players { get; } = new ObservableDictionary<ulong, PlayerViewModel>();

/// <summary>
/// List of the banned SteamID's
/// </summary>
public List<ulong> BannedPlayers => MySandboxGame.ConfigDedicated.Banned;

public IMyPlayer LocalPlayer => MySession.Static.LocalHumanPlayer;
private static readonly Logger Log = LogManager.GetLogger(nameof(MultiplayerManager));
private static readonly Logger ChatLog = LogManager.GetLogger("Chat");
Expand Down