Exemple #1
0
 /// <summary>
 /// Remove a previously added connection monitor. If the monitor was not found when removing
 /// it, an exception is thrown.
 /// </summary>
 /// <param name="monitor">The connection monitor to remove.</param>
 public void RemoveConnectionMonitor(INetworkConnectionMonitor monitor)
 {
     if (_connectionMonitors.Remove(monitor) == false)
     {
         throw new InvalidOperationException("No such monitor to remove");
     }
 }
Exemple #2
0
 /// <summary>
 /// Remove a previously added connection monitor. If the monitor was not found when removing
 /// it, an exception is thrown.
 /// </summary>
 /// <param name="monitor">The connection monitor to remove.</param>
 public void RemoveConnectionMonitor(INetworkConnectionMonitor monitor) {
     if (_connectionMonitors.Remove(monitor) == false) {
         throw new InvalidOperationException("No such monitor to remove");
     }
 }
Exemple #3
0
 /// <summary>
 /// Add a new connection monitor listener. This allows for client code to be notified when
 /// another player connects or disconnects from the network.
 /// </summary>
 /// <param name="monitor">The connection monitor to add.</param>
 public void AddConnectionMonitor(INetworkConnectionMonitor monitor)
 {
     _connectionMonitors.Add(monitor);
 }
Exemple #4
0
 /// <summary>
 /// Add a new connection monitor listener. This allows for client code to be notified when
 /// another player connects or disconnects from the network.
 /// </summary>
 /// <param name="monitor">The connection monitor to add.</param>
 public void AddConnectionMonitor(INetworkConnectionMonitor monitor) {
     _connectionMonitors.Add(monitor);
 }