object touch events implemented
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { toJS } from "mobx";
|
||||
import type { ScriptContext, ScriptCoroutineContext, ScriptGameEventHandler } from "../types";
|
||||
import type { ScriptCoroutines } from "./coroutines";
|
||||
|
||||
@@ -36,6 +37,8 @@ export class ScriptGameEventBus {
|
||||
}
|
||||
|
||||
emit(event: string, context: Omit<ScriptContext, keyof ScriptCoroutineContext>): void {
|
||||
console.log('emitting ' + event, toJS(context));
|
||||
|
||||
const coroutines = this.handlers[event]
|
||||
?.map((h) => ({
|
||||
owner: h.coroutine.thisObject.id,
|
||||
|
||||
Reference in New Issue
Block a user