Class SerializableRacePhonology
- Namespace
- FishMMO.Shared.NameGeneration
- Assembly
- FishMMO.Shared.dll
Inspector-editable phonology for a race or one of its cultures. Converted to the runtime RacePhonology once, when the template loads.
[Serializable]
public class SerializableRacePhonology
- Inheritance
-
SerializableRacePhonology
- Inherited Members
Fields
Codas
[Tooltip("Syllable endings a name can finish with.")]
public string[] Codas
Field Value
- string[]
Description
[TextArea]
public string Description
Field Value
FeminineSuffixes
[Tooltip("Endings appended to feminine names.")]
public string[] FeminineSuffixes
Field Value
- string[]
MasculineSuffixes
[Tooltip("Endings appended to masculine names.")]
public string[] MasculineSuffixes
Field Value
- string[]
Middles
[Tooltip("Optional middle syllables used by longer names.")]
public string[] Middles
Field Value
- string[]
Nuclei
[Tooltip("Vowel clusters placed after the onset.")]
public string[] Nuclei
Field Value
- string[]
Onsets
[Tooltip("Syllable openings a name can start with.")]
public string[] Onsets
Field Value
- string[]
SyllMax
[Tooltip("Most syllables a name may have.")]
public int SyllMax
Field Value
SyllMin
[Tooltip("Fewest syllables a name may have.")]
public int SyllMin
Field Value
Tags
public string[] Tags
Field Value
- string[]
WeightedCodas
[Tooltip("When non-empty these replace Codas with a weighted draw.")]
public WeightedCoda[] WeightedCodas
Field Value
Methods
From(RacePhonology)
public static SerializableRacePhonology From(RacePhonology runtime)
Parameters
runtimeRacePhonology
Returns
IsUsable()
True when the phonology can build at least a one-syllable name.
public bool IsUsable()
Returns
ToRuntime()
public RacePhonology ToRuntime()