добавление словаря
This commit is contained in:
parent
e6d43c4765
commit
d26269fb79
47
AirPlaneWithRadar/AirPlaneWithRadar/MapsCollection.cs
Normal file
47
AirPlaneWithRadar/AirPlaneWithRadar/MapsCollection.cs
Normal file
@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AirPlaneWithRadar
|
||||
{
|
||||
internal class MapsCollection
|
||||
{
|
||||
readonly Dictionary<string, MapWithSetPlainGeneric<DrawingObjectPlane, AbstractMap>> _mapStorages;
|
||||
|
||||
public List<string> Keys => _mapStorages.Keys.ToList();
|
||||
|
||||
private readonly int _pictureWidth;
|
||||
|
||||
private readonly int _pictureHeight;
|
||||
|
||||
public MapsCollection(int pictureWidth, int pictureHeight)
|
||||
{
|
||||
_mapStorages = new Dictionary<string, MapWithSetPlainGeneric<DrawingObjectPlane, AbstractMap>>();
|
||||
_pictureWidth = pictureWidth;
|
||||
_pictureHeight = pictureHeight;
|
||||
}
|
||||
|
||||
public void AddMap(string name, AbstractMap map)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void DelMap(string name)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public MapWithSetPlainGeneric<DrawingObjectPlane, AbstractMap> this[string ind]
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
|
||||
return _mapStorages[ind];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user