refactor: add Packet::skipAll() to replace 186 setReadPos(getSize()) calls

Add skipAll() convenience method and replace 186 instances of the
verbose 'discard remaining packet data' idiom across game_handler
and world_packets.
This commit is contained in:
Kelsi 2026-03-25 14:27:26 -07:00
parent 4309c8c69b
commit 0d9aac2656
3 changed files with 187 additions and 186 deletions

View file

@ -46,6 +46,7 @@ public:
return getRemainingSize() >= guidBytes;
}
void setReadPos(size_t pos) { readPos = pos; }
void skipAll() { readPos = data.size(); }
private:
uint16_t opcode = 0;