UNPKG

doggo-quest-logic

Version:

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

19 lines (18 loc) 482 B
import { CommandContext } from '../CommandContext'; import { GameObject } from './GameObject'; import { Room } from './Room'; export interface GameRoom { displayName: string; id: Room; objects: GameObject[]; north?: Room; south?: Room; west?: Room; east?: Room; up?: Room; down?: Room; in?: Room; out?: Room; tryGo(direction: string, context: CommandContext): boolean; describe(context: CommandContext): void; }