Class PlaceNameTemplate
- Namespace
- FishMMO.Shared.NameGeneration
- Assembly
- FishMMO.Shared.dll
One way of composing a point-of-interest name, authored in the grammar asset like a
TitleTemplate. The pattern names its slots in braces — {Type} of {RacePlural}
gives "Cave of Orcs" — and a composition whose slots cannot be filled for a request (a race slot
with no race) is simply not used.
[Serializable]
public class PlaceNameTemplate
- Inheritance
-
PlaceNameTemplate
- Inherited Members
Fields
Groups
[Tooltip("Whole catalogue groups this composition names, on top of Kinds. Both empty = every kind.")]
public List<PointOfInterestGroup> Groups
Field Value
Kinds
[Tooltip("Kinds this composition names.")]
public List<POIType> Kinds
Field Value
Pattern
[Tooltip("Slots: {Type} {Root} {Suffix} {Adjective} {Noun} {RacePlural} {RaceAdjective} {Founder} {City} {Dungeon}. {Root}{Suffix} written together fuse into one word (Morrowmere).")]
public string Pattern
Field Value
Weight
[Tooltip("Relative chance among the usable compositions for a kind.")]
public int Weight
Field Value
Methods
Applies(POIType)
Whether this composition may name the kind.
public bool Applies(POIType kind)
Parameters
kindPOIType