From bcf28ee7c3c3c957928f46eea601805d830205c0 Mon Sep 17 00:00:00 2001 From: NTG Date: Mon, 18 Aug 2025 14:29:30 +0900 Subject: [PATCH] =?UTF-8?q?smart=20string=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20?= =?UTF-8?q?=ED=98=B8=EC=B6=9C=20=EC=9C=84=EC=B9=98=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FlowStates/RestaurantManagementStateSo.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Assets/_DDD/_Scripts/RestaurantState/FlowStates/RestaurantManagementStateSo.cs b/Assets/_DDD/_Scripts/RestaurantState/FlowStates/RestaurantManagementStateSo.cs index 8c19ff11c..56e8cebf1 100644 --- a/Assets/_DDD/_Scripts/RestaurantState/FlowStates/RestaurantManagementStateSo.cs +++ b/Assets/_DDD/_Scripts/RestaurantState/FlowStates/RestaurantManagementStateSo.cs @@ -191,7 +191,6 @@ public bool TryRemoveTodayMenu(ItemViewModel model) dirtyEvt.DomainFlags = SmartVariablesDomain.RestaurantToday; EventBus.Broadcast(dirtyEvt); EventBus.Broadcast(removedEvt); - } return removed; @@ -216,10 +215,10 @@ public bool TryAddTodayCookware(ItemViewModel model) } } + var dirtyEvt = GameEvents.SmartVariablesDirtyEvent; + dirtyEvt.DomainFlags = SmartVariablesDomain.RestaurantToday; + EventBus.Broadcast(dirtyEvt); EventBus.Broadcast(RestaurantEvents.TodayMenuAddedEvent); - var dirtyEvt2 = GameEvents.SmartVariablesDirtyEvent; - dirtyEvt2.DomainFlags = SmartVariablesDomain.RestaurantToday; - EventBus.Broadcast(dirtyEvt2); return true; } @@ -234,12 +233,12 @@ public bool TryRemoveTodayCookware(ItemViewModel model) if (_cookwareToRecipeIds.Remove(cookwareId) == false) return false; + var dirtyEvt = GameEvents.SmartVariablesDirtyEvent; + dirtyEvt.DomainFlags = SmartVariablesDomain.RestaurantToday; + EventBus.Broadcast(dirtyEvt); var evt = RestaurantEvents.TodayMenuRemovedEvent; evt.InventoryCategoryType = InventoryCategoryType.Cookware; EventBus.Broadcast(evt); - var dirtyEvt3 = GameEvents.SmartVariablesDirtyEvent; - dirtyEvt3.DomainFlags = SmartVariablesDomain.RestaurantToday; - EventBus.Broadcast(dirtyEvt3); return true; }