﻿/*
 * Sardes - Lunia Server Emulator 
 * Copyright (c) 2015 Amanda Gonçalo <amanda.gs@outlook.com>
 * 
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use,
 * copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following
 * conditions:
 * 
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE. 
 */
#region Using Statements
namespace Sardes.Networking
#endregion
{
    public static class PacketID
    {
        #region Constants

        // Shared between Lobby, Square, and Stage.
        public const ushort PACKET_PING               = 0x482F;

        // Lobby <-> Client Packet ID's.
        public const ushort PACKET_HANDSHAKE          = 0xAA41;
        public const ushort PACKET_LOGIN              = 0xBA09;
        public const ushort PACKET_CHARACTERLICENSES  = 0x022C;
        public const ushort PACKET_CHARACTERLIST      = 0xDC2C;
        public const ushort PACKET_DISCONNECT         = 0xDD83;
        public const ushort PACKET_CHARACTER_CREATE   = 0xC96E;
        public const ushort PACKET_CHARACTER_DELETE   = 0x899F;
        public const ushort PACKET_CHARACTER_SELECT   = 0x356E;
        public const ushort PACKET_CHARACTER_DESELECT = 0xF2AD;
        public const ushort PACKET_SQUARE_LIST        = 0x3A10;
        public const ushort PACKET_SQUARE_SELECT      = 0x7AE9;
        public const ushort PACKET_SQUARE_CONNECT     = 0xB98B;
        public const ushort PACKET_ACHIEVEMENTSERVER  = 0x02A4;
        public const ushort PACKET_KEYBINDINGS        = 0xF518;
        public const ushort PACKET_SETKEYBINDINGS     = 0xF0EF;
        public const ushort PACKET_2NDPASSWD          = 0xAE98;
        public const ushort PACKET_2NDPASSWD_CREATE   = 0xD9EE;
        public const ushort PACKET_2NDPASSWD_CREATED  = 0x1DD9;
        public const ushort PACKET_2NDPASSWD_LOGIN    = 0x0035;
        public const ushort PACKET_2NDPASSWD_OK       = 0x33F4;
        public const ushort PACKET_2NDPASSWD_REMOVE   = 0x305D;
        public const ushort PACKET_2NDPASSWD_REMOVED  = 0x4F0A;
        public const ushort PACKET_2NDPASSWD_CHANGE   = 0x0D2C;
        public const ushort PACKET_2NDPASSWD_CHANGED  = 0xA19B;

        // Square <-> Client Packet ID's.
        public const ushort PACKET_NPC_CREATE         = 0xB56C;
        public const ushort PACKET_ENCRYPTIONKEY      = 0x5E71;
        public const ushort PACKET_AUTHENTICATE       = 0x7260;
        public const ushort PACKET_SKILLS             = 0x7414;
        public const ushort PACKET_QUICKSLOTS         = 0x0E0F;
        public const ushort PACKET_LOADING            = 0x81B6;
        public const ushort PACKET_CHARACTER_INFO     = 0x3DDA;
        public const ushort PACKET_CHARACTER_MOVE     = 0x4228;
        public const ushort PACKET_CHARACTER_ACTION   = 0xE28D;
        public const ushort PACKET_CHARACTER_UPDATE   = 0x13E4;
        public const ushort PACKET_CHARACTER_DETAILS  = 0x831F;

        #endregion
    }
}
