【删除多余的case条件】
This commit is contained in:
parent
e886d5f4ef
commit
96cf5e844b
@ -13,7 +13,6 @@ func NewStateMs(vs *memory.VerifySimulation) ms_api.MsgTask {
|
|||||||
ecs.WorldStateChangeEvent.Subscribe(vs.World, func(_ ecs.World, e ecs.WorldStateChange) {
|
ecs.WorldStateChangeEvent.Subscribe(vs.World, func(_ ecs.World, e ecs.WorldStateChange) {
|
||||||
s := &state.SimulationStatus{SimulationId: vs.SimulationId}
|
s := &state.SimulationStatus{SimulationId: vs.SimulationId}
|
||||||
switch e.NewState {
|
switch e.NewState {
|
||||||
case ecs.WorldClose:
|
|
||||||
case ecs.WorldClosed:
|
case ecs.WorldClosed:
|
||||||
s.State = state.SimulationStatus_DESTROY
|
s.State = state.SimulationStatus_DESTROY
|
||||||
case ecs.WorldError:
|
case ecs.WorldError:
|
||||||
|
Loading…
Reference in New Issue
Block a user