using System;
using System.Collections.Generic;
using System.Drawing;
using System.Numerics;
using System.Text;

namespace CommonUsage
{
    public class Visualizer
    {
        public Action<Color, Vector2, Vector2, bool, bool, int> LineAction;

        public Action<Color, string, Vector2> TextAction;

        public Action Clear;

        public void DrawLine(Color color, Vector2 src, Vector2 dst, bool startArrow = false, bool endArrow = false,
            int width = 1)
        {
            LineAction?.Invoke(color, src, dst, startArrow, endArrow, width);
        }

        public void DrawText(Color color, string text, Vector2 pos)
        {
            TextAction?.Invoke(color, text, pos);
        }
    }
}
