blob: 66683fe109aee369375b1a4e5f8d8c85563284ac (
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
55
56
57
58
59
60
61
62
63
64
|
using System;
using System.Collections.Generic;
using KKSG;
using XUtliPoolLib;
namespace XMainClient
{
public class GuildTerritoryAllianceInfo
{
public ulong GuildID;
public string GuildName;
public ulong AllianceGuildID;
public string AllianceGuildName;
public List<ulong> TryAllianceIDs;
public bool isAllicance = false;
public void Set(GuildTerrChallInfo terr)
{
this.GuildID = terr.guildid;
this.GuildName = terr.guildname;
this.AllianceGuildID = terr.allianceid;
this.TryAllianceIDs = terr.tryallianceid;
XSingleton<XDebug>.singleton.AddGreenLog(this.GuildName, ":TryAllianceIDs:", this.TryAllianceIDs.Count.ToString(), null, null, null);
this.isAllicance = false;
}
public void Add(GuildTerrChallInfo terr)
{
bool flag = this.AllianceGuildID == terr.guildid;
if (flag)
{
this.AllianceGuildID = terr.guildid;
this.AllianceGuildName = terr.guildname;
this.isAllicance = true;
}
}
public bool Contains(ulong allianceid)
{
bool flag = this.TryAllianceIDs == null;
return !flag && this.TryAllianceIDs.Contains(allianceid);
}
public string GetAllinceString()
{
bool flag = this.isAllicance;
string result;
if (flag)
{
result = string.Format("{0}&{1}", this.GuildName, this.AllianceGuildName);
}
else
{
result = this.GuildName;
}
return result;
}
}
}
|