# IMysteryEncounterOption | pokemon-rogue-battle
Documentation for pokemon-rogue-battle

# Interface IMysteryEncounterOption

Used by `MysteryEncounterOptionBuilder` class to define required/optional properties on the `MysteryEncounterOption` class when building.

Should ONLY contain properties that are necessary for `MysteryEncounterOption` construction. Post-construct and flag data properties are defined in the `MysteryEncounterOption` class itself.

interface IMysteryEncounterOption {
dialogue ?: OptionTextDisplay ;
excludePrimaryFromSecondaryRequirements : boolean;
hasDexProgress : boolean;
onOptionPhase : OptionPhaseCallback ;
onPostOptionPhase ?: OptionPhaseCallback ;
onPreOptionPhase ?: OptionPhaseCallback ;
optionMode : MysteryEncounterOptionMode ;
primaryPokemonRequirements : EncounterPokemonRequirement [];
requirements : EncounterSceneRequirement [];
secondaryPokemonRequirements : EncounterPokemonRequirement [];
}

#### Implemented by

- default

- Defined in src/data/mystery-encounters/mystery-encounter-option.ts:27

##### Index

### Properties

dialogue?
excludePrimaryFromSecondaryRequirements
hasDexProgress
onOptionPhase
onPostOptionPhase?
onPreOptionPhase?
optionMode
primaryPokemonRequirements
requirements
secondaryPokemonRequirements

## Properties

### `Optional` dialogue

dialogue?: OptionTextDisplay

- Defined in src/data/mystery-encounters/mystery-encounter-option.ts:35

### excludePrimaryFromSecondaryRequirements

excludePrimaryFromSecondaryRequirements: boolean

- Defined in src/data/mystery-encounters/mystery-encounter-option.ts:33

### hasDexProgress

hasDexProgress: boolean

- Defined in src/data/mystery-encounters/mystery-encounter-option.ts:29

### onOptionPhase

onOptionPhase: OptionPhaseCallback

- Defined in src/data/mystery-encounters/mystery-encounter-option.ts:38

### `Optional` onPostOptionPhase

onPostOptionPhase?: OptionPhaseCallback

- Defined in src/data/mystery-encounters/mystery-encounter-option.ts:39

### `Optional` onPreOptionPhase

onPreOptionPhase?: OptionPhaseCallback

- Defined in src/data/mystery-encounters/mystery-encounter-option.ts:37

### optionMode

optionMode: MysteryEncounterOptionMode

- Defined in src/data/mystery-encounters/mystery-encounter-option.ts:28

### primaryPokemonRequirements

primaryPokemonRequirements: EncounterPokemonRequirement []

- Defined in src/data/mystery-encounters/mystery-encounter-option.ts:31

### requirements

requirements: EncounterSceneRequirement []

- Defined in src/data/mystery-encounters/mystery-encounter-option.ts:30

### secondaryPokemonRequirements

secondaryPokemonRequirements: EncounterPokemonRequirement []

- Defined in src/data/mystery-encounters/mystery-encounter-option.ts:32