OptionaldialogueDialogue object containing all the dialogue, messages, tooltips, etc. for this option Will be populated on MysteryEncounter initialization
Business logic function for option
OptionalonExecutes after the encounter is over. Usually this will be for calculating dialogueTokens or performing data updates
OptionalonExecutes before any following dialogue or business logic from option. Usually this will be for calculating dialogueTokens or performing scene/data updates
OptionalprimaryOptionalsecondaryReturns true if option contains any EncounterRequirements, false otherwise.
Returns true if all PRIMARY EncounterRequirements for the option are met,
AND there is a valid Pokemon assigned to primaryPokemon.
If both primaryPokemonRequirements and secondaryPokemonRequirements are defined,
can cause scenarios where there are not enough Pokemon that are sufficient for all requirements.
Returns true if all EncounterRequirements for the option are met
Returns true if all SECONDARY EncounterRequirements for the option are met,
AND there is a valid Pokemon assigned to secondaryPokemon (if applicable).
If both primaryPokemonRequirements and secondaryPokemonRequirements are defined,
can cause scenarios where there are not enough Pokemon that are sufficient for all requirements.
Returns true if all PRIMARY EncounterRequirements for the option are met
Used by
MysteryEncounterOptionBuilderclass to define required/optional properties on theMysteryEncounterOptionclass when building.Should ONLY contain properties that are necessary for
MysteryEncounterOptionconstruction. Post-construct and flag data properties are defined in theMysteryEncounterOptionclass itself.