Esempio n. 1
0
        public static GroundType getGroundType(IDBContext db, Coordinates coordinates)
        {
            GroundType rc = null;

            if (!GroundType.GetByMap(db, coordinates, out rc))
            {
                rc = GroundType.defaulttype;
            }
            return(rc);
        }
Esempio n. 2
0
File: Point.cs Progetto: smw60/EGH02
        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);
        }