Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created March 8, 2020 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IntegerMan/64d9badaaa6734f792b9b7dce9e00ce6 to your computer and use it in GitHub Desktop.
Save IntegerMan/64d9badaaa6734f792b9b7dce9e00ce6 to your computer and use it in GitHub Desktop.
import {CommandContext} from '../CommandContext';
export type ContextAction = (context: CommandContext) => void;
export type ObjectResponse = ContextAction | string;
export interface GameObject {
name: ObjectResponse;
look: ObjectResponse;
smell: ObjectResponse;
lick?: ObjectResponse;
push?: ObjectResponse;
eat?: ObjectResponse;
take?: ObjectResponse;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment