Skip to content

Commit

Permalink
Merge pull request #400 from abhishekrathore03/master
Browse files Browse the repository at this point in the history
Fixed #399
  • Loading branch information
ivanpopelyshev authored Jul 27, 2021
2 parents ab2536d + c2e914c commit 573360d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/base/src/core/ISkeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ export interface IAnimationState {
addEmptyAnimation (trackIndex: number, mixDuration: number, delay: number): ITrackEntry;
setEmptyAnimations (mixDuration: number): void;
hasAnimation(animationName: string): boolean;
addListener (listener: IAnimationStateListener);
removeListener (listener: IAnimationStateListener);
}

/**
Expand All @@ -159,3 +161,19 @@ export interface IAnimationStateData {
defaultMix: number;
setMix (fromName: string, toName: string, duration: number): void;
}

export interface IEventData {
name: string;
}
export interface IEvent {
time: number;
data: IEventData;
}
export interface IAnimationStateListener {
start? (entry: ITrackEntry): void;
interrupt? (entry: ITrackEntry): void;
end? (entry: ITrackEntry): void;
dispose? (entry: ITrackEntry): void;
complete? (entry: ITrackEntry): void;
event? (entry: ITrackEntry, event: IEvent): void;
}

0 comments on commit 573360d

Please sign in to comment.