コード例 #1
0
        public override void Handle(GameSession session, PacketReader packet)
        {
            BankMode mode = (BankMode)packet.ReadByte();

            switch (mode)
            {
            case BankMode.Open:
                HandleOpen(session);
                break;

            default:
                IPacketHandler <GameSession> .LogUnknownMode(mode);

                break;
            }
        }
コード例 #2
0
    public override void Handle(GameSession session, PacketReader packet)
    {
        BankMode mode = (BankMode)packet.ReadByte();

        switch (mode)
        {
        case BankMode.House:
            HandleOpen(session, TimeInfo.Now());
            break;

        case BankMode.Inventory:
            HandleOpen(session);
            break;

        default:
            LogUnknownMode(mode);
            break;
        }
    }
コード例 #3
0
        public override void Handle(GameSession session, PacketReader packet)
        {
            BankMode mode = (BankMode)packet.ReadByte();

            switch (mode)
            {
            case BankMode.House:
                HandleOpen(session, DateTimeOffset.UtcNow.ToUnixTimeSeconds());
                break;

            case BankMode.Inventory:
                HandleOpen(session);
                break;

            default:
                IPacketHandler <GameSession> .LogUnknownMode(mode);

                break;
            }
        }