perf: regular events to custom events
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using Syntriax.Engine.Core;
|
||||
|
||||
namespace Syntriax.Engine.Physics2D;
|
||||
|
||||
/// <summary>
|
||||
@@ -8,12 +10,12 @@ public interface IPhysicsEngine2D
|
||||
/// <summary>
|
||||
/// Event triggered when the <see cref="IPhysicsEngine2D"/> has done a single physics iteration.
|
||||
/// </summary>
|
||||
event PhysicsIterationEventHandler? OnPhysicsIteration;
|
||||
Event<IPhysicsEngine2D, float> OnPhysicsIteration { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Event triggered when the <see cref="IPhysicsEngine2D"/> has done a full physics step/>.
|
||||
/// </summary>
|
||||
event PhysicsStepEventHandler? OnPhysicsStep;
|
||||
Event<IPhysicsEngine2D, float> OnPhysicsStep { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of iterations the <see cref="IPhysicsEngine2D"/> performs per step.
|
||||
|
||||
Reference in New Issue
Block a user