Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "Packet.h"
- #include <string>
- #include <vector>
- class TextPacket : public Packet {
- public:
- enum class TextPacketType : unsigned char {
- RAW, CHAT, TRANSLATION, POPUP, JUKEBOX_POPUP, TIP, SYSTEM, WHISPER, ANNOUNCEMENT
- };
- TextPacketType type;
- std::string name, message;
- std::vector<std::string> vec;
- bool translated;
- std::string xuid, unk48;
- static TextPacket createRaw(std::string const &);
- TextPacket(unsigned char playerSubIndex) : Packet(playerSubIndex) {}
- virtual void *getId() const;
- virtual void *getName() const;
- virtual void *write(BinaryStream &) const;
- virtual void *read(BinaryStream &);
- virtual void *handle(NetworkIdentifier const &, NetEventCallback &) const;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement