Commit bbc4388
committed
refactor(network): use getPackedByteCount() in NetPacket.cpp
Refactor NetPacket.cpp to use the new getPackedByteCount() polymorphic
interface instead of manual size calculations.
Changes:
- Replace large switch statement in GetGameCommandSize() with single
call to msg->getPackedByteCount()
- Simplify size calculations throughout by using getPackedByteCount()
- Replace C-style casts with static_cast for type safety
- Remove redundant manual size computations1 parent d0faa20 commit bbc4388
1 file changed
+66
-584
lines changed
0 commit comments