Source

SlayTheSpireAPI/MasterLists/PlayableCharacters.ts

  1. /**
  2. * Types of playable characters
  3. * @enum
  4. * @type PlayableCharacter
  5. * @constant
  6. * @example
  7. * const ironclad: PlayableCharacter = PlayableCharacter.Ironclad;
  8. */
  9. export enum PlayableCharacter {
  10. Ironclad,
  11. Silent,
  12. Defect,
  13. Watcher
  14. }
  15. /**
  16. * An array of {@link PlayableCharacter} names that can be used to convert a
  17. * {@link PlayableCharacter} to a human readable display name
  18. * @type CharacterDisplayNames<string>
  19. * @constant
  20. * @example
  21. * const ironcladName: string = CharacterDisplayNames[PlayableCharacter.Ironclad];
  22. */
  23. export const CharacterDisplayNames: Array<string> = [
  24. 'Ironclad',
  25. 'Silent',
  26. 'Defect',
  27. 'Watcher',
  28. ];
  29. /**
  30. * {@link PlayableCharacter} types in the form of an array. Used to convert an index
  31. * to a {@link PlayableCharacter}
  32. * @type Array<PlayableCharacter>
  33. * @constant
  34. * @example
  35. * const ironclad: PlayableCharacter = MasterCharacterList[0];
  36. */
  37. export const MasterCharacterList: Array<PlayableCharacter> = [
  38. PlayableCharacter.Ironclad,
  39. PlayableCharacter.Silent,
  40. PlayableCharacter.Defect,
  41. PlayableCharacter.Watcher,
  42. ];