From 7e9a1816fa6c4c58b44c4ced5a3bf72f388fd03b Mon Sep 17 00:00:00 2001 From: walker Date: Mon, 25 Dec 2023 13:28:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8Decs=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- message_server/simulation_state_ms.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/message_server/simulation_state_ms.go b/message_server/simulation_state_ms.go index 54f416e..b4a949d 100644 --- a/message_server/simulation_state_ms.go +++ b/message_server/simulation_state_ms.go @@ -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,