Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Ink / InkLibs / InkRuntime / Error.cs
@Rackday Rackday on 29 Oct 792 bytes Major Update
  1. namespace Ink
  2. {
  3. /// <summary>
  4. /// Callback for errors throughout both the ink runtime and compiler.
  5. /// </summary>
  6. public delegate void ErrorHandler(string message, ErrorType type);
  7. /// <summary>
  8. /// Author errors will only ever come from the compiler so don't need to be handled
  9. /// by your Story error handler. The "Error" ErrorType is by far the most common
  10. /// for a runtime story error (rather than compiler error), though the Warning type
  11. /// is also possible.
  12. /// </summary>
  13. public enum ErrorType
  14. {
  15. /// Generated by a "TODO" note in the ink source
  16. Author,
  17. /// You should probably fix this, but it's not critical
  18. Warning,
  19. /// Critical error that can't be recovered from
  20. Error
  21. }
  22. }