mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
[ts] Port of commit c2fe1a3, Added TrackEntry IsNextReady. See #2547.
This commit is contained in:
parent
b4d61790f7
commit
2ac0307c84
@ -1032,6 +1032,12 @@ export class TrackEntry {
|
|||||||
wasApplied () {
|
wasApplied () {
|
||||||
return this.nextTrackLast != -1;
|
return this.nextTrackLast != -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Returns true if there is a {@link #getNext()} track entry and it will become the current track entry during the next
|
||||||
|
* {@link AnimationState#update(float)}. */
|
||||||
|
isNextReady () {
|
||||||
|
return this.next != null && this.nextTrackLast - this.next.delay >= 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class EventQueue {
|
export class EventQueue {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user