Merge branch 'master' of https://git.code.tencent.com/jl-framework/rtss_simulation
This commit is contained in:
commit
355a9c86ff
@ -85,14 +85,13 @@ func GetState(worldId ecs.WorldId, turnoutId string) Position {
|
||||
query.Each(sim.World(), func(e *ecs.Entry) {
|
||||
if turnoutId == system.EntityIdentityComponent.Get(e).Id {
|
||||
state := system.Switch2jZdj9StateComponent.Get(e)
|
||||
if state.ZDBJ {
|
||||
if state.J1_DB_K9 {
|
||||
position = D
|
||||
} else if state.ZFBJ {
|
||||
} else if state.J1_FB_K10 {
|
||||
position = F
|
||||
} else {
|
||||
position = SK
|
||||
}
|
||||
return
|
||||
}
|
||||
})
|
||||
return position
|
||||
|
Loading…
Reference in New Issue
Block a user