Example #1
0
        public Packet(PacketCmdS2C cmd = PacketCmdS2C.PKT_S2C_KeyCheck)
        {
            memStream = new MemoryStream();
            buffer = new BinaryWriter(memStream);

            buffer.Write((byte)cmd);
        }
Example #2
0
 public StatePacket2(PacketCmdS2C state) : base(state)
 {
     buffer.Write((short)0); //unk
 }
Example #3
0
        public StatePacket(PacketCmdS2C state) : base(state)
        {

        }
Example #4
0
 public SynchVersion(byte[] data)
 {
     var reader = new BinaryReader(new MemoryStream(data));
     cmd = (PacketCmdS2C)reader.ReadByte();
     netId = reader.ReadInt32();
     unk1 = reader.ReadInt32();
     _version = reader.ReadBytes(256);
     reader.Close();
 }
Example #5
0
 public GamePacket(PacketCmdS2C cmd = PacketCmdS2C.PKT_S2C_KeyCheck, int netId = 0) : base(cmd, netId)
 {
     buffer.Write(Environment.TickCount);
 }
Example #6
0
 public BasePacket(PacketCmdS2C cmd = PacketCmdS2C.PKT_S2C_KeyCheck, int netId = 0) : base(cmd)
 {
     buffer.Write(netId);
 }
Example #7
0
 public PingLoadInfo(byte[] data)
 {
     var reader = new BinaryReader(new MemoryStream(data));
     cmd = (PacketCmdS2C)reader.ReadByte();
     netId = reader.ReadInt32();
     unk1 = reader.ReadInt32();
     userId = reader.ReadInt64();
     loaded = reader.ReadSingle();
     ping = reader.ReadSingle();
     unk2 = reader.ReadInt16();
     unk3 = reader.ReadInt16();
     unk4 = reader.ReadByte();
     reader.Close();
 }