public MapServer(DB_Map map) { _port = Interlocked.Increment(ref _staticPort); _map = map; _id = "########"; _dialogs = new DialogsMgr(this); _updatables = new List <IUpdatable>(); _players = new Dictionary <ushort, MapPlayer>(); _name = _map.Name.Normalize(Constants.MaxServerName); #if DEBUG if (!(Debug.Logger is DefaultConsoleLogger)) { Debug.Logger = new DefaultConsoleLogger(); } #endif }