MCPcopy
hub / github.com/SYJun404/frank / querySummonerPosition

Function querySummonerPosition

src/lcu/utils.ts:98–108  ·  view source on GitHub ↗
(lane:string)

Source from the content-addressed store, hash-verified

96}
97// 判断玩家位置
98export const querySummonerPosition = (lane:string):string => {
99 switch (lane) {
100 case 'MIDDLE' : return '中单';
101 case 'JUNGLE' : return '打野';
102 case 'BOTTOM' : return '下路';
103 case 'UTILITY' : return '下路';
104 case 'TOP' : return '上单';
105 case 'NONE': return '未知'
106 default:return '未知'
107 }
108}
109// 获取位置序号, 方便排序
110export const getPosition = (selectedPosition:string) => {
111 switch (selectedPosition) {

Callers 1

QueryMatchClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected