diff --git a/src/core/action.ts b/src/core/action.ts index 6e47e2a..c0f89f1 100644 --- a/src/core/action.ts +++ b/src/core/action.ts @@ -2,16 +2,8 @@ import { ViewData } from '../ui/ui-helpers'; import { Point } from '../util/types'; import { SceneState } from './state'; -// There are UiActions, which might have different behavior depending -// on view state, and other GameActions, which should be treated -// uniformly. - export type GameAction = | { t: 'none' } - | UiAction; - -// I think I want to migrate some of these up to GameAction -export type UiAction = | { t: 'key', code: string } | { t: 'mouseDown', button: number, p: Point, mods: Set } | { t: 'mouseUp', p: Point } diff --git a/src/core/reduce.ts b/src/core/reduce.ts index 8d17b36..c27ee69 100644 --- a/src/core/reduce.ts +++ b/src/core/reduce.ts @@ -344,5 +344,4 @@ export function reduce(scState: SceneState, action: Action): effectful.Result