smart string 이벤트 호출 위치 변경
This commit is contained in:
parent
56ec16bcf5
commit
bcf28ee7c3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user