summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpecialStateNtf.cs
blob: e1339b0c4d3722dd41a6aef81bd0726c0ca78e14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;
using XUtliPoolLib;

namespace XMainClient
{
	internal class Process_PtcG2C_SpecialStateNtf
	{
		public static void Process(PtcG2C_SpecialStateNtf roPtc)
		{
			XSingleton<XDebug>.singleton.AddLog(roPtc.Data.uid.ToString(), " got specialStateNtf state ", roPtc.Data.state.ToString(), " mask ", roPtc.Data.effectmask.ToString(), null, XDebugColor.XDebug_None);
			XEntity entity = XSingleton<XEntityMgr>.singleton.GetEntity(roPtc.Data.uid);
			bool flag = entity != null;
			if (flag)
			{
				entity.UpdateSpecialStateFromServer(roPtc.Data.state, roPtc.Data.effectmask);
			}
		}
	}
}