修改变量名

This commit is contained in:
weizhihong 2023-09-27 18:03:24 +08:00
parent c8aae10c55
commit 810e1e61e1

View File

@ -10,13 +10,13 @@ import (
func GetMapAllRelayState(sim *VerifySimulation, mapId int32) []*state.ReplyState {
// 获取本地图下的继电器信息
uidMap := QueryMapUidMapByType(mapId, &graphicData.Relay{})
var switchArr []*state.ReplyState
var replyStateArr []*state.ReplyState
for _, u := range uidMap {
p := entities.GetRelayState(sim.WorldId, u.Uid)
if p == nil {
continue
}
switchArr = append(switchArr, &state.ReplyState{Id: u.CommonId, Xh: p.Xh})
replyStateArr = append(replyStateArr, &state.ReplyState{Id: u.CommonId, Xh: p.Xh})
}
return switchArr
return replyStateArr
}