DarkflameServer/dNet/PacketUtils.h
Aaron Kimbrell 6592bbea46
chore: remove all raw packet reading from chat packet handler (#1415)
* chore: default size to 33 on LU(W)Strings since that's the most common lenght
Was doing this on other places, but not the main one

* chore: remove all raw packet reading from chat packet handler

and general chat packet cleanup

* fix team invite/promote/kick

* Address feedback

* fix friends check

* update comments

* Address feedback
Add GM level handeling

* Address feedback
2024-01-14 01:03:01 -06:00

15 lines
291 B
C++

#ifndef PACKETUTILS_H
#define PACKETUTILS_H
#include "MessageIdentifiers.h"
#include "BitStream.h"
#include <string>
enum class eConnectionType : uint16_t;
namespace PacketUtils {
void SavePacket(const std::string& filename, const char* data, size_t length);
};
#endif // PACKETUTILS_H