MCPcopy Create free account
hub / github.com/melonjs/melonJS / getTriggerSettings

Method getTriggerSettings

packages/melonjs/src/renderable/trigger.js:139–147  ·  view source on GitHub ↗

* @ignore

()

Source from the content-addressed store, hash-verified

137 * @ignore
138 */
139 getTriggerSettings() {
140 const world = this.ancestor.getRootAncestor();
141 if (typeof this.triggerSettings.container === "string") {
142 this.triggerSettings.container = world.getChildByName(
143 this.triggerSettings.container,
144 )[0];
145 }
146 return this.triggerSettings;
147 }
148
149 /**
150 * Trigger this event. Override in subclasses to customize behavior.

Callers 1

triggerEventMethod · 0.95

Calls 2

getRootAncestorMethod · 0.80
getChildByNameMethod · 0.80

Tested by

no test coverage detected