To avoid ill-formed packets and stay consistent. This class would prepare the headers and the content with the constructor, instead of the programmer having to prepare the packets like so :
ECCPacket set;
set << Networking::StoC::InventoryUpdate;
set << InventoryUpdates::StoC::SetStack;
set << 0; //We set the first slot of the inventory (hand)
set << stack.getInt();
To avoid ill-formed packets and stay consistent. This class would prepare the headers and the content with the constructor, instead of the programmer having to prepare the packets like so :