How to use the GetMapXY function from bindings

Find comprehensive JavaScript bindings.GetMapXY code examples handpicked from public code repositorys.

126
127
128
129
130
131
132
133
134
135
        });
}
        
//参数: 方向, 0=右上,2=右下, 4=左下,6=左上
cga.turnDir = function(dir){
        var xy = cga.GetMapXY();
        var x = xy.x;
        var y = xy.y;
        switch(dir){
                case 0: cga.TurnTo(x+2, y);break;
fork icon35
star icon0
watch icon1

+ 3 other calls in file

148
149
150
151
152
153
154
155
156
157
cga.isTeamLeaderEx = ()=>{
        return (cga.isTeamLeader == true || cga.getTeamPlayers().length <= 1);
}

cga.getMapInfo = () => {
        const info = cga.GetMapXY();
        info.indexes = cga.GetMapIndex();
        info.name = cga.GetMapName();
        return info;
};
fork icon33
star icon44
watch icon5

+ 23 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)