blob: 76c90069a40783861b0f3439204e8ba00470c66a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
using System;
using XUtliPoolLib;
namespace XMainClient
{
internal sealed class XDeath : XSingleton<XDeath>
{
public void DeathDetect(XEntity entity, XEntity killer, bool bForce)
{
bool flag = bForce || entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic) <= 0.0;
if (flag)
{
entity.TriggerDeath(killer);
}
}
}
}
|