summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CheckQueuingNtf.cs
blob: eb853a7a6f8b3adacc104c7a11ae2becde4e8b10 (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
using System;
using KKSG;
using XUtliPoolLib;

namespace XMainClient
{
	internal class Process_PtcM2C_CheckQueuingNtf
	{
		public static void Process(PtcM2C_CheckQueuingNtf roPtc)
		{
			ErrorCode errorcode = roPtc.Data.errorcode;
			if (errorcode != ErrorCode.ERR_SUCCESS)
			{
				if (errorcode == ErrorCode.ERR_ACCOUNT_QUEUING)
				{
					XSingleton<XLoginDocument>.singleton.WaitForServerQueue(roPtc.Data.rolecount, roPtc.Data.timeleft);
				}
			}
			else
			{
				XSingleton<XLoginDocument>.singleton.EnterToSelectChar();
			}
		}
	}
}