mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-28 19:57:15 +00:00
5d358fc57f
* refactor egg counter * add documentation
22 lines
483 B
TypeScript
22 lines
483 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: integer;
|
|
|
|
constructor(eggCount: number) {
|
|
super(EggEventType.EGG_COUNT_CHANGED);
|
|
this.eggCount = eggCount;
|
|
}
|
|
}
|