You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
617 B

import { MODE, BLINK, VALUES, MUNCHER } from './Constants';
export const nextMode =
() => ({ type: MODE.NEXT });
export const toggleBlink =
() => ({ type: BLINK.TOGGLE });
export const generateValues =
(count, level) => ({
type: VALUES.FOO,
action: VALUES.GENERATE,
count: count,
level: level
});
export const updateValues =
(i, level) => ({
type: VALUES.FOO,
action: VALUES.UPDATE,
index: i,
level: level
});
export const moveMuncher =
(direction) => ({
type: MUNCHER.MOVE,
direction: direction
});