TextStudioAudioPlayerRules
public static class TextStudioAudioPlayerRulesPure routing and eligibility rules shared by runtime audio playback and validation.
Methods
Section titled “Methods”
ShouldPlayForCharacter(char, bool, string)
Section titled “ShouldPlayForCharacter(char, bool, string)”public static bool ShouldPlayForCharacter(char character, bool ignoreWhitespaceAndPunctuation, string ignoredPunctuation)Reports whether a visible character is eligible under whitespace and punctuation filtering.
Parameters
| Name | Type |
|---|---|
character |
System.Char |
ignoreWhitespaceAndPunctuation |
System.Boolean |
ignoredPunctuation |
System.String |
Returns
System.Boolean
GetMarkerRouteId(string, string[])
Section titled “GetMarkerRouteId(string, string[])”public static string GetMarkerRouteId(string markerId, string[] parameters)Resolves the canonical marker route from an action ID and positional parameters.
Parameters
| Name | Type |
|---|---|
markerId |
System.String |
parameters |
System.String[] |
Returns
System.String
MarkerRouteMatches(string, string, string[])
Section titled “MarkerRouteMatches(string, string, string[])”public static bool MarkerRouteMatches(string expectedRouteId, string markerId, string[] parameters)Compares a configured route with an authored marker using ordinal case-insensitive matching.
Parameters
| Name | Type |
|---|---|
expectedRouteId |
System.String |
markerId |
System.String |
parameters |
System.String[] |
Returns
System.Boolean