This repository was archived by the owner on Sep 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 441
/
Copy pathClientInfo.cs
60 lines (57 loc) · 1.86 KB
/
ClientInfo.cs
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
using GameServerCore.Enums;
using LeagueSandbox.GameServer.GameObjects.AttackableUnits.AI;
namespace GameServerCore.NetInfo
{
public class ClientInfo
{
public long PlayerId { get; private set; }
public int ClientId { get; set; }
public bool IsMatchingVersion { get; set; }
/// <summary>
/// False if the client sent a StartGame request.
/// </summary>
public bool IsDisconnected { get; set; }
/// <summary>
/// True if the client sent a Handshake request.
/// </summary>
public bool IsStartedClient { get; set; }
public int SkinNo { get; private set; }
public string[] SummonerSkills { get; private set; }
public string Name { get; private set; }
public string Rank { get; private set; }
public short Ribbon { get; private set; }
public int Icon { get; private set; }
public TeamId Team { get; private set; }
private Champion _champion;
public Champion Champion
{
get => _champion;
set
{
_champion = value;
_champion.UpdateSkin(SkinNo);
}
}
public ClientInfo(string rank,
TeamId team,
short ribbon,
int icon,
int skinNo,
string name,
string[] summonerSkills,
long playerId)
{
Rank = rank;
Team = team;
Ribbon = ribbon;
Icon = icon;
SkinNo = skinNo;
IsMatchingVersion = true;
Name = name;
SummonerSkills = summonerSkills;
PlayerId = playerId;
IsDisconnected = true;
IsStartedClient = false;
}
}
}