public ViewModelHotbarItemWithFuelOverlayControl(IItem item, IReadOnlyItemFuelConfig itemFuelConfig) { this.itemFuelConfig = itemFuelConfig; var characterState = ClientCurrentCharacterHelper.PrivateState; characterState.ClientSubscribe( _ => _.CurrentActionState, s => { this.CurrentAction = s as ItemFuelRefillActionState; }, this); this.CurrentAction = characterState.CurrentActionState as ItemFuelRefillActionState; this.Item = item; }
public HotbarItemWithFuelOverlayControl(IItem item, IReadOnlyItemFuelConfig itemFuelConfig) { this.item = item; this.itemFuelConfig = itemFuelConfig; }