PokemonAutomation / Arduino-Source

MIT License
21 stars 58 forks source link

Autostory base #485

Closed jw098 closed 1 month ago

jw098 commented 1 month ago

The Autostory.h file, on its own.

484 should be merged first.

jw098 commented 1 month ago

I refactored Autostory so that each segment is it's own class. This let's us run the segments from the list, based on index, instead of a large switch statement.

We want our autostory to have a break after the tutorial, to allow the user to send in the level 100 Gardevoir as the lead. This is why I added the EnumDropdownOption STORY_SECTION, to toggle between the Tutorial and Main story segments. But since we're trying to PR the code in stages, the main story segments haven't been PR'ed yet. This is why StringSelectOption STARTPOINT_MAINSTORY and ENDPOINT_MAINSTORY are commented out.