-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSkillbar.cs
More file actions
30 lines (25 loc) · 1019 Bytes
/
Skillbar.cs
File metadata and controls
30 lines (25 loc) · 1019 Bytes
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
using Gate.Const;
using Gate.Networking;
namespace Gate
{
internal class Skillbar
{
private readonly PlayerCharacter playerCharacter_;
public Skillbar(PlayerCharacter playerCharacter)
{
playerCharacter_ = playerCharacter;
Skills = new int[8];
SkillCopies = new int[8];
}
public int[] Skills { get; private set; }
public int[] SkillCopies { get; private set; }
public void SendMessage_Skillbar(Client client)
{
client.GameConnection.Send((int) GameServerMessage.UpdateSkillBar,
client.GetId(playerCharacter_),
Skills,
SkillCopies,
(byte) 1);
}
}
}