Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Linq;
- using System.Collections.Generic;
- using Turbo.Plugins.Default;
- namespace Turbo.Plugins.User.Dias
- {
- public class MonkAllyMarker : BasePlugin, IInGameWorldPainter
- {
- public WorldDecoratorCollection AllyActive { get; set; }
- public WorldDecoratorCollection AllyNonActive { get; set; }
- public HashSet<uint> GargSnoActive = new HashSet<uint>
- {
- 367774 //Mystic Ally Active Fire
- };
- public HashSet<uint> GargSnoNonActive = new HashSet<uint>
- {
- //168878 //Mystic Ally Fire Non Active
- };
- public MonkAllyMarker()
- {
- Enabled = true;
- }
- public override void Load(IController hud)
- {
- base.Load(hud);
- AllyActive = new WorldDecoratorCollection(
- new MapShapeDecorator(Hud),
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 255, 0, 230, 3),
- Radius = 2f
- });
- AllyNonActive = new WorldDecoratorCollection(
- new MapShapeDecorator(Hud),
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 255, 0, 0, 1),
- Radius = 4f
- });
- }
- public void PaintWorld(WorldLayer layer)
- {
- var player = Hud.Game.Me;
- var actorsActive = Hud.Game.Actors.Where(a => GargSnoActive.Contains((uint)a.SnoActor.Sno));
- var actorsNonActive = Hud.Game.Actors.Where(a => GargSnoNonActive.Contains((uint)a.SnoActor.Sno));
- foreach (var actorActive in actorsActive)
- {
- if (actorActive.SummonerAcdDynamicId == player.SummonerId){
- AllyActive.Paint(layer, actorActive, actorActive.FloorCoordinate, "");
- }
- }
- foreach (var actorNonActive in actorsNonActive)
- {
- if (actorNonActive.SummonerAcdDynamicId == player.SummonerId){
- AllyNonActive.Paint(layer, actorNonActive, actorNonActive.FloorCoordinate, "");
- }
- }
- }
- } // class
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement