PageSourceSearch

https://jlawsm.netlify.app/gdjs-evtsext__advancedjump__platformerconfigurationstack.js

js jlawsm.netlify.app collected 2026-10-03 10:57:33 UTC 56,297 bytes, 1,187 lines download raw bytes

1
2gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack = gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack || {};
3
4/**
5 * Behavior generated from Platformer character configuration stack
6 */
7gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack = class PlatformerConfigurationStack extends gdjs.RuntimeBehavior {
8  constructor(instanceContainer, behaviorData, owner) {
9    super(instanceContainer, behaviorData, owner);
10    this._runtimeScene = instanceContainer;
11
12    this._onceTriggers = new gdjs.OnceTriggers();
13    this._behaviorData = {};
14    this._sharedData = gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.getSharedData(
15      instanceContainer,
16      behaviorData.name
17    );
18    
19    this._behaviorData.PlatformerCharacter = behaviorData.PlatformerCharacter !== undefined ? behaviorData.PlatformerCharacter : "";
20  }
21
22  // Hot-reload:
23  updateFromBehaviorData(oldBehaviorData, newBehaviorData) {
24    
25    if (oldBehaviorData.PlatformerCharacter !== newBehaviorData.PlatformerCharacter)
26      this._behaviorData.PlatformerCharacter = newBehaviorData.PlatformerCharacter;
27
28    return true;
29  }
30
31  // Network sync:
32  getNetworkSyncData() {
33    return {
34      ...super.getNetworkSyncData(),
35      props: {
36        
37    PlatformerCharacter: this._behaviorData.PlatformerCharacter,
38      }
39    };
40  }
41  updateFromNetworkSyncData(networkSyncData) {
42    super.updateFromNetworkSyncData(networkSyncData);
43    
44    if (networkSyncData.props.PlatformerCharacter !== undefined)
45      this._behaviorData.PlatformerCharacter = networkSyncData.props.PlatformerCharacter;
46  }
47
48  // Properties:
49  
50  _getPlatformerCharacter() {
51    return this._behaviorData.PlatformerCharacter !== undefined ? this._behaviorData.PlatformerCharacter : "";
52  }
53  _setPlatformerCharacter(newValue) {
54    this._behaviorData.PlatformerCharacter = newValue;
55  }
56}
57
58/**
59 * Shared data generated from Platformer character configuration stack
60 */
61gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.SharedData = class PlatformerConfigurationStackSharedData {
62  constructor(sharedData) {
63    
64  }
65  
66  // Shared properties:
67  
68}
69
70gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.getSharedData = function(instanceContainer, behaviorName) {
71  if (!instanceContainer._AdvancedJump_PlatformerConfigurationStackSharedData) {
72    const initialData = instanceContainer.getInitialSharedDataForBehavior(
73      behaviorName
74    );
75    instanceContainer._AdvancedJump_PlatformerConfigurationStackSharedData = new gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.SharedData(
76      initialData
77    );
78  }
79  return instanceContainer._AdvancedJump_PlatformerConfigurationStackSharedData;
80}
81
82// Methods:
83gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.onCreatedContext = {};
84gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.onCreatedContext.GDObjectObjects1= [];
85
86
87gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.onCreatedContext.userFunc0xb30c00 = function GDJSInlineCode(runtimeScene, objects, eventsFunctionContext) {
88"use strict";
89const behaviorName = eventsFunctionContext.getBehaviorName("Behavior");
90const object = objects[0];
91const behavior = object.getBehavior(behaviorName);
92/** @type {gdjs.PlatformerObjectRuntimeBehavior} */
93const character = object.getBehavior(behavior._getPlatformerCharacter());
94
95behavior.__settingNames = behavior.__settingNames || ["gravity", "maxFallSpeed", "jumpSpeed", "jumpSustainTime", "acceleration", "deceleration", "maxSpeed"];
96
97/** @type {{id:string, gravity: float, maxFallSpeed: float, jumpSpeed: float, jumpSustainTime: float, acceleration: float, deceleration: float, maxSpeed: float}[]} */
98const configurationChanges = [];
99behavior.__configurationChanges = configurationChanges;
100// Add the default configuration
101configurationChanges.push(({
102    id: undefined,
103    gravity: character.getGravity(),
104    maxFallSpeed: character.getMaxFallingSpeed(),
105    jumpSpeed: character.getJumpSpeed(),
106    jumpSustainTime: character.getJumpSustainTime(),
107    acceleration: character.getAcceleration(),
108    deceleration: character.getDeceleration(),
109    maxSpeed: character.getMaxSpeed()
110}
110));
111
112};
113gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.onCreatedContext.eventsList0 = function(runtimeScene, eventsFunctionContext) {
114
115{
116
117gdjs.copyArray(eventsFunctionContext.getObjects("Object"), gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.onCreatedContext.GDObjectObjects1);
118
119var objects = [];
120objects.push.apply(objects,gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.onCreatedContext.GDObjectObjects1);
121gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.onCreatedContext.userFunc0xb30c00(runtimeScene, objects, typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined);
122
123}
124
125
126};
127
128gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.onCreated = function(parentEventsFunctionContext) {
129
130var that = this;
131var runtimeScene = this._runtimeScene;
132var thisObjectList = [this.owner];
133var Object = Hashtable.newFrom({Object: thisObjectList});
134var Behavior = this.name;
135var eventsFunctionContext = {
136  _objectsMap: {
137"Object": Object
138},
139  _objectArraysMap: {
140"Object": thisObjectList
141},
142  _behaviorNamesMap: {
143"Behavior": Behavior
144, "PlatformerCharacter": this._getPlatformerCharacter()
145},
146  globalVariablesForExtension: runtimeScene.getGame().getVariablesForExtension("AdvancedJump"),
147  sceneVariablesForExtension: runtimeScene.getScene().getVariablesForExtension("AdvancedJump"),
148  localVariables: [],
149  getObjects: function(objectName) {
150    return eventsFunctionContext._objectArraysMap[objectName] || [];
151  },
152  getObjectsLists: function(objectName) {
153    return eventsFunctionContext._objectsMap[objectName] || null;
154  },
155  getBehaviorName: function(behaviorName) {
156    return eventsFunctionContext._behaviorNamesMap[behaviorName] || behaviorName;
157  },
158  createObject: function(objectName) {
159    const objectsList = eventsFunctionContext._objectsMap[objectName];
160    if (objectsList) {
161      const object = parentEventsFunctionContext ?
162        parentEventsFunctionContext.createObject(objectsList.firstKey()) :
163        runtimeScene.createObject(objectsList.firstKey());
164      if (object) {
165        objectsList.get(objectsList.firstKey()).push(object);
166        eventsFunctionContext._objectArraysMap[objectName].push(object);
167      }
168      return object;    }
169    return null;
170  },
171  getInstancesCountOnScene: function(objectName) {
172    const objectsList = eventsFunctionContext._objectsMap[objectName];
173    let count = 0;
174    if (objectsList) {
175      for(const objectName in objectsList.items)
176        count += parentEventsFunctionContext ?
177parentEventsFunctionContext.getInstancesCountOnScene(objectName) :
178        runtimeScene.getInstancesCountOnScene(objectName);
179    }
180    return count;
181  },
182  getLayer: function(layerName) {
183    return runtimeScene.getLayer(layerName);
184  },
185  getArgument: function(argName) {
186    return "";
187  },
188  getOnceTriggers: function() { return that._onceTriggers; }
189};
190
191gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.onCreatedContext.GDObjectObjects1.length = 0;
192
193gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.onCreatedContext.eventsList0(runtimeScene, eventsFunctionContext);
194gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.onCreatedContext.GDObjectObjects1.length = 0;
195
196
197return;
198}
199gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.RevertConfigurationContext = {};
200gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.RevertConfigurationContext.GDObjectObjects1= [];
201
202
203gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.RevertConfigurationContext.userFunc0x8e9e60 = function GDJSInlineCode(runtimeScene, objects, eventsFunctionContext) {
204"use strict";
205const behaviorName = eventsFunctionContext.getBehaviorName("Behavior");
206const object = objects[0];
207const behavior = object.getBehavior(behaviorName);
208/** @type {gdjs.PlatformerObjectRuntimeBehavior} */
209const character = object.getBehavior(behavior._getPlatformerCharacter());
210/** @type {string} */
211const id = eventsFunctionContext.getArgument("Identifier");
212
213if (id === undefined) {
214    return;
215}
216
217/** @type {{id:string, gravity: float, maxFallSpeed: float, jumpSpeed: float, jumpSustainTime: float, acceleration: float, deceleration: float, maxSpeed: float}[]} */
218const configurationChanges = behavior.__configurationChanges || [];
219
220const index = configurationChanges.findIndex(value => value.id === id);
221if (index >= 0) {
222    configurationChanges.splice(index, 1);
223
224    // Update the configuration with the most recent changes.
225    /** @type {string[]} */
226    const settingNames = behavior.__settingNames;
227    for (const settingName of settingNames) {
228        const configuration = configurationChanges.find(value => value[settingName] !== undefined);
229        const settingValue = configuration[settingName];
230        // Methods can't be stored because the character instance could change.
231        switch (settingName) {
232            case "gravity":
233                character.setGravity(settingValue);
234                break;
235            case "maxFallSpeed":
236                character.setMaxFallingSpeed(settingValue);
237                break;
238            case "jumpSpeed":
239                character.setJumpSpeed(settingValue);
240                break;
241            case "jumpSustainTime":
242                character.setJumpSustainTime(settingValue);
243                break;
244            case "acceleration":
245                character.setAcceleration(settingValue);
246                break;
247            case "deceleration":
248                character.setDeceleration(settingValue);
249                break;
250            case "maxSpeed":
251                character.setMaxSpeed(settingValue);
252                break;
253        }
254    }
255}
256
257};
258gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.RevertConfigurationContext.eventsList0 = function(runtimeScene, eventsFunctionContext) {
259
260{
261
262gdjs.copyArray(eventsFunctionContext.getObjects("Object"), gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.RevertConfigurationContext.GDObjectObjects1);
263
264var objects = [];
265objects.push.apply(objects,gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.RevertConfigurationContext.GDObjectObjects1);
266gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.RevertConfigurationContext.userFunc0x8e9e60(runtimeScene, objects, typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined);
267
268}
269
270
271};
272
273gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.RevertConfiguration = function(Identifier, parentEventsFunctionContext) {
274
275var that = this;
276var runtimeScene = this._runtimeScene;
277var thisObjectList = [this.owner];
278var Object = Hashtable.newFrom({Object: thisObjectList});
279var Behavior = this.name;
280var eventsFunctionContext = {
281  _objectsMap: {
282"Object": Object
283},
284  _objectArraysMap: {
285"Object": thisObjectList
286},
287  _behaviorNamesMap: {
288"Behavior": Behavior
289, "PlatformerCharacter": this._getPlatformerCharacter()
290},
291  globalVariablesForExtension: runtimeScene.getGame().getVariablesForExtension("AdvancedJump"),
292  sceneVariablesForExtension: runtimeScene.getScene().getVariablesForExtension("AdvancedJump"),
293  localVariables: [],
294  getObjects: function(objectName) {
295    return eventsFunctionContext._objectArraysMap[objectName] || [];
296  },
297  getObjectsLists: function(objectName) {
298    return eventsFunctionContext._objectsMap[objectName] || null;
299  },
300  getBehaviorName: function(behaviorName) {
301    return eventsFunctionContext._behaviorNamesMap[behaviorName] || behaviorName;
302  },
303  createObject: function(objectName) {
304    const objectsList = eventsFunctionContext._objectsMap[objectName];
305    if (objectsList) {
306      const object = parentEventsFunctionContext ?
307        parentEventsFunctionContext.createObject(objectsList.firstKey()) :
308        runtimeScene.createObject(objectsList.firstKey());
309      if (object) {
310        objectsList.get(objectsList.firstKey()).push(object);
311        eventsFunctionContext._objectArraysMap[objectName].push(object);
312      }
313      return object;    }
314    return null;
315  },
316  getInstancesCountOnScene: function(objectName) {
317    const objectsList = eventsFunctionContext._objectsMap[objectName];
318    let count = 0;
319    if (objectsList) {
320      for(const objectName in objectsList.items)
321        count += parentEventsFunctionContext ?
322parentEventsFunctionContext.getInstancesCountOnScene(objectName) :
323        runtimeScene.getInstancesCountOnScene(objectName);
324    }
325    return count;
326  },
327  getLayer: function(layerName) {
328    return runtimeScene.getLayer(layerName);
329  },
330  getArgument: function(argName) {
331if (argName === "Identifier") return Identifier;
332    return "";
333  },
334  getOnceTriggers: function() { return that._onceTriggers; }
335};
336
337gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.RevertConfigurationContext.GDObjectObjects1.length = 0;
338
339gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.RevertConfigurationContext.eventsList0(runtimeScene, eventsFunctionContext);
340gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.RevertConfigurationContext.GDObjectObjects1.length = 0;
341
342
343return;
344}
345gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualSettingContext = {};
346gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualSettingContext.GDObjectObjects1= [];
347
348
349gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualSettingContext.userFunc0xa7e758 = function GDJSInlineCode(runtimeScene, objects, eventsFunctionContext) {
350"use strict";
351const behaviorName = eventsFunctionContext.getBehaviorName("Behavior");
352const object = objects[0];
353const behavior = object.getBehavior(behaviorName);
354/** @type {gdjs.PlatformerObjectRuntimeBehavior} */
355const character = object.getBehavior(behavior._getPlatformerCharacter());
356/** @type {string} */
357const settingName = eventsFunctionContext.getArgument("SettingName");
358/** @type {float} */
359const settingValue = eventsFunctionContext.getArgument("SettingValue");
360/** @type {string} */
361const id = eventsFunctionContext.getArgument("Identifier");
362
363/** @type {{id:string, gravity: float, maxFallSpeed: float, jumpSpeed: float, jumpSustainTime: float, acceleration: float, deceleration: float, maxSpeed: float}[]} */
364const configurationChanges = behavior.__configurationChanges || [];
365
366eventsFunctionContext.returnValue = configurationChanges[configurationChanges.length - 1][settingName];
367
368};
369gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualSettingContext.eventsList0 = function(runtimeScene, eventsFunctionContext) {
370
371{
372
373gdjs.copyArray(eventsFunctionContext.getObjects("Object"), gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualSettingContext.GDObjectObjects1);
374
375var objects = [];
376objects.push.apply(objects,gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualSettingContext.GDObjectObjects1);
377gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualSettingContext.userFunc0xa7e758(runtimeScene, objects, typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined);
378
379}
380
381
382};
383
384gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualSetting = function(SettingName, parentEventsFunctionContext) {
385
386var that = this;
387var runtimeScene = this._runtimeScene;
388var thisObjectList = [this.owner];
389var Object = Hashtable.newFrom({Object: thisObjectList});
390var Behavior = this.name;
391var eventsFunctionContext = {
392  _objectsMap: {
393"Object": Object
394},
395  _objectArraysMap: {
396"Object": thisObjectList
397},
398  _behaviorNamesMap: {
399"Behavior": Behavior
400, "PlatformerCharacter": this._getPlatformerCharacter()
401},
402  globalVariablesForExtension: runtimeScene.getGame().getVariablesForExtension("AdvancedJump"),
403  sceneVariablesForExtension: runtimeScene.getScene().getVariablesForExtension("AdvancedJump"),
404  localVariables: [],
405  getObjects: function(objectName) {
406    return eventsFunctionContext._objectArraysMap[objectName] || [];
407  },
408  getObjectsLists: function(objectName) {
409    return eventsFunctionContext._objectsMap[objectName] || null;
410  },
411  getBehaviorName: function(behaviorName) {
412    return eventsFunctionContext._behaviorNamesMap[behaviorName] || behaviorName;
413  },
414  createObject: function(objectName) {
415    const objectsList = eventsFunctionContext._objectsMap[objectName];
416    if (objectsList) {
417      const object = parentEventsFunctionContext ?
418        parentEventsFunctionContext.createObject(objectsList.firstKey()) :
419        runtimeScene.createObject(objectsList.firstKey());
420      if (object) {
421        objectsList.get(objectsList.firstKey()).push(object);
422        eventsFunctionContext._objectArraysMap[objectName].push(object);
423      }
424      return object;    }
425    return null;
426  },
427  getInstancesCountOnScene: function(objectName) {
428    const objectsList = eventsFunctionContext._objectsMap[objectName];
429    let count = 0;
430    if (objectsList) {
431      for(const objectName in objectsList.items)
432        count += parentEventsFunctionContext ?
433parentEventsFunctionContext.getInstancesCountOnScene(objectName) :
434        runtimeScene.getInstancesCountOnScene(objectName);
435    }
436    return count;
437  },
438  getLayer: function(layerName) {
439    return runtimeScene.getLayer(layerName);
440  },
441  getArgument: function(argName) {
442if (argName === "SettingName") return SettingName;
443    return "";
444  },
445  getOnceTriggers: function() { return that._onceTriggers; }
446};
447
448gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualSettingContext.GDObjectObjects1.length = 0;
449
450gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualSettingContext.eventsList0(runtimeScene, eventsFunctionContext);
451gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualSettingContext.GDObjectObjects1.length = 0;
452
453
454return Number(eventsFunctionContext.returnValue) || 0;
455}
456gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualMaxSpeedContext = {};
457gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualMaxSpeedContext.GDObjectObjects1= [];
458gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualMaxSpeedContext.GDObjectObjects2= [];
459
460
461gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualMaxSpeedContext.eventsList0 = function(runtimeScene, eventsFunctionContext) {
462
463{
464
465
466let isConditionTrue_0 = false;
467{
468gdjs.copyArray(eventsFunctionContext.getObjects("Object"), gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualMaxSpeedContext.GDObjectObjects1);
469{if (typeof eventsFunctionContext !== 'undefined') { eventsFunctionContext.returnValue = (( gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualMaxSpeedContext.GDObjectObjects1.length === 0 ) ? 0 :gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualMaxSpeedContext.GDObjectObjects1[0].getBehavior(eventsFunctionContext.getBehaviorName("Behavior")).UsualSetting("maxSpeed", (typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined))); }}}
470
471}
472
473
474};
475
476gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualMaxSpeed = function(parentEventsFunctionContext) {
477
478var that = this;
479var runtimeScene = this._runtimeScene;
480var thisObjectList = [this.owner];
481var Object = Hashtable.newFrom({Object: thisObjectList});
482var Behavior = this.name;
483var eventsFunctionContext = {
484  _objectsMap: {
485"Object": Object
486},
487  _objectArraysMap: {
488"Object": thisObjectList
489},
490  _behaviorNamesMap: {
491"Behavior": Behavior
492, "PlatformerCharacter": this._getPlatformerCharacter()
493},
494  globalVariablesForExtension: runtimeScene.getGame().getVariablesForExtension("AdvancedJump"),
495  sceneVariablesForExtension: runtimeScene.getScene().getVariablesForExtension("AdvancedJump"),
496  localVariables: [],
497  getObjects: function(objectName) {
498    return eventsFunctionContext._objectArraysMap[objectName] || [];
499  },
500  getObjectsLists: function(objectName) {
501    return eventsFunctionContext._objectsMap[objectName] || null;
502  },
503  getBehaviorName: function(behaviorName) {
504    return eventsFunctionContext._behaviorNamesMap[behaviorName] || behaviorName;
505  },
506  createObject: function(objectName) {
507    const objectsList = eventsFunctionContext._objectsMap[objectName];
508    if (objectsList) {
509      const object = parentEventsFunctionContext ?
510        parentEventsFunctionContext.createObject(objectsList.firstKey()) :
511        runtimeScene.createObject(objectsList.firstKey());
512      if (object) {
513        objectsList.get(objectsList.firstKey()).push(object);
514        eventsFunctionContext._objectArraysMap[objectName].push(object);
515      }
516      return object;    }
517    return null;
518  },
519  getInstancesCountOnScene: function(objectName) {
520    const objectsList = eventsFunctionContext._objectsMap[objectName];
521    let count = 0;
522    if (objectsList) {
523      for(const objectName in objectsList.items)
524        count += parentEventsFunctionContext ?
525parentEventsFunctionContext.getInstancesCountOnScene(objectName) :
526        runtimeScene.getInstancesCountOnScene(objectName);
527    }
528    return count;
529  },
530  getLayer: function(layerName) {
531    return runtimeScene.getLayer(layerName);
532  },
533  getArgument: function(argName) {
534    return "";
535  },
536  getOnceTriggers: function() { return that._onceTriggers; }
537};
538
539gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualMaxSpeedContext.GDObjectObjects1.length = 0;
540gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualMaxSpeedContext.GDObjectObjects2.length = 0;
541
542gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualMaxSpeedContext.eventsList0(runtimeScene, eventsFunctionContext);
543gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualMaxSpeedContext.GDObjectObjects1.length = 0;
544gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.UsualMaxSpeedContext.GDObjectObjects2.length = 0;
545
546
547return Number(eventsFunctionContext.returnValue) || 0;
548}
549gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureSettingContext = {};
550gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureSettingContext.GDObjectObjects1= [];
551
552
553gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureSettingContext.userFunc0x99d910 = function GDJSInlineCode(runtimeScene, objects, eventsFunctionContext) {
554"use strict";
555const behaviorName = eventsFunctionContext.getBehaviorName("Behavior");
556const object = objects[0];
557const behavior = object.getBehavior(behaviorName);
558/** @type {gdjs.PlatformerObjectRuntimeBehavior} */
559const character = object.getBehavior(behavior._getPlatformerCharacter());
560/** @type {string} */
561const settingName = eventsFunctionContext.getArgument("SettingName");
562/** @type {float} */
563const settingValue = eventsFunctionContext.getArgument("SettingValue");
564/** @type {string} */
565const id = eventsFunctionContext.getArgument("Identifier");
566
567/** @type {{id:string, gravity: float, maxFallSpeed: float, jumpSpeed: float, jumpSustainTime: float, acceleration: float, deceleration: float, maxSpeed: float}[]} */
568const configurationChanges = behavior.__configurationChanges || [];
569
570const index = configurationChanges.findIndex(value => value.id === id);
571let configurationChange;
572if (index < 0) {
573    configurationChange = {id:id, gravity: undefined, maxFallSpeed: undefined, jumpSpeed: undefined, jumpSustainTime: undefined, acceleration: undefined, deceleration: undefined, maxSpeed: undefined}
574    configurationChanges.splice(0, 0, configurationChange);
575}
576else {
577    configurationChange = configurationChanges[index];
578    // Move the configuration change on top
579    if (index > 0) {
580        configurationChanges.splice(index, 1);
581        configurationChanges.splice(0, 0, configurationChange);
582    }
583}
584configurationChange[settingName] = settingValue;
585
586};
587gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureSettingContext.eventsList0 = function(runtimeScene, eventsFunctionContext) {
588
589{
590
591gdjs.copyArray(eventsFunctionContext.getObjects("Object"), gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureSettingContext.GDObjectObjects1);
592
593var objects = [];
594objects.push.apply(objects,gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureSettingContext.GDObjectObjects1);
595gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureSettingContext.userFunc0x99d910(runtimeScene, objects, typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined);
596
597}
598
599
600};
601
602gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureSetting = function(SettingName, SettingValue, Identifier, parentEventsFunctionContext) {
603
604var that = this;
605var runtimeScene = this._runtimeScene;
606var thisObjectList = [this.owner];
607var Object = Hashtable.newFrom({Object: thisObjectList});
608var Behavior = this.name;
609var eventsFunctionContext = {
610  _objectsMap: {
611"Object": Object
612},
613  _objectArraysMap: {
614"Object": thisObjectList
615},
616  _behaviorNamesMap: {
617"Behavior": Behavior
618, "PlatformerCharacter": this._getPlatformerCharacter()
619},
620  globalVariablesForExtension: runtimeScene.getGame().getVariablesForExtension("AdvancedJump"),
621  sceneVariablesForExtension: runtimeScene.getScene().getVariablesForExtension("AdvancedJump"),
622  localVariables: [],
623  getObjects: function(objectName) {
624    return eventsFunctionContext._objectArraysMap[objectName] || [];
625  },
626  getObjectsLists: function(objectName) {
627    return eventsFunctionContext._objectsMap[objectName] || null;
628  },
629  getBehaviorName: function(behaviorName) {
630    return eventsFunctionContext._behaviorNamesMap[behaviorName] || behaviorName;
631  },
632  createObject: function(objectName) {
633    const objectsList = eventsFunctionContext._objectsMap[objectName];
634    if (objectsList) {
635      const object = parentEventsFunctionContext ?
636        parentEventsFunctionContext.createObject(objectsList.firstKey()) :
637        runtimeScene.createObject(objectsList.firstKey());
638      if (object) {
639        objectsList.get(objectsList.firstKey()).push(object);
640        eventsFunctionContext._objectArraysMap[objectName].push(object);
641      }
642      return object;    }
643    return null;
644  },
645  getInstancesCountOnScene: function(objectName) {
646    const objectsList = eventsFunctionContext._objectsMap[objectName];
647    let count = 0;
648    if (objectsList) {
649      for(const objectName in objectsList.items)
650        count += parentEventsFunctionContext ?
651parentEventsFunctionContext.getInstancesCountOnScene(objectName) :
652        runtimeScene.getInstancesCountOnScene(objectName);
653    }
654    return count;
655  },
656  getLayer: function(layerName) {
657    return runtimeScene.getLayer(layerName);
658  },
659  getArgument: function(argName) {
660if (argName === "SettingName") return SettingName;
661if (argName === "SettingValue") return SettingValue;
662if (argName === "Identifier") return Identifier;
663    return "";
664  },
665  getOnceTriggers: function() { return that._onceTriggers; }
666};
667
668gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureSettingContext.GDObjectObjects1.length = 0;
669
670gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureSettingContext.eventsList0(runtimeScene, eventsFunctionContext);
671gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureSettingContext.GDObjectObjects1.length = 0;
672
673
674return;
675}
676gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureGravityContext = {};
677gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureGravityContext.GDObjectObjects1= [];
678gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureGravityContext.GDObjectObjects2= [];
679
680
681gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureGravityContext.eventsList0 = function(runtimeScene, eventsFunctionContext) {
682
683{
684
685
686let isConditionTrue_0 = false;
687{
688gdjs.copyArray(eventsFunctionContext.getObjects("Object"), gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureGravityContext.GDObjectObjects1);
689{for(var i = 0, len = gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureGravityContext.GDObjectObjects1.length ;i < len;++i) {
690    gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureGravityContext.GDObjectObjects1[i].getBehavior(eventsFunctionContext.getBehaviorName("Behavior")).ConfigureSetting("gravity", (typeof eventsFunctionContext !== 'undefined' ? Number(eventsFunctionContext.getArgument("SettingValue")) || 0 : 0), (typeof eventsFunctionContext !== 'undefined' ? "" + eventsFunctionContext.getArgument("Identifier") : ""), (typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined));
691}
692}{for(var i = 0, len = gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureGravityContext.GDObjectObjects1.length ;i < len;++i) {
693    gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureGravityContext.GDObjectObjects1[i].getBehavior(eventsFunctionContext.getBehaviorName("PlatformerCharacter")).setGravity((typeof eventsFunctionContext !== 'undefined' ? Number(eventsFunctionContext.getArgument("SettingValue")) || 0 : 0));
694}
695}}
696
697}
698
699
700};
701
702gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureGravity = function(SettingValue, Identifier, parentEventsFunctionContext) {
703
704var that = this;
705var runtimeScene = this._runtimeScene;
706var thisObjectList = [this.owner];
707var Object = Hashtable.newFrom({Object: thisObjectList});
708var Behavior = this.name;
709var eventsFunctionContext = {
710  _objectsMap: {
711"Object": Object
712},
713  _objectArraysMap: {
714"Object": thisObjectList
715},
716  _behaviorNamesMap: {
717"Behavior": Behavior
718, "PlatformerCharacter": this._getPlatformerCharacter()
719},
720  globalVariablesForExtension: runtimeScene.getGame().getVariablesForExtension("AdvancedJump"),
721  sceneVariablesForExtension: runtimeScene.getScene().getVariablesForExtension("AdvancedJump"),
722  localVariables: [],
723  getObjects: function(objectName) {
724    return eventsFunctionContext._objectArraysMap[objectName] || [];
725  },
726  getObjectsLists: function(objectName) {
727    return eventsFunctionContext._objectsMap[objectName] || null;
728  },
729  getBehaviorName: function(behaviorName) {
730    return eventsFunctionContext._behaviorNamesMap[behaviorName] || behaviorName;
731  },
732  createObject: function(objectName) {
733    const objectsList = eventsFunctionContext._objectsMap[objectName];
734    if (objectsList) {
735      const object = parentEventsFunctionContext ?
736        parentEventsFunctionContext.createObject(objectsList.firstKey()) :
737        runtimeScene.createObject(objectsList.firstKey());
738      if (object) {
739        objectsList.get(objectsList.firstKey()).push(object);
740        eventsFunctionContext._objectArraysMap[objectName].push(object);
741      }
742      return object;    }
743    return null;
744  },
745  getInstancesCountOnScene: function(objectName) {
746    const objectsList = eventsFunctionContext._objectsMap[objectName];
747    let count = 0;
748    if (objectsList) {
749      for(const objectName in objectsList.items)
750        count += parentEventsFunctionContext ?
751parentEventsFunctionContext.getInstancesCountOnScene(objectName) :
752        runtimeScene.getInstancesCountOnScene(objectName);
753    }
754    return count;
755  },
756  getLayer: function(layerName) {
757    return runtimeScene.getLayer(layerName);
758  },
759  getArgument: function(argName) {
760if (argName === "SettingValue") return SettingValue;
761if (argName === "Identifier") return Identifier;
762    return "";
763  },
764  getOnceTriggers: function() { return that._onceTriggers; }
765};
766
767gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureGravityContext.GDObjectObjects1.length = 0;
768gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureGravityContext.GDObjectObjects2.length = 0;
769
770gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureGravityContext.eventsList0(runtimeScene, eventsFunctionContext);
771gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureGravityContext.GDObjectObjects1.length = 0;
772gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureGravityContext.GDObjectObjects2.length = 0;
773
774
775return;
776}
777gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureDecelerationContext = {};
778gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureDecelerationContext.GDObjectObjects1= [];
779gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureDecelerationContext.GDObjectObjects2= [];
780
781
782gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureDecelerationContext.eventsList0 = function(runtimeScene, eventsFunctionContext) {
783
784{
785
786
787let isConditionTrue_0 = false;
788{
789gdjs.copyArray(eventsFunctionContext.getObjects("Object"), gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureDecelerationContext.GDObjectObjects1);
790{for(var i = 0, len = gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureDecelerationContext.GDObjectObjects1.length ;i < len;++i) {
791    gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureDecelerationContext.GDObjectObjects1[i].getBehavior(eventsFunctionContext.getBehaviorName("Behavior")).ConfigureSetting("deceleration", (typeof eventsFunctionContext !== 'undefined' ? Number(eventsFunctionContext.getArgument("SettingValue")) || 0 : 0), (typeof eventsFunctionContext !== 'undefined' ? "" + eventsFunctionContext.getArgument("Identifier") : ""), (typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined));
792}
793}{for(var i = 0, len = gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureDecelerationContext.GDObjectObjects1.length ;i < len;++i) {
794    gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureDecelerationContext.GDObjectObjects1[i].getBehavior(eventsFunctionContext.getBehaviorName("PlatformerCharacter")).setDeceleration((typeof eventsFunctionContext !== 'undefined' ? Number(eventsFunctionContext.getArgument("SettingValue")) || 0 : 0));
795}
796}}
797
798}
799
800
801};
802
803gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureDeceleration = function(SettingValue, Identifier, parentEventsFunctionContext) {
804
805var that = this;
806var runtimeScene = this._runtimeScene;
807var thisObjectList = [this.owner];
808var Object = Hashtable.newFrom({Object: thisObjectList});
809var Behavior = this.name;
810var eventsFunctionContext = {
811  _objectsMap: {
812"Object": Object
813},
814  _objectArraysMap: {
815"Object": thisObjectList
816},
817  _behaviorNamesMap: {
818"Behavior": Behavior
819, "PlatformerCharacter": this._getPlatformerCharacter()
820},
821  globalVariablesForExtension: runtimeScene.getGame().getVariablesForExtension("AdvancedJump"),
822  sceneVariablesForExtension: runtimeScene.getScene().getVariablesForExtension("AdvancedJump"),
823  localVariables: [],
824  getObjects: function(objectName) {
825    return eventsFunctionContext._objectArraysMap[objectName] || [];
826  },
827  getObjectsLists: function(objectName) {
828    return eventsFunctionContext._objectsMap[objectName] || null;
829  },
830  getBehaviorName: function(behaviorName) {
831    return eventsFunctionContext._behaviorNamesMap[behaviorName] || behaviorName;
832  },
833  createObject: function(objectName) {
834    const objectsList = eventsFunctionContext._objectsMap[objectName];
835    if (objectsList) {
836      const object = parentEventsFunctionContext ?
837        parentEventsFunctionContext.createObject(objectsList.firstKey()) :
838        runtimeScene.createObject(objectsList.firstKey());
839      if (object) {
840        objectsList.get(objectsList.firstKey()).push(object);
841        eventsFunctionContext._objectArraysMap[objectName].push(object);
842      }
843      return object;    }
844    return null;
845  },
846  getInstancesCountOnScene: function(objectName) {
847    const objectsList = eventsFunctionContext._objectsMap[objectName];
848    let count = 0;
849    if (objectsList) {
850      for(const objectName in objectsList.items)
851        count += parentEventsFunctionContext ?
852parentEventsFunctionContext.getInstancesCountOnScene(objectName) :
853        runtimeScene.getInstancesCountOnScene(objectName);
854    }
855    return count;
856  },
857  getLayer: function(layerName) {
858    return runtimeScene.getLayer(layerName);
859  },
860  getArgument: function(argName) {
861if (argName === "SettingValue") return SettingValue;
862if (argName === "Identifier") return Identifier;
863    return "";
864  },
865  getOnceTriggers: function() { return that._onceTriggers; }
866};
867
868gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureDecelerationContext.GDObjectObjects1.length = 0;
869gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureDecelerationContext.GDObjectObjects2.length = 0;
870
871gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureDecelerationContext.eventsList0(runtimeScene, eventsFunctionContext);
872gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureDecelerationContext.GDObjectObjects1.length = 0;
873gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureDecelerationContext.GDObjectObjects2.length = 0;
874
875
876return;
877}
878gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxSpeedContext = {};
879gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxSpeedContext.GDObjectObjects1= [];
880gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxSpeedContext.GDObjectObjects2= [];
881
882
883gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxSpeedContext.eventsList0 = function(runtimeScene, eventsFunctionContext) {
884
885{
886
887
888let isConditionTrue_0 = false;
889{
890gdjs.copyArray(eventsFunctionContext.getObjects("Object"), gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxSpeedContext.GDObjectObjects1);
891{for(var i = 0, len = gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxSpeedContext.GDObjectObjects1.length ;i < len;++i) {
892    gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxSpeedContext.GDObjectObjects1[i].getBehavior(eventsFunctionContext.getBehaviorName("Behavior")).ConfigureSetting("maxSpeed", (typeof eventsFunctionContext !== 'undefined' ? Number(eventsFunctionContext.getArgument("SettingValue")) || 0 : 0), (typeof eventsFunctionContext !== 'undefined' ? "" + eventsFunctionContext.getArgument("Identifier") : ""), (typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined));
893}
894}{for(var i = 0, len = gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxSpeedContext.GDObjectObjects1.length ;i < len;++i) {
895    gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxSpeedContext.GDObjectObjects1[i].getBehavior(eventsFunctionContext.getBehaviorName("PlatformerCharacter")).setMaxSpeed((typeof eventsFunctionContext !== 'undefined' ? Number(eventsFunctionContext.getArgument("SettingValue")) || 0 : 0));
896}
897}}
898
899}
900
901
902};
903
904gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxSpeed = function(SettingValue, Identifier, parentEventsFunctionContext) {
905
906var that = this;
907var runtimeScene = this._runtimeScene;
908var thisObjectList = [this.owner];
909var Object = Hashtable.newFrom({Object: thisObjectList});
910var Behavior = this.name;
911var eventsFunctionContext = {
912  _objectsMap: {
913"Object": Object
914},
915  _objectArraysMap: {
916"Object": thisObjectList
917},
918  _behaviorNamesMap: {
919"Behavior": Behavior
920, "PlatformerCharacter": this._getPlatformerCharacter()
921},
922  globalVariablesForExtension: runtimeScene.getGame().getVariablesForExtension("AdvancedJump"),
923  sceneVariablesForExtension: runtimeScene.getScene().getVariablesForExtension("AdvancedJump"),
924  localVariables: [],
925  getObjects: function(objectName) {
926    return eventsFunctionContext._objectArraysMap[objectName] || [];
927  },
928  getObjectsLists: function(objectName) {
929    return eventsFunctionContext._objectsMap[objectName] || null;
930  },
931  getBehaviorName: function(behaviorName) {
932    return eventsFunctionContext._behaviorNamesMap[behaviorName] || behaviorName;
933  },
934  createObject: function(objectName) {
935    const objectsList = eventsFunctionContext._objectsMap[objectName];
936    if (objectsList) {
937      const object = parentEventsFunctionContext ?
938        parentEventsFunctionContext.createObject(objectsList.firstKey()) :
939        runtimeScene.createObject(objectsList.firstKey());
940      if (object) {
941        objectsList.get(objectsList.firstKey()).push(object);
942        eventsFunctionContext._objectArraysMap[objectName].push(object);
943      }
944      return object;    }
945    return null;
946  },
947  getInstancesCountOnScene: function(objectName) {
948    const objectsList = eventsFunctionContext._objectsMap[objectName];
949    let count = 0;
950    if (objectsList) {
951      for(const objectName in objectsList.items)
952        count += parentEventsFunctionContext ?
953parentEventsFunctionContext.getInstancesCountOnScene(objectName) :
954        runtimeScene.getInstancesCountOnScene(objectName);
955    }
956    return count;
957  },
958  getLayer: function(layerName) {
959    return runtimeScene.getLayer(layerName);
960  },
961  getArgument: function(argName) {
962if (argName === "SettingValue") return SettingValue;
963if (argName === "Identifier") return Identifier;
964    return "";
965  },
966  getOnceTriggers: function() { return that._onceTriggers; }
967};
968
969gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxSpeedContext.GDObjectObjects1.length = 0;
970gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxSpeedContext.GDObjectObjects2.length = 0;
971
972gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxSpeedContext.eventsList0(runtimeScene, eventsFunctionContext);
973gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxSpeedContext.GDObjectObjects1.length = 0;
974gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxSpeedContext.GDObjectObjects2.length = 0;
975
976
977return;
978}
979gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureAccelerationContext = {};
980gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureAccelerationContext.GDObjectObjects1= [];
981gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureAccelerationContext.GDObjectObjects2= [];
982
983
984gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureAccelerationContext.eventsList0 = function(runtimeScene, eventsFunctionContext) {
985
986{
987
988
989let isConditionTrue_0 = false;
990{
991gdjs.copyArray(eventsFunctionContext.getObjects("Object"), gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureAccelerationContext.GDObjectObjects1);
992{for(var i = 0, len = gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureAccelerationContext.GDObjectObjects1.length ;i < len;++i) {
993    gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureAccelerationContext.GDObjectObjects1[i].getBehavior(eventsFunctionContext.getBehaviorName("Behavior")).ConfigureSetting("acceleration", (typeof eventsFunctionContext !== 'undefined' ? Number(eventsFunctionContext.getArgument("SettingValue")) || 0 : 0), (typeof eventsFunctionContext !== 'undefined' ? "" + eventsFunctionContext.getArgument("Identifier") : ""), (typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined));
994}
995}{for(var i = 0, len = gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureAccelerationContext.GDObjectObjects1.length ;i < len;++i) {
996    gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureAccelerationContext.GDObjectObjects1[i].getBehavior(eventsFunctionContext.getBehaviorName("PlatformerCharacter")).setAcceleration((typeof eventsFunctionContext !== 'undefined' ? Number(eventsFunctionContext.getArgument("SettingValue")) || 0 : 0));
997}
998}}
999
1000}
1001
1002
1003};
1004
1005gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureAcceleration = function(SettingValue, Identifier, parentEventsFunctionContext) {
1006
1007var that = this;
1008var runtimeScene = this._runtimeScene;
1009var thisObjectList = [this.owner];
1010var Object = Hashtable.newFrom({Object: thisObjectList});
1011var Behavior = this.name;
1012var eventsFunctionContext = {
1013  _objectsMap: {
1014"Object": Object
1015},
1016  _objectArraysMap: {
1017"Object": thisObjectList
1018},
1019  _behaviorNamesMap: {
1020"Behavior": Behavior
1021, "PlatformerCharacter": this._getPlatformerCharacter()
1022},
1023  globalVariablesForExtension: runtimeScene.getGame().getVariablesForExtension("AdvancedJump"),
1024  sceneVariablesForExtension: runtimeScene.getScene().getVariablesForExtension("AdvancedJump"),
1025  localVariables: [],
1026  getObjects: function(objectName) {
1027    return eventsFunctionContext._objectArraysMap[objectName] || [];
1028  },
1029  getObjectsLists: function(objectName) {
1030    return eventsFunctionContext._objectsMap[objectName] || null;
1031  },
1032  getBehaviorName: function(behaviorName) {
1033    return eventsFunctionContext._behaviorNamesMap[behaviorName] || behaviorName;
1034  },
1035  createObject: function(objectName) {
1036    const objectsList = eventsFunctionContext._objectsMap[objectName];
1037    if (objectsList) {
1038      const object = parentEventsFunctionContext ?
1039        parentEventsFunctionContext.createObject(objectsList.firstKey()) :
1040        runtimeScene.createObject(objectsList.firstKey());
1041      if (object) {
1042        objectsList.get(objectsList.firstKey()).push(object);
1043        eventsFunctionContext._objectArraysMap[objectName].push(object);
1044      }
1045      return object;    }
1046    return null;
1047  },
1048  getInstancesCountOnScene: function(objectName) {
1049    const objectsList = eventsFunctionContext._objectsMap[objectName];
1050    let count = 0;
1051    if (objectsList) {
1052      for(const objectName in objectsList.items)
1053        count += parentEventsFunctionContext ?
1054parentEventsFunctionContext.getInstancesCountOnScene(objectName) :
1055        runtimeScene.getInstancesCountOnScene(objectName);
1056    }
1057    return count;
1058  },
1059  getLayer: function(layerName) {
1060    return runtimeScene.getLayer(layerName);
1061  },
1062  getArgument: function(argName) {
1063if (argName === "SettingValue") return SettingValue;
1064if (argName === "Identifier") return Identifier;
1065    return "";
1066  },
1067  getOnceTriggers: function() { return that._onceTriggers; }
1068};
1069
1070gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureAccelerationContext.GDObjectObjects1.length = 0;
1071gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureAccelerationContext.GDObjectObjects2.length = 0;
1072
1073gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureAccelerationContext.eventsList0(runtimeScene, eventsFunctionContext);
1074gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureAccelerationContext.GDObjectObjects1.length = 0;
1075gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureAccelerationContext.GDObjectObjects2.length = 0;
1076
1077
1078return;
1079}
1080gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxFallSpeedContext = {};
1081gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxFallSpeedContext.GDObjectObjects1= [];
1082gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxFallSpeedContext.GDObjectObjects2= [];
1083
1084
1085gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxFallSpeedContext.eventsList0 = function(runtimeScene, eventsFunctionContext) {
1086
1087{
1088
1089
1090let isConditionTrue_0 = false;
1091{
1092gdjs.copyArray(eventsFunctionContext.getObjects("Object"), gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxFallSpeedContext.GDObjectObjects1);
1093{for(var i = 0, len = gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxFallSpeedContext.GDObjectObjects1.length ;i < len;++i) {
1094    gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxFallSpeedContext.GDObjectObjects1[i].getBehavior(eventsFunctionContext.getBehaviorName("Behavior")).ConfigureSetting("maxFallSpeed", (typeof eventsFunctionContext !== 'undefined' ? Number(eventsFunctionContext.getArgument("SettingValue")) || 0 : 0), (typeof eventsFunctionContext !== 'undefined' ? "" + eventsFunctionContext.getArgument("Identifier") : ""), (typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined));
1095}
1096}{for(var i = 0, len = gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxFallSpeedContext.GDObjectObjects1.length ;i < len;++i) {
1097    gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxFallSpeedContext.GDObjectObjects1[i].getBehavior(eventsFunctionContext.getBehaviorName("PlatformerCharacter")).setMaxFallingSpeed((typeof eventsFunctionContext !== 'undefined' ? Number(eventsFunctionContext.getArgument("SettingValue")) || 0 : 0), true);
1098}
1099}}
1100
1101}
1102
1103
1104};
1105
1106gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxFallSpeed = function(SettingValue, Identifier, parentEventsFunctionContext) {
1107
1108var that = this;
1109var runtimeScene = this._runtimeScene;
1110var thisObjectList = [this.owner];
1111var Object = Hashtable.newFrom({Object: thisObjectList});
1112var Behavior = this.name;
1113var eventsFunctionContext = {
1114  _objectsMap: {
1115"Object": Object
1116},
1117  _objectArraysMap: {
1118"Object": thisObjectList
1119},
1120  _behaviorNamesMap: {
1121"Behavior": Behavior
1122, "PlatformerCharacter": this._getPlatformerCharacter()
1123},
1124  globalVariablesForExtension: runtimeScene.getGame().getVariablesForExtension("AdvancedJump"),
1125  sceneVariablesForExtension: runtimeScene.getScene().getVariablesForExtension("AdvancedJump"),
1126  localVariables: [],
1127  getObjects: function(objectName) {
1128    return eventsFunctionContext._objectArraysMap[objectName] || [];
1129  },
1130  getObjectsLists: function(objectName) {
1131    return eventsFunctionContext._objectsMap[objectName] || null;
1132  },
1133  getBehaviorName: function(behaviorName) {
1134    return eventsFunctionContext._behaviorNamesMap[behaviorName] || behaviorName;
1135  },
1136  createObject: function(objectName) {
1137    const objectsList = eventsFunctionContext._objectsMap[objectName];
1138    if (objectsList) {
1139      const object = parentEventsFunctionContext ?
1140        parentEventsFunctionContext.createObject(objectsList.firstKey()) :
1141        runtimeScene.createObject(objectsList.firstKey());
1142      if (object) {
1143        objectsList.get(objectsList.firstKey()).push(object);
1144        eventsFunctionContext._objectArraysMap[objectName].push(object);
1145      }
1146      return object;    }
1147    return null;
1148  },
1149  getInstancesCountOnScene: function(objectName) {
1150    const objectsList = eventsFunctionContext._objectsMap[objectName];
1151    let count = 0;
1152    if (objectsList) {
1153      for(const objectName in objectsList.items)
1154        count += parentEventsFunctionContext ?
1155parentEventsFunctionContext.getInstancesCountOnScene(objectName) :
1156        runtimeScene.getInstancesCountOnScene(objectName);
1157    }
1158    return count;
1159  },
1160  getLayer: function(layerName) {
1161    return runtimeScene.getLayer(layerName);
1162  },
1163  getArgument: function(argName) {
1164if (argName === "SettingValue") return SettingValue;
1165if (argName === "Identifier") return Identifier;
1166    return "";
1167  },
1168  getOnceTriggers: function() { return that._onceTriggers; }
1169};
1170
1171gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxFallSpeedContext.GDObjectObjects1.length = 0;
1172gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxFallSpeedContext.GDObjectObjects2.length = 0;
1173
1174gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxFallSpeedContext.eventsList0(runtimeScene, eventsFunctionContext);
1175gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxFallSpeedContext.GDObjectObjects1.length = 0;
1176gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.ConfigureMaxFallSpeedContext.GDObjectObjects2.length = 0;
1177
1178
1179return;
1180}
1181
1182gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack.prototype.doStepPreEvents = function() {
1183  this._onceTriggers.startNewFrame();
1184};
1185
1186
1187gdjs.registerBehavior("AdvancedJump::PlatformerConfigurationStack", gdjs.evtsExt__AdvancedJump__PlatformerConfigurationStack.PlatformerConfigurationStack);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.