import type { AudioService, QuestService, UiService, VfxService } from './types'; /** Servicios inertes: el juego arranca aunque un módulo aún no esté instalado. */ export const nullUi: UiService = { dialog: async (lines) => { for (const l of lines) console.log(`[diálogo] ${l.emoji} ${l.speaker}: ${l.text}`); }, choice: async () => 0, reward: async (r) => console.log(`[recompensa] ${r.emoji} ${r.name}`), toast: (text, emoji) => console.log(`[toast] ${emoji ?? ''} ${text}`), banner: (title, subtitle) => console.log(`[banner] ${title} ${subtitle ?? ''}`), setObjective: () => {}, bossBar: () => {}, fade: async () => {}, title: async (hasSave) => (hasSave ? 'continue' : 'new'), modalOpen: false, }; export const nullAudio: AudioService = { sfx: () => {}, music: () => {}, unlock: () => {}, volume: { master: 1, music: 0.7, sfx: 1 }, }; export const nullVfx: VfxService = { burst: () => {}, ring: () => {}, floatText: () => {}, flash: () => {}, trail: () => {}, }; export const nullQuests: QuestService = { objective: null, isActive: () => false, isDone: () => false, start: () => {}, complete: () => {}, };