Example #1
0
 /// <summary>
 /// Cleans up the ChatManager from the NetworkContext it was constructed with.
 /// </summary>
 public void Dispose()
 {
     if (_handler != null)
     {
         _context.RemoveMessageHandler(_handler);
         _handler = null;
     }
 }
Example #2
0
 /// <summary>
 /// Cleans up the ChatManager from the NetworkContext it was constructed with.
 /// </summary>
 public void Dispose() {
     if (_handler != null) {
         _context.RemoveMessageHandler(_handler);
         _handler = null;
     }
 }
Example #3
0
 /// <summary>
 /// Construct a new ChatManager using the given networking context and the given object for
 /// mapping network players to a directed player relation graph.
 /// </summary>
 /// <param name="context">The networking context.</param>
 public ChatManager(NetworkContext context)
 {
     _context = context;
     _handler = new ChatMessageHandler(_context);
     _context.AddMessageHandler(_handler);
 }
Example #4
0
 /// <summary>
 /// Construct a new ChatManager using the given networking context and the given object for
 /// mapping network players to a directed player relation graph.
 /// </summary>
 /// <param name="context">The networking context.</param>
 public ChatManager(NetworkContext context) {
     _context = context;
     _handler = new ChatMessageHandler(_context);
     _context.AddMessageHandler(_handler);
 }