Health System

This commit is contained in:
ThomasCharester committed 2026-11-17 18:44:54 +03:00
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);
}
}
}