@animech-public/playcanvas
Version:
PlayCanvas WebGL game engine
2 lines (1 loc) • 733 B
JavaScript
import{ANIM_INTERRUPTION_NONE as t}from"./constants.js";class i{constructor({from:i,to:r,time:e=0,priority:o=0,conditions:n=[],exitTime:s=null,transitionOffset:u=null,interruptionSource:h=t}){this._from=i,this._to=r,this._time=e,this._priority=o,this._conditions=n,this._exitTime=s,this._transitionOffset=u,this._interruptionSource=h}get from(){return this._from}set to(t){this._to=t}get to(){return this._to}get time(){return this._time}get priority(){return this._priority}get conditions(){return this._conditions}get exitTime(){return this._exitTime}get transitionOffset(){return this._transitionOffset}get interruptionSource(){return this._interruptionSource}get hasExitTime(){return!!this.exitTime}}export{i as AnimTransition};