-
Notifications
You must be signed in to change notification settings - Fork 16
/
PacketAPI.cs
30 lines (25 loc) · 864 Bytes
/
PacketAPI.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
using System;
namespace EOLib.Net.API
{
public sealed partial class PacketAPI : IDisposable
{
private readonly EOClient m_client;
/// <summary>
/// Indicates that the connection handshake has completed successfully. ( Initialize()->HandleInit()->ConfirmInit() )
/// </summary>
public bool Initialized { get; private set; }
public PacketAPI(EOClient client)
{
if (!client.Connected)
{
throw new ArgumentException("The client must be connected to the server in order to construct the API!");
}
m_client = client;
//each of these sets up members of the partial PacketAPI class relevant to a particular packet family
_createTradeMembers();
}
public void Dispose()
{
}
}
}