Пример #1
0
        public NpcPosition?GetClosestNpc()
        {
            var info = string.Join(", ", Npcs.Select(n => n.Height.ToString() + $"({n.Min.X},{n.Min.Y})"));

            logger.LogInformation($"> NPCs found: {info}");

            return(Npcs.Count == 0 ? null : Npcs.First());
        }