适配ecs调整
This commit is contained in:
parent
e179497de9
commit
7e9a1816fa
|
@ -12,7 +12,7 @@ func NewStateMs(vs *memory.VerifySimulation) ms_api.MsgTask {
|
|||
return ms_api.NewMonitorTask("仿真状态", func() {
|
||||
ecs.WorldStateChangeEvent.Subscribe(vs.World, func(_ ecs.World, e ecs.WorldStateChange) {
|
||||
switch e.NewState {
|
||||
case ecs.WorldClose:
|
||||
case ecs.WorldClosed:
|
||||
mqtt.PubSimulationState(vs.SimulationId, &state.SimulationStatus{
|
||||
SimulationId: vs.SimulationId,
|
||||
State: state.SimulationStatus_DESTROY,
|
||||
|
|
Loading…
Reference in New Issue