AStarHeightmapGrid / Assets / PlatypusIdeas / AirPath / Runtime / Events / PathfindingErrorEvent.cs
PathfindingErrorEvent.cs
Raw
using System;

namespace PlatypusIdeas.AirPath.Runtime.Events {
    public abstract class PathfindingErrorEvent : PathfindingEventBase {
        public string ErrorMessage { get; }
        public Exception Exception { get; }
        public bool IsCritical { get; }

        protected PathfindingErrorEvent(
            string message, 
            Exception exception = null,
            bool isCritical = false,
            object sender = null) : base(sender) {
            ErrorMessage = message;
            Exception = exception;
            IsCritical = isCritical;
        }
    }
}