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

Method getEventsBasedObjectData

GDevelop.js/TestUtils/GDJSMocks.js:819–828  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

817 }
818
819 getEventsBasedObjectData(type) {
820 const eventsBasedObjectData = this._eventsBasedObjectDatas.get(type);
821 if (!eventsBasedObjectData) {
822 console.error(
823 'The game has no events-based object of the type "' + type + '"'
824 );
825 return null;
826 }
827 return eventsBasedObjectData;
828 }
829}
830
831/** A minimal implementation of gdjs.RuntimeScene for testing. */

Callers 1

constructorMethod · 0.45

Calls 2

getMethod · 0.65
errorMethod · 0.65

Tested by

no test coverage detected