public TargetingController() { Service.Set <TargetingController>(this); this.pathingManager = Service.Get <PathingManager>(); this.shooterController = Service.Get <ShooterController>(); this.spatialIndexController = Service.Get <SpatialIndexController>(); EntityController entityController = Service.Get <EntityController>(); this.defensiveTroopNodeList = entityController.GetNodeList <DefensiveTroopNode>(); this.offensiveTroopNodeList = entityController.GetNodeList <OffensiveTroopNode>(); this.offensiveHealerNodeList = entityController.GetNodeList <OffensiveHealerNode>(); this.defensiveHealerNodeList = entityController.GetNodeList <DefensiveHealerNode>(); }
public TargetingController() { Service.TargetingController = this; this.pathingManager = Service.PathingManager; this.shooterController = Service.ShooterController; this.spatialIndexController = Service.SpatialIndexController; EntityController entityController = Service.EntityController; this.defensiveTroopNodeList = entityController.GetNodeList <DefensiveTroopNode>(); this.offensiveTroopNodeList = entityController.GetNodeList <OffensiveTroopNode>(); this.offensiveHealerNodeList = entityController.GetNodeList <OffensiveHealerNode>(); this.defensiveHealerNodeList = entityController.GetNodeList <DefensiveHealerNode>(); EventManager eventManager = Service.EventManager; eventManager.RegisterObserver(this, EventId.ProcBuff); eventManager.RegisterObserver(this, EventId.RemovingBuff); }