To allow the creation of builds for a different game version, follow these steps:
- Add the version to the API enum
uk.raidcomp.game.version.GameVersion
- Add any missing class/spec slug to the API enums:
uk.raidcomp.game.WarcraftPlayerClass
uk.raidcomp.game.WarcraftPlayerSpec
- Add the version to the UI enum
GameVersionSlug
- For consistency, any new implementations of the following interfaces, as well as any game version related logic
should go under
ui/src/lib/versions/<version slug>
- Create a typescript (preferably
source.ts
) file that exports a json with the typeGameVersionSource
- If the icons do not exist in the live game, implement an
IconProvider
- Implement the
GameVersion
class and call thesuper
constructor with the source defined above - Add your implementations to
GameVersionFactory
- Create a typescript (preferably
- Add translations for the version and any missing class/spec/buff/utility slug
in
ui/src/locales/<language>/game.json
To test locally, add a mock build in the ui/src/mocks/mock/data
directory