Characters

This commit is contained in:
2025-10-05 18:21:16 +02:00
parent b52b3aa830
commit 174a399ee7
77 changed files with 14406 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using UnityEngine;
namespace MegaKoop.Game.Combat
{
/// <summary>
/// Bundles damage information so different systems can respond consistently.
/// </summary>
public struct DamagePayload
{
public float Amount;
public Vector3 HitPoint;
public Vector3 HitNormal;
public GameObject Source;
public Team SourceTeam;
public GameObject Target;
public DamagePayload(float amount, Vector3 hitPoint, Vector3 hitNormal, GameObject source, Team sourceTeam, GameObject target)
{
Amount = amount;
HitPoint = hitPoint;
HitNormal = hitNormal;
Source = source;
SourceTeam = sourceTeam;
Target = target;
}
}
}