Example #1
0
 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;
     }
 }
Example #2
0
        public void SetMap(ServerMap Value)
        {
            if (this._map!=null)
            this._map.RemovePlayer(this);

            this._map = Value;

            if (this._map != null)
            this._map.AddPlayer(this);
        }