4 Commits

6 changed files with 7 additions and 15 deletions

View File

@@ -5,7 +5,7 @@ using Syntriax.Engine.Core.Exceptions;
namespace Syntriax.Engine.Core;
[System.Diagnostics.DebuggerDisplay("Priority: {Priority}, Initialized: {Initialized}")]
[System.Diagnostics.DebuggerDisplay("{GetType().Name, nq}, Priority: {Priority}, Initialized: {Initialized}")]
public abstract class Behaviour : IBehaviour
{
public Action<IAssignable>? OnUnassigned { get; set; } = null;

View File

@@ -7,7 +7,7 @@ using Syntriax.Engine.Core.Abstract;
namespace Syntriax.Engine.Core;
[System.Diagnostics.DebuggerDisplay("Behaviour Count: {behaviours.Count()}")]
[System.Diagnostics.DebuggerDisplay("Behaviour Count: {behaviours.Count}")]
public class BehaviourController : IBehaviourController
{
public Action<IBehaviourController>? OnPreUpdate { get; set; }

View File

@@ -8,7 +8,7 @@ using Syntriax.Engine.Core.Factory;
namespace Syntriax.Engine.Core;
[System.Diagnostics.DebuggerDisplay("GameObject Count: {_gameObjects.Count()}")]
[System.Diagnostics.DebuggerDisplay("GameObject Count: {_gameObjects.Count}")]
public class GameManager : IEntity, IEnumerable<IGameObject>
{
public Action<GameManager>? OnCameraChanged { get; set; } = null;

View File

@@ -13,9 +13,5 @@ public class Collider2DCircleBehaviour : Collider2DBehaviourBase, ICircleCollide
public Collider2DCircleBehaviour() { }
public Collider2DCircleBehaviour(Circle circle)
{
CircleLocal = circle;
Recalculate();
}
public Collider2DCircleBehaviour(Circle circle) => CircleLocal = circle;
}

View File

@@ -14,9 +14,5 @@ public class Collider2DShapeBehaviour : Collider2DBehaviourBase, IShapeCollider2
public Collider2DShapeBehaviour() { }
public Collider2DShapeBehaviour(Shape shape)
{
ShapeLocal = shape;
Recalculate();
}
public Collider2DShapeBehaviour(Shape shape) => ShapeLocal = shape;
}

View File

@@ -6,7 +6,7 @@ using Syntriax.Engine.Core.Abstract;
namespace Syntriax.Engine.Physics2D.Primitives;
[System.Diagnostics.DebuggerDisplay("Vertices Count: {Vertices.Count()}")]
[System.Diagnostics.DebuggerDisplay("Vertices Count: {Vertices.Count}")]
public readonly struct Shape(IList<Vector2D> Vertices) : IEnumerable<Vector2D>
{
public static readonly Shape Triangle = CreateNgon(3, Vector2D.Up);
@@ -140,7 +140,7 @@ public readonly struct Shape(IList<Vector2D> Vertices) : IEnumerable<Vector2D>
public static class ShapeExtensions
{
public static Shape CreateCopy(Shape shape) => Shape.CreateCopy(shape);
public static Shape CreateCopy(this Shape shape) => Shape.CreateCopy(shape);
public static Triangle ToSuperTriangle(this Shape shape) => Shape.GetSuperTriangle(shape);
public static void ToLines(this Shape shape, IList<Line> lines) => Shape.GetLines(shape, lines);
public static List<Line> ToLines(this Shape shape) => Shape.GetLines(shape);