using System; using Code.OfficeGame.BattleMode.Actions; using Code.OfficeGame.BattleMode.HitBoxes; using UnityEngine; namespace Code.OfficeGame.BattleMode { public struct EntityAttackedData : IEquatable { public int Damage; public HitBoxPartType HitBoxPartType; public EntityId AttackerId; public EntityId DefenderId; public EntityProperties Attacker; public EntityProperties Defender; public BattleActionData ForcedActionData; public BattleActionDecisionResult ForcedDecisionResult; public bool Equals(EntityAttackedData other) { return AttackerId == other.AttackerId && DefenderId == other.DefenderId && HitBoxPartType == other.HitBoxPartType; } public override int GetHashCode() { return HashCode.Combine(AttackerId, DefenderId, HitBoxPartType); } } }