Exemple #1
0
        public override void Dispose() {
            base.Dispose();

            if (_mapHandler != null) {
                _context.RemoveMessageHandler(_mapHandler);
                _mapHandler = null;
            }
        }
Exemple #2
0
 private LobbyMember(NetworkContext context, IMapManager mapManager)
     : base(context) {
     _mapHandler = new MapDownloadClientMessageHandler(context, mapManager);
     context.AddMessageHandler(_mapHandler);
 }