Table of Contents

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

List<PointOfInterestGroup>

Kinds

[Tooltip("Kinds this composition names.")]
public List<POIType> Kinds

Field Value

List<POIType>

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

string

Weight

[Tooltip("Relative chance among the usable compositions for a kind.")]
public int Weight

Field Value

int

Methods

Applies(POIType)

Whether this composition may name the kind.

public bool Applies(POIType kind)

Parameters

kind POIType

Returns

bool