still a lot of stuff to fix before everything works as it should. compilation works, linking produces errors. most code cleanups done.
25 lines
618 B
C++
25 lines
618 B
C++
#ifndef _WORLDPACKET_H
|
|
#define _WORLDPACKET_H
|
|
|
|
#include "SysDefs.h"
|
|
#include "Auth/ByteBuffer.h"
|
|
|
|
class WorldPacket : public ByteBuffer
|
|
{
|
|
public:
|
|
WorldPacket() { ByteBuffer(10); _opcode=0; }
|
|
WorldPacket(uint32 r) { reserve(r); _opcode=0; }
|
|
WorldPacket(uint16 opcode, uint32 r) { _opcode=opcode; reserve(r); }
|
|
WorldPacket(uint16 opcode) { _opcode=opcode; reserve(10); }
|
|
inline void SetOpcode(uint16 opcode) { _opcode=opcode; }
|
|
inline uint16 GetOpcode(void) { return _opcode; }
|
|
uint64 GetPackedGuid(void);
|
|
~WorldPacket();
|
|
|
|
private:
|
|
uint16 _opcode;
|
|
|
|
};
|
|
|
|
|
|
#endif |