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

namespace XMainClient
{
	internal class Process_PtcG2C_CorrectPosition
	{
		public static void Process(PtcG2C_CorrectPosition roPtc)
		{
			XEntity entityConsiderDeath = XSingleton<XEntityMgr>.singleton.GetEntityConsiderDeath(roPtc.Data.uid);
			bool flag = entityConsiderDeath != null;
			if (flag)
			{
				Vector3 pos;
				pos = new Vector3((float)roPtc.Data.pos_x / 100f, (float)roPtc.Data.pos_y / 100f, (float)roPtc.Data.pos_z / 100f);
				Vector3 face = XSingleton<XCommon>.singleton.FloatToAngle((float)roPtc.Data.face / 10f);
				entityConsiderDeath.CorrectMe(pos, face, false, roPtc.Data.bTransfer);
			}
		}
	}
}