parse

fun parse(string: String): Stats

Parses a string to a Stats instance

  • Values must carry a sign - "1 Gold" will not parse, "+1 Gold" is OK.

  • Separator is ", " - comma space - the space is not optional.

  • Stat names must be untranslated and match case.

  • Order is not important.

See also

Sources

jvm source
Link copied to clipboard