-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PlayReport: Add Sparse Multi Value formatters
- Loading branch information
Showing
6 changed files
with
341 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Ryujinx.Ava.Utilities.PlayReport | ||
{ | ||
/// <summary> | ||
/// The delegate type that powers single value formatters.<br/> | ||
/// Takes in the result value from the Play Report, and outputs: | ||
/// <br/> | ||
/// a formatted string, | ||
/// <br/> | ||
/// a signal that nothing was available to handle it, | ||
/// <br/> | ||
/// OR a signal to reset the value that the caller is using the <see cref="Analyzer"/> for. | ||
/// </summary> | ||
public delegate FormattedValue ValueFormatter(Value value); | ||
|
||
/// <summary> | ||
/// The delegate type that powers multiple value formatters.<br/> | ||
/// Takes in the result values from the Play Report, and outputs: | ||
/// <br/> | ||
/// a formatted string, | ||
/// <br/> | ||
/// a signal that nothing was available to handle it, | ||
/// <br/> | ||
/// OR a signal to reset the value that the caller is using the <see cref="Analyzer"/> for. | ||
/// </summary> | ||
public delegate FormattedValue MultiValueFormatter(Value[] value); | ||
|
||
/// <summary> | ||
/// The delegate type that powers multiple value formatters. | ||
/// The dictionary passed to this delegate is sparsely populated; | ||
/// that is, not every key specified in the Play Report needs to match for this to be used.<br/> | ||
/// Takes in the result values from the Play Report, and outputs: | ||
/// <br/> | ||
/// a formatted string, | ||
/// <br/> | ||
/// a signal that nothing was available to handle it, | ||
/// <br/> | ||
/// OR a signal to reset the value that the caller is using the <see cref="Analyzer"/> for. | ||
/// </summary> | ||
public delegate FormattedValue SparseMultiValueFormatter(Dictionary<string, Value> values); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.