SecretParserParseSecret Method |
Converts a secret string into a byte array.
Namespace:
Zyrenth.Zora
Assembly:
ZoraSharp (in ZoraSharp.dll) Version: 2.3
Syntaxpublic static byte[] ParseSecret(
string secret,
GameRegion region
)
Public Shared Function ParseSecret (
secret As String,
region As GameRegion
) As Byte()
Parameters
- secret
- Type: SystemString
The secret to decode. - region
- Type: Zyrenth.ZoraGameRegion
The region of the game
Return Value
Type:
ByteThe secret
Exceptions
Remarks
This method is fairly flexible in what it will accept.
- 6●sW↑
- 6 circle s W up
- 6{circle}sW{up}
- 6cIrClesW↑
The lack of vowels in the normal secret keyboard is what makes the last
format possible. Whitespace in the secret is ignored so long as it doesn't separate
any keywords. Surrounding the keywords in curly braces is not required; they
are supported in order to maintain compatibility with how many users share
secrets online.
Examplesstring gameSecret = "H~2:@ left 2 diamond yq GB3 circle ( 6 heart ? up 6";
byte[] rawGameSecret = SecretParser.ParseSecret(gameSecret, GameRegion.US);
See Also