Characters
This commit is contained in:
27
Game/Scripts/Combat/DamagePayload.cs
Normal file
27
Game/Scripts/Combat/DamagePayload.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user