修改变量名
This commit is contained in:
parent
c8aae10c55
commit
810e1e61e1
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user