From 998be1be710d5cb3698e49aa7ae5f9d33fb0714e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D0=B8=D1=80=20=D0=9D=D1=83=D0=B3=D0=B0?= =?UTF-8?q?=D0=B5=D0=B2?= Date: Sun, 30 Oct 2022 20:51:44 +0400 Subject: [PATCH] =?UTF-8?q?=D0=AD=D1=82=D0=B0=D0=BF=202.=20=D0=9A=D0=BB?= =?UTF-8?q?=D0=B0=D1=81=D1=81=20MapsCollection.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bus/Bus/MapsCollection.cs | 46 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Bus/Bus/MapsCollection.cs diff --git a/Bus/Bus/MapsCollection.cs b/Bus/Bus/MapsCollection.cs new file mode 100644 index 0000000..d98fde3 --- /dev/null +++ b/Bus/Bus/MapsCollection.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Bus +{ + internal class MapsCollection + { + readonly Dictionary> _mapStorages; + + public List Keys => _mapStorages.Keys.ToList(); + + private readonly int _pictureWidth; + + private readonly int _pictureHeight; + + public MapsCollection(int pictureWidth, int pictureHeight) + { + _mapStorages = new Dictionary>(); + _pictureWidth = pictureWidth; + _pictureHeight = pictureHeight; + } + + public void AddMap(string name, AbstractMap map) + { + // TODO Прописать логику для добавления + } + + public void DelMap(string name) + { + // TODO Прописать логику для удаления + } + + public MapWithSetDoubleDeckerBusGeneric this[string ind] + { + get + { + // TODO Продумать логику получения объекта + return null; + } + + } + } +}