public static GroundType getGroundType(IDBContext db, Coordinates coordinates) { GroundType rc = null; if (!GroundType.GetByMap(db, coordinates, out rc)) { rc = GroundType.defaulttype; } return(rc); }
public static bool GetByMap(IDBContext db, Coordinates coordinates, out Point point) { GroundType groundtype = null; if (!GroundType.GetByMap(db, coordinates, out groundtype)) { groundtype = GroundType.defaulttype; } point = new Point(coordinates, groundtype, 4.5f, 138f); return(true); }