Something like that. I'm still removing cPackets from all over the place. so to recap:
Done:
- utility classes - cByteBuffer
- packet handling doesn't take cPackets, but their raw data (cClientHandle::HandleXYZ)
Doing:
- sending packets from various classes doesn't use cPackets, but their raw data (cClientHandle::SendXYZ, cWorld::BroadcastXYZ et al)
To do:
- move packet handling and packet sending from cClientHandle to a separate cProtocol class
- remove cPacket classes altogether, pasting their code directly into cProtocol
- add a cProtocolDetector that can detect 1.2.5 or 1.3.1 protocols
- add a cProtocol descendant for 1.3.1
Done:
- utility classes - cByteBuffer
- packet handling doesn't take cPackets, but their raw data (cClientHandle::HandleXYZ)
Doing:
- sending packets from various classes doesn't use cPackets, but their raw data (cClientHandle::SendXYZ, cWorld::BroadcastXYZ et al)
To do:
- move packet handling and packet sending from cClientHandle to a separate cProtocol class
- remove cPacket classes altogether, pasting their code directly into cProtocol
- add a cProtocolDetector that can detect 1.2.5 or 1.3.1 protocols
- add a cProtocol descendant for 1.3.1