A convenience class for reading and writing a NameGenerator to disk and back.
NameGeneratorSerializer()
Initializes a new NameGeneratorSerializer with basic encoder settings.
Deserialize(System.String filepath)
NameGenerator
Reads a json file and turns it into a NameGenerator. This method expects the json file to have been written by the Syllabore.Json.NameGeneratorSerializer.Serialize method of this class.
Serialize(NameGenerator generator, System.String filepath)
System.Void
Writes the specified NameGenerator to a json file.
EncoderSettings
System.Text.Encodings.Web.TextEncoderSettings
Allows characters and unicode ranges.
WriteIndented
System.Boolean
If true, json output will be indented and easier to read.
Last updated 10 months ago