Health System
This commit is contained in:
1 parent
329cc98ade
commit
cb05da5e89
87 files changed
+568550
-155362
No files matched your search
@@ -0,0 +1,32 @@
|
||||
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 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user