Initial commit from MyParking project

This commit is contained in:
2026-08-04 10:29:21 +08:00
commit d9432bd529
138 changed files with 16957 additions and 0 deletions
@@ -0,0 +1,28 @@
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);
}
}
}