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

Function emit

packages/melonjs/src/system/event.ts:499–504  ·  view source on GitHub ↗
(
	eventName: E,
	...args: Parameters<Events[E]>
)

Source from the content-addressed store, hash-verified

497 * me.event.emit("event-name", arg1, arg2);
498 */
499export function emit<E extends keyof Events>(
500 eventName: E,
501 ...args: Parameters<Events[E]>
502) {
503 eventEmitter.emit(eventName, ...args);
504}
505
506/**
507 * Check if a listener is registered for a given event.

Callers 15

resizeMethod · 0.90
updateMethod · 0.90
resetMethod · 0.90
_renderFrameFunction · 0.90
_switchStateFunction · 0.90
stopFunction · 0.90
pauseFunction · 0.90
restartFunction · 0.90
resumeFunction · 0.90
stepMethod · 0.90
initMethod · 0.90
resetMethod · 0.90

Calls 1

emitMethod · 0.80

Tested by

no test coverage detected