public void AddItem(MapEntry entry) { string position = entry.GetPosition().ToString(); if (map.ContainsKey(position)) { map[position].Add(entry); } else { map.Add(position, new List <MapEntry> { entry }); } }
public void AddItem(MapEntry entry) { string position = entry.GetPosition().ToString(); if (map.ContainsKey(position)) { map[position].Add(entry); } else { map.Add(position, new List <MapEntry> { entry }); } }