MCPcopy Index your code
hub / github.com/4ian/GDevelop / getEventTypes

Function getEventTypes

newIDE/app/src/EditorFunctions/ApplyEventsChanges.spec.js:37–43  ·  view source on GitHub ↗
(list: gdEventsList)

Source from the content-addressed store, hash-verified

35 };
36
37 const getEventTypes = (list: gdEventsList): Array<string> => {
38 const types = [];
39 for (let i = 0; i < list.getEventsCount(); i++) {
40 types.push(list.getEventAt(i).getType());
41 }
42 return types;
43 };
44
45 // Helpers to create events identified by the type of their first action,
46 // so that tests can check which event ended up where.

Callers 1

Calls 2

pushMethod · 0.65
getTypeMethod · 0.45

Tested by

no test coverage detected