Пример #1
0
 private void SC_SelfUpdateRequired(PacketStream stream)
 {
     GUI.Instance.OnSelfUpdateCheckCompleted(stream.ReadBool());
 }
Пример #2
0
 private void SC_ReceiveRegisterComplete(PacketStream stream)
 {
     GUI.Instance.OnRegisterCompleteReceived();
 }
Пример #3
0
 private void SC_DesKey(PacketStream stream)
 {
     GUI.Instance.OnDesKeyReceived(stream.ReadString());
 }
Пример #4
0
        internal void RequestDisconnect()
        {
            PacketStream stream = new PacketStream(0x00DC);

            ServerManager.Instance.Send(stream);
        }
Пример #5
0
 private void SC_AuthenticationType(PacketStream stream)
 {
     GUI.Instance.OnAuthenticationTypeReceived(stream.ReadInt32());
 }
Пример #6
0
 private void SC_ReceiveWait(PacketStream stream)
 {
     // ushort packetID (to resend)
     // int period (to wait)
     UpdateHandler.Instance.OnWaitReceived(stream.ReadUInt16(), stream.ReadInt32());
 }
Пример #7
0
        internal void CS_GetUpdateDateTime()
        {
            PacketStream stream = new PacketStream(0x0001);

            ServerManager.Instance.Send(stream);
        }
Пример #8
0
 private void SC_ReceiveUpdatesDisabled(PacketStream stream)
 {
     GUI.Instance.OnUpdatesEnabledReceived(stream.ReadInt32());
 }
Пример #9
0
 private void SC_Disconnect(PacketStream stream)
 {
     GUI.Instance.UpdateStatus(0, "Disconnection complete!");
     GUI.Instance.Invoke(new System.Windows.Forms.MethodInvoker(delegate { GUI.Instance.Close(); }));
 }
Пример #10
0
 private void SC_AccountNull(PacketStream stream)
 {
     GUI.Instance.OnUserAccountNullReceived();
 }
Пример #11
0
 private void SC_ReceiveSendType(PacketStream stream)
 {
     UpdateHandler.Instance.OnSendTypeReceived(stream.ReadInt32());
 }
Пример #12
0
 private void SC_UserBanned(PacketStream stream)
 {
     GUI.Instance.OnUserBannedReceived(stream.ReadInt32());
 }
Пример #13
0
 private void SC_ResourceIndexEnd(PacketStream stream)
 {
     UpdateHandler.Instance.OnResourceIndexEOF();
 }
Пример #14
0
 private void SC_UpdateIndexEnd(PacketStream stream)
 {
     UpdateHandler.Instance.OnDataIndexEOF();
 }
Пример #15
0
 /// <summary>
 /// Called when an entire packet is received
 /// </summary>
 /// <param name="packetStream"></param>
 private static void PacketReceived(PacketStream packetStream)
 {
     // Dumps packet data and process
     Packets.Instance.PacketReceived(packetStream);
 }
Пример #16
0
 /// <summary>
 /// Called when an entire packet is received
 /// </summary>
 /// <param name="packetStream"></param>
 private void PacketReceived(PacketStream packetStream)
 {
     // Dumps packet data and process
     ServerPackets.Instance.PacketReceived(packetStream);
 }