2025-11-04 16:53:51 +01:00

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;
},
};