public void Initialize() { _calc = new ObjectiveCalc(); _deathTracker = new DeathTracker(ObjectManager.Player.Team == GameObjectTeam.Chaos ? GameObjectTeam.Order : GameObjectTeam.Chaos); _inhibTracker = new InhibitorTracker(ObjectiveCalc.Objectives.Where(objective => objective.GetType() == typeof(ObjectiveInhibitor)).Cast <ObjectiveInhibitor>().ToArray()); Drawing.OnDraw += Draw; Game.OnUpdate += Tick; }
public void Initialize() { _calc = new ObjectiveCalc(); _deathTracker = new DeathTracker(ObjectManager.Player.Team == GameObjectTeam.Chaos ? GameObjectTeam.Order : GameObjectTeam.Chaos); _inhibTracker = new InhibitorTracker(ObjectiveCalc.Objectives.Where(objective => objective.GetType() == typeof(ObjectiveInhibitor)).Cast<ObjectiveInhibitor>().ToArray()); Drawing.OnDraw += Draw; Game.OnUpdate += Tick; }