Add bounds hazards and triggers
This commit is contained in:
20
src/SideScrollerGame.Sim/Definitions/HazardDefinition.cs
Normal file
20
src/SideScrollerGame.Sim/Definitions/HazardDefinition.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace SideScrollerGame.Sim.Definitions;
|
||||
|
||||
[ExcludeFromCodeCoverage]
|
||||
public sealed record HazardDefinition
|
||||
{
|
||||
public HazardDefinition(string id, AxisAlignedBounds bounds, int damagePerTick)
|
||||
{
|
||||
Id = id;
|
||||
Bounds = bounds;
|
||||
DamagePerTick = damagePerTick;
|
||||
}
|
||||
|
||||
public string Id { get; init; }
|
||||
|
||||
public AxisAlignedBounds Bounds { get; init; }
|
||||
|
||||
public int DamagePerTick { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user