perf: regular events to custom events
This commit is contained in:
@@ -18,7 +18,7 @@ public class Shape2D(List<Vector2D> vertices) : IEnumerable<Vector2D>
|
||||
public static Shape2D Pentagon => CreateNgon(5, Vector2D.Up);
|
||||
public static Shape2D Hexagon => CreateNgon(6, Vector2D.Right);
|
||||
|
||||
public event ShapeUpdatedEventHandler? OnShapeUpdated = null;
|
||||
public Event<Shape2D> OnShapeUpdated { get; private set; } = new();
|
||||
|
||||
private List<Vector2D> _vertices = vertices;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user