smart string 이벤트 호출 위치 변경

This commit is contained in:
NTG 2025-08-18 14:29:30 +09:00
parent 56ec16bcf5
commit bcf28ee7c3

View File

@ -191,7 +191,6 @@ public bool TryRemoveTodayMenu(ItemViewModel model)
dirtyEvt.DomainFlags = SmartVariablesDomain.RestaurantToday; dirtyEvt.DomainFlags = SmartVariablesDomain.RestaurantToday;
EventBus.Broadcast(dirtyEvt); EventBus.Broadcast(dirtyEvt);
EventBus.Broadcast(removedEvt); EventBus.Broadcast(removedEvt);
} }
return removed; 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); EventBus.Broadcast(RestaurantEvents.TodayMenuAddedEvent);
var dirtyEvt2 = GameEvents.SmartVariablesDirtyEvent;
dirtyEvt2.DomainFlags = SmartVariablesDomain.RestaurantToday;
EventBus.Broadcast(dirtyEvt2);
return true; return true;
} }
@ -234,12 +233,12 @@ public bool TryRemoveTodayCookware(ItemViewModel model)
if (_cookwareToRecipeIds.Remove(cookwareId) == false) return false; if (_cookwareToRecipeIds.Remove(cookwareId) == false) return false;
var dirtyEvt = GameEvents.SmartVariablesDirtyEvent;
dirtyEvt.DomainFlags = SmartVariablesDomain.RestaurantToday;
EventBus.Broadcast(dirtyEvt);
var evt = RestaurantEvents.TodayMenuRemovedEvent; var evt = RestaurantEvents.TodayMenuRemovedEvent;
evt.InventoryCategoryType = InventoryCategoryType.Cookware; evt.InventoryCategoryType = InventoryCategoryType.Cookware;
EventBus.Broadcast(evt); EventBus.Broadcast(evt);
var dirtyEvt3 = GameEvents.SmartVariablesDirtyEvent;
dirtyEvt3.DomainFlags = SmartVariablesDomain.RestaurantToday;
EventBus.Broadcast(dirtyEvt3);
return true; return true;
} }