public ArrowRecountTriggerer(AacMissionBehavior aacMissionBehavior, ArrowCounter arrowCounter) { this.aacMissionBehavior = aacMissionBehavior; this.arrowCounter = arrowCounter; aacMissionBehavior.AllyFiredMissileEvent += OnAllyFired; aacMissionBehavior.AllyAgentRemovedEvent += OnAgentRemoved; arrowCounter.RemainingArrowsUpdateEvent += OnRemainingArrowsUpdate; }
public EventLogger(AacMissionBehavior aacMissionBehavior, ArrowCounter arrowCounter) { //aacMissionBehavior.AllyAgentBuiltEvent += OnAllyAgentBuilt; //aacMissionBehavior.AllyAgentRemovedEvent += OnAllyAgentRemoved; //aacMissionBehavior.AllyFiredMissileEvent += OnAllyFiredMissile; //aacMissionBehavior.BattleStartEvent += OnBattleStart; //aacMissionBehavior.SiegeBattleStartEvent += OnSiegeBattleStart; //aacMissionBehavior.PlayerBuiltEvent += OnPlayerBuilt; //arrowCounter.RemainingArrowsUpdateEvent += OnRemainingArrowsUpdate; //arrowCounter.MaxArrowsUpdateEvent += OnMaxArrowsUpdate; }
public static ViewModel Create(ArrowCounter arrowCounter) { switch (Config.Instance().CounterType) { case CounterType.NEAREST_WRITTEN: return(new NearestWrittenViewModel(arrowCounter)); case CounterType.EXACT_PERCENT: return(new ExactPercentViewModel(arrowCounter)); case CounterType.NEAREST_10_PERCENT: return(new NearestXPercentViewModel(arrowCounter, 10)); case CounterType.NEAREST_20_PERCENT: return(new NearestXPercentViewModel(arrowCounter, 20)); case CounterType.NEAREST_25_PERCENT: return(new NearestXPercentViewModel(arrowCounter, 25)); case CounterType.EXACT_FRACTION: default: return(new ExactFractionViewModel(arrowCounter)); } }
public ExactPercentViewModel(ArrowCounter arrowCounter) : base(arrowCounter) { }
public NearestWrittenViewModel(ArrowCounter arrowCounter) : base(arrowCounter) { }
public ExactFractionViewModel(ArrowCounter arrowCounter) : base(arrowCounter) { }
public NearestXPercentViewModel(ArrowCounter arrowCounter, int roundTo) : base(arrowCounter) { RoundTo = roundTo; }
public AacMissionBehavior() { ArrowCounter = new ArrowCounter(this); ArrowRecountTriggerer = new ArrowRecountTriggerer(this, ArrowCounter); AacUiApplier = new AacUiApplier(this, AacViewModelFactory.Create(ArrowCounter)); }
public AacViewModel(ArrowCounter arrowCounter) { ArrowCounter = arrowCounter; arrowCounter.RemainingArrowsUpdateEvent += OnArrowCountUpdated; arrowCounter.MaxArrowsUpdateEvent += OnArrowCountUpdated; }