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; } }
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; } }
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; } }