28 lines
762 B
C#
28 lines
762 B
C#
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;
|
|
}
|
|
}
|
|
}
|