コード例 #1
0
    public static void Handle(ReceivablePacket packet)
    {
        switch (packet.ReadShort())
        {
        case 1:
            AccountAuthenticationResult.Notify(packet);
            break;

        case 2:
            CharacterSelectionInfoResult.Notify(packet);
            break;

        case 3:
            CharacterCreationResult.Notify(packet);
            break;

        case 4:
            CharacterDeletionResult.Notify(packet);
            break;

        case 5:
            PlayerOptionsInformation.Notify(packet);
            break;

        case 6:
            PlayerInformation.Notify(packet);
            break;

        case 7:
            NpcInformation.Notify(packet);
            break;

        case 8:
            DeleteObject.Notify(packet);
            break;

        case 9:
            Logout.Notify(packet);
            break;

        case 10:
            LocationUpdate.Notify(packet);
            break;

        case 11:
            AnimatorUpdate.Notify(packet);
            break;

        case 12:
            ChatResult.Notify(packet);
            break;

        case 13:
            PlayerInventoryUpdate.Notify(packet);
            break;
        }
    }