Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using Turbo.Plugins.Default;
- namespace Turbo.Plugins.BM
- {
- public class MonsterMarkPlugin : BasePlugin, IInGameWorldPainter
- {
- public WorldDecoratorCollection MonsterDecorator { get; set; }
- public MonsterMarkPlugin()
- {
- Enabled = true;
- }
- public override void Load(IController hud)
- {
- base.Load(hud);
- var shadowBrush = Hud.Render.CreateBrush(96, 0, 0, 0, 1);
- MonsterDecorator = new WorldDecoratorCollection(
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 255, 255, 0, 2),
- Radius = 0.2f,
- },
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 255, 0, 0, 1),
- Radius = 0.1f,
- }
- );
- }
- public void PaintWorld(WorldLayer layer)
- {
- var monsters = Hud.Game.AliveMonsters;
- foreach (var monster in monsters)
- {
- MonsterDecorator.Paint(layer, monster, monster.FloorCoordinate, monster.SnoMonster.NameLocalized);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment