renamed variabels
This commit is contained in:
@@ -17,7 +17,7 @@ public:
|
|||||||
Packet(MessageType type);
|
Packet(MessageType type);
|
||||||
~Packet();
|
~Packet();
|
||||||
void Init(MessageType type, unsigned int& packetID,
|
void Init(MessageType type, unsigned int& packetID,
|
||||||
int sequenceNumber, int totalAmountOfPackets,
|
int groupIndex, int groupSize,
|
||||||
int packetGroup);
|
int packetGroup);
|
||||||
|
|
||||||
// Add primitive types like int, float, char...
|
// Add primitive types like int, float, char...
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ Packet::~Packet()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Packet::Init(MessageType type, unsigned int & packetID,
|
void Packet::Init(MessageType type, unsigned int & packetID,
|
||||||
int groupIndex, int packetGroupSize, int packetGroup)
|
int groupIndex, int groupSize, int group)
|
||||||
{
|
{
|
||||||
m_ReturnDataOffset = 0;
|
m_ReturnDataOffset = 0;
|
||||||
m_Offset = 0;
|
m_Offset = 0;
|
||||||
@@ -46,13 +46,13 @@ void Packet::Init(MessageType type, unsigned int & packetID,
|
|||||||
WritePrimitive<int>(0);
|
WritePrimitive<int>(0);
|
||||||
// packetGroup is the gorup the packet is in
|
// packetGroup is the gorup the packet is in
|
||||||
groupOffset = m_Offset;
|
groupOffset = m_Offset;
|
||||||
WritePrimitive<int>(packetGroup);
|
WritePrimitive<int>(group);
|
||||||
// What index the packet has in the packetGroup
|
// What index the packet has in the packetGroup
|
||||||
groupIndexOffset = m_Offset;
|
groupIndexOffset = m_Offset;
|
||||||
WritePrimitive(groupIndex);
|
WritePrimitive(groupIndex);
|
||||||
// The total amount of packets in a packetGroup
|
// The total amount of packets in a packetGroup
|
||||||
groupSizeOffset = m_Offset;
|
groupSizeOffset = m_Offset;
|
||||||
WritePrimitive(packetGroupSize);
|
WritePrimitive(groupSize);
|
||||||
// Add message type
|
// Add message type
|
||||||
int messageType = static_cast<int>(type);
|
int messageType = static_cast<int>(type);
|
||||||
messageTypeOffset = m_Offset;
|
messageTypeOffset = m_Offset;
|
||||||
|
|||||||
Reference in New Issue
Block a user