Initial commit

This commit is contained in:
2025-11-10 15:56:27 -07:00
commit f04db3722f
372 changed files with 39900 additions and 0 deletions

2
src/runtimebehavior.js Normal file
View File

@@ -0,0 +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={}));
//# sourceMappingURL=runtimebehavior.js.map