20 lines
463 B
C#
20 lines
463 B
C#
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; }
|
|
} |