public BattlenetParserAttribute(BattlenetOpcode opcode, BattlenetChannel channel, Direction direction) { Header = new BattlenetPacketHeader(); Header.Opcode = (ushort)opcode; Header.Channel = channel; Header.Direction = direction; }
public BattlenetParserAttribute(BattlenetOpcode opcode, BattlenetChannel channel, Direction direction) { Header = new BattlenetPacketHeader { Opcode = (ushort) opcode, Channel = channel, Direction = direction }; }
public BattlenetParserAttribute(BattlenetOpcode opcode, BattlenetChannel channel, Direction direction) { Header = new BattlenetPacketHeader { Opcode = (ushort)opcode, Channel = channel, Direction = direction }; }
public BattlenetPacket(Packet packet) { BitStream = new BattlenetBitStream(packet); Stream = packet; ushort opcode = BitStream.Read <byte>(0, 6); BattlenetChannel channel = BattlenetChannel.Authentication; if (ReadBoolean()) { channel = (BattlenetChannel)BitStream.Read <byte>(0, 4); } Header = new BattlenetPacketHeader(opcode, channel, packet.Direction); }
public BattlenetPacketHeader(ushort opcode, BattlenetChannel channel, Direction direction) { Opcode = opcode; Channel = channel; Direction = direction; }
public static string Get(ushort command, BattlenetChannel channel, Direction direction) { var key = Tuple.Create(channel, direction); return(CommandTypes.ContainsKey(key) ? CommandTypes[key].GetEnumName(command) : "Unknown"); }
public static string Get(ushort command, BattlenetChannel channel, Direction direction) { var key = Tuple.Create(channel, direction); return CommandTypes.ContainsKey(key) ? CommandTypes[key].GetEnumName(command) : "Unknown"; }
private BattlenetParserAttribute(ushort opcode, BattlenetChannel channel, Direction direction) { Header = new BattlenetPacketHeader { Opcode = opcode, Channel = channel, Direction = direction }; }
private BattlenetParserAttribute(ushort opcode, BattlenetChannel channel, Direction direction) { Header = new BattlenetPacketHeader(opcode, channel, direction); }