/// <summary> /// Cleans up the ChatManager from the NetworkContext it was constructed with. /// </summary> public void Dispose() { if (_handler != null) { _context.RemoveMessageHandler(_handler); _handler = null; } }
/// <summary> /// Cleans up the ChatManager from the NetworkContext it was constructed with. /// </summary> public void Dispose() { if (_handler != null) { _context.RemoveMessageHandler(_handler); _handler = null; } }
/// <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); }
/// <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); }