summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XOutLookAttr.cs
blob: 1379899291a8583f27e40806e7fe0a1cc2aaf26f (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System;
using System.Collections.Generic;
using KKSG;

namespace XMainClient
{
	public class XOutLookAttr
	{
		public OutLookGuild guild = null;

		public uint designationID = 0u;

		public string specialDesignation = "";

		public uint titleID = 0u;

		public uint militaryRank = 0u;

		public uint prerogativeScore = 0u;

		public List<uint> prerogativeSetID;

		public XOutLookAttr(OutLook outlook)
		{
			this.guild = ((outlook != null) ? outlook.guild : null);
			this.designationID = ((outlook != null && outlook.designation != null) ? outlook.designation.id : 0u);
			this.specialDesignation = ((outlook != null && outlook.designation != null) ? outlook.designation.name : "");
			this.titleID = ((outlook != null && outlook.title != null) ? outlook.title.titleID : 0u);
			this.militaryRank = ((outlook != null && outlook.military != null) ? outlook.military.military_rank : 0u);
			bool flag = outlook == null || outlook.pre == null;
			if (flag)
			{
				this.prerogativeScore = 0u;
				this.prerogativeSetID = null;
			}
			else
			{
				this.prerogativeScore = outlook.pre.score;
				this.prerogativeSetID = outlook.pre.setid;
			}
		}

		public XOutLookAttr(uint title, MilitaryRecord military)
		{
			this.titleID = title;
			this.militaryRank = ((military != null) ? military.military_rank : 0u);
		}

		public XOutLookAttr(OutLookGuild outguild)
		{
			this.guild = outguild;
		}
	}
}