From 1bf55f260ec9ef92d813ca644ff5a68dd2c032a9 Mon Sep 17 00:00:00 2001 From: AnnZhimol Date: Tue, 18 Oct 2022 16:28:29 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BB=D0=B0=D1=81=D1=81=20MapsCollection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Warship/Warship/MapsCollection.cs | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Warship/Warship/MapsCollection.cs diff --git a/Warship/Warship/MapsCollection.cs b/Warship/Warship/MapsCollection.cs new file mode 100644 index 0000000..cd8d05c --- /dev/null +++ b/Warship/Warship/MapsCollection.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Warship +{ + 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) + { + + } + + public MapWithSetWarshipsGeneric this[string ind] + { + get + { + //todo + return null; + } + } + } +}