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>
15 lines
570 B
TypeScript
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 }
|
|
}
|