This commit is contained in:
xzb 2023-09-26 17:17:30 +08:00
commit 355a9c86ff

View File

@ -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