NameGeneratorSerializer

A convenience class for reading and writing a NameGenerator to disk and back.

Constructors

Constructor
Description

NameGeneratorSerializer()

Initializes a new NameGeneratorSerializer with basic encoder settings.

Methods

Method
Returns
Description

Deserialize(System.String filepath)

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.

Properties

Property
Type
Description

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