Advertisement
Jembo33

MonkS27WaveOfLightSancDecoratorPlugin

Dec 1st, 2022
710
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.93 KB | None | 0 0
  1. using System.Linq;
  2. using Turbo.Plugins.Default;
  3.  
  4. namespace Turbo.Plugins.User
  5. {
  6.     public class MonkS27WaveOfLightSancDecoratorPlugin : BasePlugin, IInGameWorldPainter
  7.     {
  8.     public WorldDecoratorCollection WaveOfLightSancDecorator { get; set; }
  9.  
  10.     public MonkS27WaveOfLightSancDecoratorPlugin()
  11.     {
  12.         Enabled = true;
  13.     }
  14.  
  15.     public override void Load(IController hud)
  16.     {
  17.         base.Load(hud);
  18.  
  19.         WaveOfLightSancDecorator = new WorldDecoratorCollection(
  20.         new GroundCircleDecorator(Hud)
  21.         {
  22.             Brush = Hud.Render.CreateBrush(200, 255, 128, 0, 4f),
  23.             Radius = -1
  24.         });
  25.  
  26.     }
  27.     public void PaintWorld(WorldLayer layer)
  28.     {
  29.         var actors = Hud.Game.Actors;
  30.         foreach (var actor in actors)
  31.         {
  32.         switch (actor.SnoActor.Sno)
  33.         {
  34.             case ActorSnoEnum._p74_monk_bell_waveoflight_runeb:
  35.             {
  36.                 WaveOfLightSancDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  37.             }
  38.             break;
  39.         }
  40.         }
  41.     }
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement