public static bool operator ==(Location loc1, Location loc2) { return (loc1.RegionId == loc2.RegionId && loc1.X == loc2.X && loc1.Y == loc2.Y); }