blob: 44e110263ea56e86b5125ef3ef82b705d9d6fc81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
using System;
using XUtliPoolLib;
namespace XMainClient
{
internal class Process_PtcG2C_UnitDisappear
{
public static void Process(PtcG2C_UnitDisappear roPtc)
{
XEntity xentity = XSingleton<XEntityMgr>.singleton.GetEntityConsiderDeath(roPtc.Data.uID);
bool flag = xentity != null && xentity.IsRole;
if (flag)
{
XSingleton<XEntityMgr>.singleton.DestroyEntity(xentity);
}
else
{
xentity = XSingleton<XEntityMgr>.singleton.GetEntity(roPtc.Data.uID);
bool flag2 = xentity != null;
if (flag2)
{
XSingleton<XEntityMgr>.singleton.DestroyEntity(xentity);
}
}
}
}
}
|