Delegates.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. namespace Ryujinx.Ava.Utilities.PlayReport
  2. {
  3. /// <summary>
  4. /// The delegate type that powers single value formatters.<br/>
  5. /// Takes in the result value from the Play Report, and outputs:
  6. /// <br/>
  7. /// a formatted string,
  8. /// <br/>
  9. /// a signal that nothing was available to handle it,
  10. /// <br/>
  11. /// OR a signal to reset the value that the caller is using the <see cref="Analyzer"/> for.
  12. /// </summary>
  13. public delegate FormattedValue ValueFormatter(SingleValue value);
  14. /// <summary>
  15. /// The delegate type that powers multiple value formatters.<br/>
  16. /// Takes in the result values from the Play Report, and outputs:
  17. /// <br/>
  18. /// a formatted string,
  19. /// <br/>
  20. /// a signal that nothing was available to handle it,
  21. /// <br/>
  22. /// OR a signal to reset the value that the caller is using the <see cref="Analyzer"/> for.
  23. /// </summary>
  24. public delegate FormattedValue MultiValueFormatter(MultiValue value);
  25. /// <summary>
  26. /// The delegate type that powers multiple value formatters.
  27. /// The dictionary passed to this delegate is sparsely populated;
  28. /// that is, not every key specified in the Play Report needs to match for this to be used.<br/>
  29. /// Takes in the result values from the Play Report, and outputs:
  30. /// <br/>
  31. /// a formatted string,
  32. /// <br/>
  33. /// a signal that nothing was available to handle it,
  34. /// <br/>
  35. /// OR a signal to reset the value that the caller is using the <see cref="Analyzer"/> for.
  36. /// </summary>
  37. public delegate FormattedValue SparseMultiValueFormatter(SparseMultiValue value);
  38. }