public ServerMap GetMap(int MapID) { if (_maps.ContainsKey(MapID)) { return _maps[MapID]; } else { ServerMap result = new ServerMap(MapID, this); _maps.Add(MapID, result); return result; } }
public void SetMap(ServerMap Value) { if (this._map!=null) this._map.RemovePlayer(this); this._map = Value; if (this._map != null) this._map.AddPlayer(this); }