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