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.
 
 

16 lines
357 B

export const TROGGLE_ACTION = 'TROGGLE_ACTION';
export const CREATE = 'CREATE';
export const MOVE = 'MOVE';
export const create = () => ({
type: TROGGLE_ACTION,
action: CREATE
});
export const move = (index, muncherX, muncherY) => ({
type: TROGGLE_ACTION,
action: MOVE,
index: index,
muncherX: muncherX,
muncherY: muncherY
});