MCPcopy
hub / github.com/4ian/GDevelop / getBehavior

Method getBehavior

GDevelop.js/TestUtils/GDJSMocks.js:566–570  ·  view source on GitHub ↗

@param {string} behaviorName

(behaviorName)

Source from the content-addressed store, hash-verified

564
565 /** @param {string} behaviorName */
566 getBehavior(behaviorName) {
567 const behavior = this._behaviors.get(behaviorName);
568 if (!behavior) throw new Error(`No behavior called ${behaviorName} found.`);
569 return behavior;
570 }
571
572 noop() {}
573

Callers 2

checkConfigurationFunction · 0.45
Core.jsFile · 0.45

Calls 1

getMethod · 0.65

Tested by 1

checkConfigurationFunction · 0.36