nomadro/apps/minigame-cocos/assets/scripts/core/GameEvents.ts
Eric 58a845db32 Add WeChat minigame triple-engine scaffold with Godot Chiang Mai plaza SoT.
Unity and Cocos stay as parallel schemes; apps/minigame ships the Godot 4.7 WeChat pack for DevTools.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-06 20:17:14 +08:00

15 lines
570 B
TypeScript

import type { PlayerStats } from './types'
/** Typed mitt payload map — sim ↔ view glue. */
export type GameEvents = {
'stats:changed': PlayerStats
'hud:hint': { text: string; interactable: boolean }
'time:tick': { minutes: number; day: number; label: string }
'player:move-input': { x: number; z: number }
'player:look-input': { yawDelta: number; pitchDelta: number }
'interact:request': undefined
'interact:done': { id: string; action: string; ok: boolean; message: string }
'save:done': { ok: boolean }
'scene:enter': { structureId: string }
}