var gdjs;(function(o){const s=class{constructor(r){this._variablesArray=[];this._variables=new Hashtable,r!==void 0&&this.initFrom(r)}initFrom(r,e){e===void 0&&(e=!1),e||(s._deletedVars=s._deletedVars||[],this._variables.keys(s._deletedVars));const a=this;let t=0;for(let n=0;n=this._variablesArray.length){let e=new o.Variable;return this._variables.put("",e),e}else{let e=this._variablesArray[r];return e.isUndefinedInContainer()&&e.reinitialize(),e}}has(r){const e=this._variables.get(r);return!!e&&!e.isUndefinedInContainer()}hasVariable(r){const e=this._variablesArray.find(a=>a===r);return!!e&&!e.isUndefinedInContainer()}getVariableNameInContainerByLoopingThroughAllVariables(r){const e=this._variables.items;for(const a in e)if(e.hasOwnProperty(a)&&e[a]===r)return a;return null}getVariablePathInContainerByLoopingThroughAllVariables(r,e=null){const a=e||this._variables.items;for(const t in a)if(a.hasOwnProperty(t)){const n=a[t];if(n===r)return[t];if(n.getType()==="structure"){const i=n.getAllChildren(),l=this.getVariablePathInContainerByLoopingThroughAllVariables(r,i);if(l)return[t,...l]}}return null}getVariableFromPath(r){let e=this._variables.items;for(let a=0;a{const i=this._variables.get(t).getNetworkSyncData(r);i&&e.push({name:t,...i})}),e}updateFromNetworkSyncData(r,e){const a=this;for(let t=0;to.VariablesContainer.badVariable,toJSObject:()=>0,fromJSObject:()=>o.VariablesContainer.badVariable,reinitialize:()=>{},addChild:()=>o.VariablesContainer.badVariable,castTo:()=>{},clearChildren:()=>{},clone:()=>o.VariablesContainer.badVariable,getChildrenCount:()=>0,replaceChildren:()=>{},replaceChildrenArray:()=>{},getType:function(){return"number"},isPrimitive:function(){return!0},setValue:()=>{},toggle:()=>{},getValue:()=>0,getChild:()=>o.VariablesContainer.badVariable,getChildAt:()=>o.VariablesContainer.badVariable,getChildNamed:()=>o.VariablesContainer.badVariable,hasChild:function(){return!1},isStructure:function(){return!1},isNumber:function(){return!0},removeChild:function(){},setNumber:function(){},setString:function(){},setBoolean:function(){},getAsString:function(){return"0"},getAsNumber:function(){return 0},getAsNumberOrString:function(){return 0},getAsBoolean:function(){return!1},getAllChildren:function(){return{}},getAllChildrenArray:function(){return[]},pushVariableCopy:()=>{},_pushVariable:()=>{},pushValue:()=>{},removeAtIndex:function(){},add:function(){},sub:function(){},mul:function(){},div:function(){},concatenate:function(){},concatenateString:function(){},setUndefinedInContainer:function(){},isUndefinedInContainer:function(){return!0},getPlayerOwnership:function(){return 0},setPlayerOwnership:function(){},disableSynchronization:function(){},getNetworkSyncData:function(){},getStructureNetworkSyncData:function(){return[]},updateFromNetworkSyncData:function(){}},o.VariablesContainer=u})(gdjs||(gdjs={})); //# sourceMappingURL=variablescontainer.js.map