protected Location GetLocationByCoords(Tuple <int, int> coords) { return(AllLocations.FirstOrDefault(loc => loc.Coords.Equals(coords))); }
protected Location GetLocationByMem(int mem) { return(AllLocations.FirstOrDefault(loc => loc.MemAddress == mem)); }
protected Location GetLocationByMap(int map, int world) { return(AllLocations.FirstOrDefault(loc => loc.LocationBytes[2] == map && loc.World == world)); }