public Packet(PacketCmdS2C cmd = PacketCmdS2C.PKT_S2C_KeyCheck) { memStream = new MemoryStream(); buffer = new BinaryWriter(memStream); buffer.Write((byte)cmd); }
public StatePacket2(PacketCmdS2C state) : base(state) { buffer.Write((short)0); //unk }
public StatePacket(PacketCmdS2C state) : base(state) { }
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(); }
public GamePacket(PacketCmdS2C cmd = PacketCmdS2C.PKT_S2C_KeyCheck, int netId = 0) : base(cmd, netId) { buffer.Write(Environment.TickCount); }
public BasePacket(PacketCmdS2C cmd = PacketCmdS2C.PKT_S2C_KeyCheck, int netId = 0) : base(cmd) { buffer.Write(netId); }
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(); }