mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
[Enhancement] Move event files to a central directory (#1918)
* Move events to a central directory * Update modifier import Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * remove old battle-scene-events * Move to field events * Update battle-scene.ts --------- Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
This commit is contained in:
parent
5762409b17
commit
65ddd49d64
@ -58,7 +58,7 @@ import * as Overrides from "./overrides";
|
|||||||
import {InputsController} from "./inputs-controller";
|
import {InputsController} from "./inputs-controller";
|
||||||
import {UiInputs} from "./ui-inputs";
|
import {UiInputs} from "./ui-inputs";
|
||||||
import { MoneyFormat } from "./enums/money-format";
|
import { MoneyFormat } from "./enums/money-format";
|
||||||
import { NewArenaEvent } from "./battle-scene-events";
|
import { NewArenaEvent } from "./events/battle-scene";
|
||||||
import { Abilities } from "./data/enums/abilities";
|
import { Abilities } from "./data/enums/abilities";
|
||||||
import ArenaFlyout from "./ui/arena-flyout";
|
import ArenaFlyout from "./ui/arena-flyout";
|
||||||
import { EaseType } from "./ui/enums/ease-type";
|
import { EaseType } from "./ui/enums/ease-type";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Move from "./data/move";
|
import Move from "../data/move";
|
||||||
import { BerryModifier } from "./modifier/modifier";
|
import { BerryModifier } from "../modifier/modifier";
|
||||||
|
|
||||||
/** Alias for all {@linkcode BattleScene} events */
|
/** Alias for all {@linkcode BattleScene} events */
|
||||||
export enum BattleSceneEventType {
|
export enum BattleSceneEventType {
|
||||||
@ -7,7 +7,7 @@ export enum BattleSceneEventType {
|
|||||||
* Triggers when the corresponding setting is changed
|
* Triggers when the corresponding setting is changed
|
||||||
* @see {@linkcode CandyUpgradeNotificationChangedEvent}
|
* @see {@linkcode CandyUpgradeNotificationChangedEvent}
|
||||||
*/
|
*/
|
||||||
CANDY_UPGRADE_NOTIFICATION_CHANGED = "onCandyUpgradeDisplayChanged",
|
CANDY_UPGRADE_NOTIFICATION_CHANGED = "onCandyUpgradeNotificationChanged",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Triggers when a move is successfully used
|
* Triggers when a move is successfully used
|
@ -19,7 +19,7 @@ import { Terrain, TerrainType } from "../data/terrain";
|
|||||||
import { PostTerrainChangeAbAttr, PostWeatherChangeAbAttr, applyPostTerrainChangeAbAttrs, applyPostWeatherChangeAbAttrs } from "../data/ability";
|
import { PostTerrainChangeAbAttr, PostWeatherChangeAbAttr, applyPostTerrainChangeAbAttrs, applyPostWeatherChangeAbAttrs } from "../data/ability";
|
||||||
import Pokemon from "./pokemon";
|
import Pokemon from "./pokemon";
|
||||||
import * as Overrides from "../overrides";
|
import * as Overrides from "../overrides";
|
||||||
import { WeatherChangedEvent, TerrainChangedEvent, TagAddedEvent, TagRemovedEvent } from "./arena-events";
|
import { WeatherChangedEvent, TerrainChangedEvent, TagAddedEvent, TagRemovedEvent } from "./events/arena";
|
||||||
|
|
||||||
export class Arena {
|
export class Arena {
|
||||||
public scene: BattleScene;
|
public scene: BattleScene;
|
||||||
|
@ -62,7 +62,7 @@ import { Abilities } from "./data/enums/abilities";
|
|||||||
import * as Overrides from "./overrides";
|
import * as Overrides from "./overrides";
|
||||||
import { TextStyle, addTextObject } from "./ui/text";
|
import { TextStyle, addTextObject } from "./ui/text";
|
||||||
import { Type } from "./data/type";
|
import { Type } from "./data/type";
|
||||||
import { BerryUsedEvent, EncounterPhaseEvent, MoveUsedEvent, TurnEndEvent, TurnInitEvent } from "./battle-scene-events";
|
import { BerryUsedEvent, EncounterPhaseEvent, MoveUsedEvent, TurnEndEvent, TurnInitEvent } from "./events/battle-scene";
|
||||||
import { ExpNotification } from "./enums/exp-notification";
|
import { ExpNotification } from "./enums/exp-notification";
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ import { OutdatedPhase, ReloadSessionPhase } from "#app/phases";
|
|||||||
import { Variant, variantData } from "#app/data/variant";
|
import { Variant, variantData } from "#app/data/variant";
|
||||||
import {setSettingGamepad, SettingGamepad, settingGamepadDefaults} from "./settings/settings-gamepad";
|
import {setSettingGamepad, SettingGamepad, settingGamepadDefaults} from "./settings/settings-gamepad";
|
||||||
import {setSettingKeyboard, SettingKeyboard} from "#app/system/settings/settings-keyboard";
|
import {setSettingKeyboard, SettingKeyboard} from "#app/system/settings/settings-keyboard";
|
||||||
import { TerrainChangedEvent, WeatherChangedEvent } from "#app/field/arena-events.js";
|
import { TerrainChangedEvent, WeatherChangedEvent } from "#app/field/events/arena";
|
||||||
import { Device } from "#app/enums/devices.js";
|
import { Device } from "#app/enums/devices.js";
|
||||||
import { EnemyAttackStatusEffectChanceModifier } from "../modifier/modifier";
|
import { EnemyAttackStatusEffectChanceModifier } from "../modifier/modifier";
|
||||||
import { StatusEffect } from "#app/data/status-effect.js";
|
import { StatusEffect } from "#app/data/status-effect.js";
|
||||||
|
@ -4,7 +4,7 @@ import BattleScene from "../../battle-scene";
|
|||||||
import { hasTouchscreen } from "../../touch-controls";
|
import { hasTouchscreen } from "../../touch-controls";
|
||||||
import { updateWindowType } from "../../ui/ui-theme";
|
import { updateWindowType } from "../../ui/ui-theme";
|
||||||
import { PlayerGender } from "#app/data/enums/player-gender";
|
import { PlayerGender } from "#app/data/enums/player-gender";
|
||||||
import { CandyUpgradeNotificationChangedEvent } from "#app/battle-scene-events.js";
|
import { CandyUpgradeNotificationChangedEvent } from "../../events/battle-scene";
|
||||||
import { MoneyFormat } from "../../enums/money-format";
|
import { MoneyFormat } from "../../enums/money-format";
|
||||||
import SettingsUiHandler from "#app/ui/settings/settings-ui-handler";
|
import SettingsUiHandler from "#app/ui/settings/settings-ui-handler";
|
||||||
import { EaseType } from "#app/ui/enums/ease-type.js";
|
import { EaseType } from "#app/ui/enums/ease-type.js";
|
||||||
|
@ -4,8 +4,8 @@ import { ArenaTagSide } from "#app/data/arena-tag.js";
|
|||||||
import { WeatherType } from "#app/data/weather.js";
|
import { WeatherType } from "#app/data/weather.js";
|
||||||
import { TerrainType } from "#app/data/terrain.js";
|
import { TerrainType } from "#app/data/terrain.js";
|
||||||
import { addWindow, WindowVariant } from "./ui-theme";
|
import { addWindow, WindowVariant } from "./ui-theme";
|
||||||
import { ArenaEvent, ArenaEventType, TagAddedEvent, TagRemovedEvent, TerrainChangedEvent, WeatherChangedEvent } from "#app/field/arena-events.js";
|
import { ArenaEvent, ArenaEventType, TagAddedEvent, TagRemovedEvent, TerrainChangedEvent, WeatherChangedEvent } from "#app/field/events/arena";
|
||||||
import { BattleSceneEventType, TurnEndEvent } from "#app/battle-scene-events.js";
|
import { BattleSceneEventType, TurnEndEvent } from "../events/battle-scene";
|
||||||
import { ArenaTagType } from "#app/data/enums/arena-tag-type.js";
|
import { ArenaTagType } from "#app/data/enums/arena-tag-type.js";
|
||||||
import TimeOfDayWidget from "./time-of-day-widget";
|
import TimeOfDayWidget from "./time-of-day-widget";
|
||||||
import * as Utils from "../utils";
|
import * as Utils from "../utils";
|
||||||
|
@ -4,7 +4,7 @@ import * as Utils from "../utils";
|
|||||||
import BattleScene from "#app/battle-scene.js";
|
import BattleScene from "#app/battle-scene.js";
|
||||||
import { UiTheme } from "#app/enums/ui-theme.js";
|
import { UiTheme } from "#app/enums/ui-theme.js";
|
||||||
import Move from "#app/data/move.js";
|
import Move from "#app/data/move.js";
|
||||||
import { BattleSceneEventType, BerryUsedEvent, MoveUsedEvent } from "#app/battle-scene-events.js";
|
import { BattleSceneEventType, BerryUsedEvent, MoveUsedEvent } from "../events/battle-scene";
|
||||||
import { BerryType } from "#app/data/enums/berry-type.js";
|
import { BerryType } from "#app/data/enums/berry-type.js";
|
||||||
import { Moves } from "#app/data/enums/moves.js";
|
import { Moves } from "#app/data/enums/moves.js";
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { BattleSceneEventType, CandyUpgradeNotificationChangedEvent } from "#app/battle-scene-events.js";
|
import { BattleSceneEventType, CandyUpgradeNotificationChangedEvent } from "../events/battle-scene";
|
||||||
import { pokemonPrevolutions } from "#app/data/pokemon-evolutions";
|
import { pokemonPrevolutions } from "#app/data/pokemon-evolutions";
|
||||||
import { Variant, getVariantTint } from "#app/data/variant";
|
import { Variant, getVariantTint } from "#app/data/variant";
|
||||||
import { argbFromRgba } from "@material/material-color-utilities";
|
import { argbFromRgba } from "@material/material-color-utilities";
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import * as Utils from "../utils";
|
import * as Utils from "../utils";
|
||||||
import BattleScene from "#app/battle-scene.js";
|
import BattleScene from "#app/battle-scene.js";
|
||||||
import { TimeOfDay } from "#app/data/enums/time-of-day.js";
|
import { TimeOfDay } from "#app/data/enums/time-of-day.js";
|
||||||
import { BattleSceneEventType } from "#app/battle-scene-events.js";
|
import { BattleSceneEventType } from "../events/battle-scene";
|
||||||
import { EaseType } from "./enums/ease-type";
|
import { EaseType } from "./enums/ease-type";
|
||||||
|
|
||||||
/** A small self contained UI element that displays the time of day as an icon */
|
/** A small self contained UI element that displays the time of day as an icon */
|
||||||
|
Loading…
Reference in New Issue
Block a user