summaryrefslogtreecommitdiff
path: root/src/actions/map.js
blob: ef6918737f71259358124fd6a165ac68ac6127dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export const SET_MAP_POSITION = "SET_MAP_POSITION";
export const SET_MAP_DIMENSIONS = "SET_MAP_DIMENSIONS";
export const SET_MAP_SCALE = "SET_MAP_SCALE";

export function setMapPosition(x, y) {
    return {
        type: SET_MAP_POSITION,
        x,
        y
    };
}

export function setMapDimensions(width, height) {
    return {
        type: SET_MAP_DIMENSIONS,
        width,
        height
    };
}

export function setMapScale(scale) {
    return {
        type: SET_MAP_SCALE,
        scale
    };
}