gdjs.evtsExt__PlatformerCharacterAnimator__PlatformerCharacterAnimator = gdjs.evtsExt__PlatformerCharacterAnimator__PlatformerCharacterAnimator || {}; /** * Behavior generated from Platformer character animator */ gdjs.evtsExt__PlatformerCharacterAnimator__PlatformerCharacterAnimator.PlatformerCharacterAnimator = class PlatformerCharacterAnimator extends gdjs.RuntimeBehavior { constructor(instanceContainer, behaviorData, owner) { super(instanceContainer, behaviorData, owner); this._runtimeScene = instanceContainer; this._onceTriggers = new gdjs.OnceTriggers(); this._behaviorData = {}; this._sharedData = gdjs.evtsExt__PlatformerCharacterAnimator__PlatformerCharacterAnimator.PlatformerCharacterAnimator.getSharedData( instanceContainer, behaviorData.name ); this._behaviorData.EnableAnimationChanges = behaviorData.EnableAnimationChanges !== undefined ? behaviorData.EnableAnimationChanges : true; this._behaviorData.EnableHorizontalFlipping = behaviorData.EnableHorizontalFlipping !== undefined ? behaviorData.EnableHorizontalFlipping : true; this._behaviorData.IdleAnimationName = behaviorData.IdleAnimationName !== undefined ? behaviorData.IdleAnimationName : "Idle"; this._behaviorData.RunAnimationName = behaviorData.RunAnimationName !== undefined ? behaviorData.RunAnimationName : "Run"; this._behaviorData.JumpAnimationName = behaviorData.JumpAnimationName !== undefined ? behaviorData.JumpAnimationName : "Jump"; this._behaviorData.FallAnimationName = behaviorData.FallAnimationName !== undefined ? behaviorData.FallAnimationName : "Fall"; this._behaviorData.ClimbAnimationName = behaviorData.ClimbAnimationName !== undefined ? behaviorData.ClimbAnimationName : "Climb"; this._behaviorData.PlatformerBehavior = behaviorData.PlatformerBehavior !== undefined ? behaviorData.PlatformerBehavior : ""; this._behaviorData.Animation = behaviorData.Animation !== undefined ? behaviorData.Animation : ""; this._behaviorData.Flippable = behaviorData.Flippable !== undefined ? behaviorData.Flippable : ""; } // Hot-reload: updateFromBehaviorData(oldBehaviorData, newBehaviorData) { if (oldBehaviorData.EnableAnimationChanges !== newBehaviorData.EnableAnimationChanges) this._behaviorData.EnableAnimationChanges = newBehaviorData.EnableAnimationChanges; if (oldBehaviorData.EnableHorizontalFlipping !== newBehaviorData.EnableHorizontalFlipping) this._behaviorData.EnableHorizontalFlipping = newBehaviorData.EnableHorizontalFlipping; if (oldBehaviorData.IdleAnimationName !== newBehaviorData.IdleAnimationName) this._behaviorData.IdleAnimationName = newBehaviorData.IdleAnimationName; if (oldBehaviorData.RunAnimationName !== newBehaviorData.RunAnimationName) this._behaviorData.RunAnimationName = newBehaviorData.RunAnimationName; if (oldBehaviorData.JumpAnimationName !== newBehaviorData.JumpAnimationName) this._behaviorData.JumpAnimationName = newBehaviorData.JumpAnimationName; if (oldBehaviorData.FallAnimationName !== newBehaviorData.FallAnimationName) this._behaviorData.FallAnimationName = newBehaviorData.FallAnimationName; if (oldBehaviorData.ClimbAnimationName !== newBehaviorData.ClimbAnimationName) this._behaviorData.ClimbAnimationName = newBehaviorData.ClimbAnimationName; if (oldBehaviorData.PlatformerBehavior !== newBehaviorData.PlatformerBehavior) this._behaviorData.PlatformerBehavior = newBehaviorData.PlatformerBehavior; if (oldBehaviorData.Animation !== newBehaviorData.Animation) this._behaviorData.Animation = newBehaviorData.Animation; if (oldBehaviorData.Flippable !== newBehaviorData.Flippable) this._behaviorData.Flippable = newBehaviorData.Flippable; return true; } // Properties: _getEnableAnimationChanges() { return this._behaviorData.EnableAnimationChanges !== undefined ? this._behaviorData.EnableAnimationChanges : true; } _setEnableAnimationChanges(newValue) { this._behaviorData.EnableAnimationChanges = newValue; } _toggleEnableAnimationChanges() { this._setEnableAnimationChanges(!this._getEnableAnimationChanges()); } _getEnableHorizontalFlipping() { return this._behaviorData.EnableHorizontalFlipping !== undefined ? this._behaviorData.EnableHorizontalFlipping : true; } _setEnableHorizontalFlipping(newValue) { this._behaviorData.EnableHorizontalFlipping = newValue; } _toggleEnableHorizontalFlipping() { this._setEnableHorizontalFlipping(!this._getEnableHorizontalFlipping()); } _getIdleAnimationName() { return this._behaviorData.IdleAnimationName !== undefined ? this._behaviorData.IdleAnimationName : "Idle"; } _setIdleAnimationName(newValue) { this._behaviorData.IdleAnimationName = newValue; } _getRunAnimationName() { return this._behaviorData.RunAnimationName !== undefined ? this._behaviorData.RunAnimationName : "Run"; } _setRunAnimationName(newValue) { this._behaviorData.RunAnimationName = newValue; } _getJumpAnimationName() { return this._behaviorData.JumpAnimationName !== undefined ? this._behaviorData.JumpAnimationName : "Jump"; } _setJumpAnimationName(newValue) { this._behaviorData.JumpAnimationName = newValue; } _getFallAnimationName() { return this._behaviorData.FallAnimationName !== undefined ? this._behaviorData.FallAnimationName : "Fall"; } _setFallAnimationName(newValue) { this._behaviorData.FallAnimationName = newValue; } _getClimbAnimationName() { return this._behaviorData.ClimbAnimationName !== undefined ? this._behaviorData.ClimbAnimationName : "Climb"; } _setClimbAnimationName(newValue) { this._behaviorData.ClimbAnimationName = newValue; } _getPlatformerBehavior() { return this._behaviorData.PlatformerBehavior !== undefined ? this._behaviorData.PlatformerBehavior : ""; } _setPlatformerBehavior(newValue) { this._behaviorData.PlatformerBehavior = newValue; } _getAnimation() { return this._behaviorData.Animation !== undefined ? this._behaviorData.Animation : ""; } _setAnimation(newValue) { this._behaviorData.Animation = newValue; } _getFlippable() { return this._behaviorData.Flippable !== undefined ? this._behaviorData.Flippable : ""; } _setFlippable(newValue) { this._behaviorData.Flippable = newValue; } } /** * Shared data generated from Platformer character animator */ gdjs.evtsExt__PlatformerCharacterAnimator__PlatformerCharacterAnimator.PlatformerCharacterAnimator.SharedData = class PlatformerCharacterAnimatorSharedData { constructor(sharedData) { } // Shared properties: } gdjs.evtsExt__PlatformerCharacterAnimator__PlatformerCharacterAnimator.PlatformerCharacterAnimator.getSharedData = function(instanceContainer, behaviorName) { if (!instanceContainer._PlatformerCharacterAnimator_PlatformerCharacterAnimatorSharedData) { const initialData = instanceContainer.getInitialSharedDataForBehavior( behaviorName ); instanceContainer._PlatformerCharacterAnimator_PlatformerCharacterAnimatorSharedData = new gdjs.evtsExt__PlatformerCharacterAnimator__PlatformerCharacterAnimator.PlatformerCharacterAnimator.SharedData( initialData ); } return instanceContainer._PlatformerCharacterAnimator_PlatformerCharacterAnimatorSharedData; } // Methods: gdjs.evtsExt__PlatformerCharacterAnimator__PlatformerCharacterAnimator.PlatformerCharacterAnimator.prototype.doStepPreEventsContext = {}; gdjs.evtsExt__PlatformerCharacterAnimator__PlatformerCharacterAnimator.PlatformerCharacterAnimator.prototype.doStepPreEventsContext.GDObjectObjects1= []; gdjs.evtsExt__PlatformerCharacterAnimator__PlatformerCharacterAnimator.PlatformerCharacterAnimator.prototype.doStepPreEventsContext.GDObjectObjects2= []; gdjs.evtsExt__PlatformerCharacterAnimator__PlatformerCharacterAnimator.PlatformerCharacterAnimator.prototype.doStepPreEventsContext.GDObjectObjects3= []; gdjs.evtsExt__PlatformerCharacterAnimator__PlatformerCharacterAnimator.PlatformerCharacterAnimator.prototype.doStepPreEventsContext.GDObjectObjects4= []; gdjs.evtsExt__PlatformerCharacterAnimator__PlatformerCharacterAnimator.PlatformerCharacterAnimator.prototype.doStepPreEventsContext.eventsList0 = function(runtimeScene, eventsFunctionContext) { { gdjs.copyArray(gdjs.evtsExt__PlatformerCharacterAnimator__PlatformerCharacterAnimator.PlatformerCharacterAnimator.prototype.doStepPreEventsContext.GDObjectObjects1, gdjs.evtsExt__PlatformerCharacterAnimator__PlatformerCharacterAnimator.PlatformerCharacterAnimator.prototype.doStepPreEventsContext.GDObjectObjects2); let isConditionTrue_0 = false; isConditionTrue_0 = false; for (var i = 0, k = 0, l = gdjs.evtsExt__PlatformerCharacterAnimator__PlatformerCharacterAnimator.PlatformerCharacterAnimator.prototype.doStepPreEventsContext.GDObjectObjects2.length;i