35 lines
1007 B
C#
35 lines
1007 B
C#
using System;
|
|
using Code.OfficeGame.BattleMode.Actions;
|
|
using Code.OfficeGame.BattleMode.HitBoxes;
|
|
using UnityEngine;
|
|
|
|
namespace Code.OfficeGame.BattleMode
|
|
{
|
|
public struct EntityAttackedData : IEquatable<EntityAttackedData>
|
|
{
|
|
public int Damage;
|
|
public HitBoxPartType HitBoxPartType;
|
|
public Vector3 HitWorldPosition;
|
|
|
|
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);
|
|
}
|
|
}
|
|
} |