Skip to content

Commit

Permalink
Clean up actions
Browse files Browse the repository at this point in the history
Looks like #33 is sort of obsolete already, so I'm going to just
say that this fixes #33.
  • Loading branch information
jcreedcmu committed Nov 23, 2023
1 parent 07115f7 commit 948423a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions src/core/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> }
| { t: 'mouseUp', p: Point }
Expand Down
1 change: 0 additions & 1 deletion src/core/reduce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,5 +344,4 @@ export function reduce(scState: SceneState, action: Action): effectful.Result<Sc
}
}


}

0 comments on commit 948423a

Please sign in to comment.