Constructor
# new CharacterManager()
Example
const seed: number = 1337;
const rng = new Random('./path/to/stsJar', seed);
const todaysCharacter: PlayableCharacter = CharacterManager.getRandomCharacter(rng);
Methods
# static getCharacterDisplayName(character) → {string}
Get the display name of a character
Parameters:
Name | Type | Description |
---|---|---|
character |
PlayableCharacter | Character to get display name of |
string
# static getRandomCharacter(rng) → {PlayableCharacter}
Get a random PlayableCharacter using a provided random number generator
Parameters:
Name | Type | Description |
---|---|---|
rng |
Random | Random number generator |