pokerogue/src/events/egg.ts
Sirz Benjie 408b66f913
[Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495)
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-03-09 14:13:25 -07:00

22 lines
484 B
TypeScript

export enum EggEventType {
/**
* Triggers when egg count is changed.
* @see {@linkcode MoveUsedEvent}
*/
EGG_COUNT_CHANGED = "onEggCountChanged",
}
/**
* Container class for {@linkcode EggEventType.EGG_COUNT_CHANGED} events
* @extends Event
*/
export class EggCountChangedEvent extends Event {
/** The updated egg count. */
public eggCount: number;
constructor(eggCount: number) {
super(EggEventType.EGG_COUNT_CHANGED);
this.eggCount = eggCount;
}
}