mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-22 01:36:42 +08:00
23 lines
644 B
TypeScript
23 lines
644 B
TypeScript
|
|
import type { SDKInstanceClass } from "./instance.ts";
|
|
|
|
const C3 = globalThis.C3;
|
|
|
|
C3.Plugins.EsotericSoftware_SpineConstruct3.Cnds =
|
|
{
|
|
OnSkeletonLoaded (this: SDKInstanceClass) {
|
|
return true;
|
|
},
|
|
OnAnimationEvent (this: SDKInstanceClass, event: string, track: number, animation: string) {
|
|
console.log(this.triggeredEventName === event
|
|
&& this.triggeredEventTrack === track
|
|
&& this.triggeredEventAnimation === animation);
|
|
return this.triggeredEventName === event
|
|
&& this.triggeredEventTrack === track
|
|
&& this.triggeredEventAnimation === animation;
|
|
},
|
|
IsFlippedX (this: SDKInstanceClass) {
|
|
return this.propFlipX;
|
|
},
|
|
};
|