This commit is contained in:
2026-11-04 15:51:04 +01:00
parent d21f0c9b6c
commit cd65f702ae
111 changed files with 246848 additions and 1021 deletions

View File

@@ -0,0 +1,26 @@
using UnityEngine;
namespace Arena.Combat
{
/// <summary>
/// Everything a hit carries: amount, type and source. Passed to IDamageable.TakeDamage.
/// </summary>
public readonly struct DamageInfo
{
public readonly int Amount;
public readonly DamageType Type;
/// <summary>
/// Object that dealt the damage: shooter, damage zone... Can be null.
/// </summary>
public readonly GameObject Source;
public DamageInfo(int amount, DamageType type, GameObject source = null)
{
Amount = amount;
Type = type;
Source = source;
}
}
}