Interface PlayerNameGeneratorConfig

Hierarchy

  • PlayerNameGeneratorConfig

Index

Properties

Optional formatter

formatter: undefined | function

Optional formatter that gives the caller the ability to modify the word or phrase before it is contatinated to the name.

maxPhrases

maxPhrases: number

Longest name to return. This value cannot be smaller than mixPhrases.

minPhrases

minPhrases: number

Shortest name to return. This value must be at least 1.

phraseProviders

phraseProviders: PhraseProvider[]

Array of phrase providers. The number of providers must match maxPhrases. The provider position in the array coresponds to the phrase position returned. The same provider instance may be used in each array position if the same provider should be used for each possible phrase.

Brought to you with ❤ by the Alexa Games team at Amazon. © 2019, Amazon.com, Inc. or its affiliates. All Rights Reserved.