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();
     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
     };
 }
예제 #4
0
 public BattlenetParserAttribute(BattlenetOpcode opcode, BattlenetChannel channel, Direction direction)
 {
     Header = new BattlenetPacketHeader
     {
         Opcode    = (ushort)opcode,
         Channel   = channel,
         Direction = direction
     };
 }
예제 #5
0
        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);
        }
예제 #6
0
 public BattlenetPacketHeader(ushort opcode, BattlenetChannel channel, Direction direction)
 {
     Opcode    = opcode;
     Channel   = channel;
     Direction = direction;
 }
예제 #7
0
파일: Command.cs 프로젝트: Stewa91/123
        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");
        }
예제 #8
0
 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";
 }
예제 #9
0
 public BattlenetPacketHeader(ushort opcode, BattlenetChannel channel, Direction direction)
 {
     Opcode = opcode;
     Channel = channel;
     Direction = direction;
 }
 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);
 }
예제 #12
0
 private BattlenetParserAttribute(ushort opcode, BattlenetChannel channel, Direction direction)
 {
     Header = new BattlenetPacketHeader(opcode, channel, direction);
 }