Example #1
0
        public void EndTurn(SpeedComponent speedComponent, StatusEffectTrackerComponent statusEffectTrackerComponent)
        {
            int currentTick = this.NextTurnAtTick;

            if (statusEffectTrackerComponent != null)
            {
                statusEffectTrackerComponent.UpdateStatusEffectTimers(currentTick);
            }

            this.LastTurnAtTick = currentTick;
            this.NextTurnAtTick = currentTick + speedComponent.Speed;
        }
Example #2
0
        public static StatusEffectTrackerComponent Create()
        {
            var component = new StatusEffectTrackerComponent();

            return(component);
        }