Neco/LandView/LandViewUtils.cs
/// <summary>Calculates a Plot's district in a given country</summary>
/// <param name="C"></param>
/// <param name="P"></param>
/// <returns>The smallest district that the plot is completely in, or null if the plot is not in the country, or is not *completely* in any district</returns>
Calculates a Plot's district in a given country
Calculates a Plot ' s district in a given country
public static District CalculatePlotDistrict(Country C, Plot P) {
            if (!Contains(C, P)) { return null; }
            return GetSmallestDistrictContaining(C.Districts, P);
        }
public static District CalculatePlotDistrict ( Country C , Plot P ) { if ( ! Contains ( C , P ) ) { return null ; } return GetSmallestDistrictContaining ( C . Districts , P ) ; }
Calculates a Plot's district in a given country
Calculates a Plot ' s district in a given country
//If the plot is not in the country, return null //Now then
The smallest district that the plot is completely in, or null if the plot is not in the country, or is not *completely* in any district
The smallest district that the plot is completely in or null if the plot is not in the country or is not * completely * in any district
C
Country
None
P
Plot
None