diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XOutLookAttr.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/XOutLookAttr.cs | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XOutLookAttr.cs b/Client/Assets/Scripts/XMainClient/XOutLookAttr.cs new file mode 100644 index 00000000..13798992 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOutLookAttr.cs @@ -0,0 +1,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;
+ }
+ }
+}
|