1.2.0
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
var gdjs;(function(i){class n{constructor(t){this.minX=0;this.minY=0;this.maxX=0;this.maxY=0;this.behavior=t,this.updateAABBFromOwner()}updateAABBFromOwner(){this.minX=this.behavior.owner.getAABB().min[0],this.minY=this.behavior.owner.getAABB().min[1],this.maxX=this.behavior.owner.getAABB().max[0],this.maxY=this.behavior.owner.getAABB().max[1]}}i.BehaviorRBushAABB=n;class o{constructor(t,e,r){this.owner=r;this._activated=!0;this._syncOverNetwork=!0;this.name=e.name||"",this.type=e.type||"",this._nameId=i.RuntimeObject.getNameIdentifier(this.name)}updateFromBehaviorData(t,e){return!1}getNetworkSyncData(t){return{act:this._activated,props:{}}}updateFromNetworkSyncData(t,e){t.act!==this._activated&&this.activate(t.act)}getName(){return this.name}getNameId(){return this._nameId}stepPreEvents(t){if(this._activated){const e=t.getScene().getProfiler();e&&e.begin(this.name),this.doStepPreEvents(t),e&&e.end(this.name)}}stepPostEvents(t){if(this._activated){const e=t.getScene().getProfiler();e&&e.begin(this.name),this.doStepPostEvents(t),e&&e.end(this.name)}}activate(t){t===void 0&&(t=!0),!this._activated&&t?(this._activated=!0,this.onActivate()):this._activated&&!t&&(this._activated=!1,this.onDeActivate())}onCreated(){}activated(){return this._activated}onActivate(){}onDeActivate(){}doStepPreEvents(t){}doStepPostEvents(t){}onDestroy(){}onObjectHotReloaded(){}usesLifecycleFunction(){return!0}enableSynchronization(t){this._syncOverNetwork=t}isSyncedOverNetwork(){return this._syncOverNetwork}}i.RuntimeBehavior=o,i.registerBehavior("",i.RuntimeBehavior)})(gdjs||(gdjs={}));
|
||||
var gdjs;(function(i){class o{constructor(t){this.minX=0;this.minY=0;this.maxX=0;this.maxY=0;this.behavior=t,this.updateAABBFromOwner()}updateAABBFromOwner(){this.minX=this.behavior.owner.getAABB().min[0],this.minY=this.behavior.owner.getAABB().min[1],this.maxX=this.behavior.owner.getAABB().max[0],this.maxY=this.behavior.owner.getAABB().max[1]}}i.BehaviorRBushAABB=o;class r{constructor(t,e,s){this.owner=s;this._syncOverNetwork=!0;this.name=e.name||"",this.type=e.type||"",this._nameId=i.RuntimeObject.getNameIdentifier(this.name);const a=t.getGame();this._activated=!a.isInGameEdition()||!!a.isBehaviorActivatedByDefaultInEditor(this.type)}updateFromBehaviorData(t,e){return!1}getNetworkSyncData(t){return{act:this._activated,props:{}}}updateFromNetworkSyncData(t,e){t.act!==this._activated&&this.activate(t.act)}getName(){return this.name}getNameId(){return this._nameId}stepPreEvents(t){if(this._activated){const e=t.getScene().getProfiler();e&&e.begin(this.name),this.doStepPreEvents(t),e&&e.end(this.name)}}stepPostEvents(t){if(this._activated){const e=t.getScene().getProfiler();e&&e.begin(this.name),this.doStepPostEvents(t),e&&e.end(this.name)}}activate(t){t===void 0&&(t=!0),!this._activated&&t?(this._activated=!0,this.onActivate()):this._activated&&!t&&(this._activated=!1,this.onDeActivate())}onCreated(){}activated(){return this._activated}onActivate(){}onDeActivate(){}doStepPreEvents(t){}doStepPostEvents(t){}onDestroy(){}onObjectHotReloaded(){}usesLifecycleFunction(){return!0}enableSynchronization(t){this._syncOverNetwork=t}isSyncedOverNetwork(){return this._syncOverNetwork}}i.RuntimeBehavior=r,i.registerBehavior("",i.RuntimeBehavior)})(gdjs||(gdjs={}));
|
||||
//# sourceMappingURL=runtimebehavior.js.map
|
||||
|
||||
Reference in New Issue
Block a user