Optional
dialogueDialogue object containing all the dialogue, messages, tooltips, etc. for this option Will be populated on MysteryEncounter initialization
Business logic function for option
Optional
onExecutes after the encounter is over. Usually this will be for calculating dialogueTokens or performing data updates
Optional
onExecutes before any following dialogue or business logic from option. Usually this will be for calculating dialogueTokens or performing scene/data updates
Optional
primaryOptional
secondaryReturns 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.
Used by
MysteryEncounterOptionBuilder
class to define required/optional properties on theMysteryEncounterOption
class when building.Should ONLY contain properties that are necessary for
MysteryEncounterOption
construction. Post-construct and flag data properties are defined in theMysteryEncounterOption
class itself.