public void ReadPacket(PacketReader reader) { MessageType = reader.ReadInt32(); Unknown1 = reader.ReadInt32(); ServerTick = reader.ReadUInt32(); Unknown2 = (byte)reader.ReadByte(); switch (MessageType) // not sure about this { case 1: break; case 2: UserID = reader.ReadInt64(); UserID2 = reader.ReadInt64(); Username = reader.ReadString(); Unknown3 = reader.ReadInt32(); Unknown4 = reader.ReadInt32(); MemberStatus = (MemberStatusId)reader.ReadInt32(); MessageTime = TimeSpan.FromSeconds(reader.ReadInt32()); Message = reader.ReadString(); break; default: break; } }
public void ReadPacket(PacketReader reader) { MessageType = reader.ReadInt32(); Unknown1 = reader.ReadInt32(); ServerTick = reader.ReadUInt32(); Unknown2 = (byte)reader.ReadByte(); switch (MessageType) // not sure about this { case 1: break; case 2: UserID = reader.ReadInt64(); UserID2 = reader.ReadInt64(); Username = reader.ReadString(); Unknown3 = reader.ReadInt32(); Unknown4 = reader.ReadInt32(); MemberStatus = (MemberStatusId)reader.ReadInt32(); MessageTime = TimeSpan.FromSeconds(reader.ReadInt32()); Message = reader.ReadString(); break; default: break; } }