UNPKG

doggo-quest-logic

Version:

The game logic for the Doggo Quest text-based game sample project

19 lines (18 loc) 596 B
import { CommandContext } from '../CommandContext'; import { Room } from './Room'; export declare type objectResponse = ((context: CommandContext) => void) | string; export interface GameObject { name: objectResponse; look: objectResponse; smell: objectResponse; lick: objectResponse; push: objectResponse; pull: objectResponse; open: objectResponse; eat: objectResponse; take: objectResponse; think: objectResponse; children: GameObject[]; matches(reduced: string, room: Room): boolean; getRoomMapping(): Room | undefined; }