Ejemplo n.º 1
0
        /// <summary>
        /// Loads the waypoint reference from the DB from the specified level
        /// </summary>
        /// <param name="level"></param>
        /// <returns></returns>
        public (StinkyLevel level, SPoint position) Load(StinkyLevel level)
        {
            var element = GetDataElement(level).FirstOrDefault();

            if (element == null)
            {
                return(level, default);
            }
            return(Load(element));
        }
Ejemplo n.º 2
0
 public bool LevelMarkerPlaced(StinkyLevel level) => Levels.Keys.FirstOrDefault(x => x.LevelFilePath == level.LevelFilePath) != null;