* few script changes; added new func "ScriptExists". * started an extractor tool; using StormLib (thx to Ladislaw Zezula!). for now convert some dbc files to scp. more stuff will follow. * some changes to the realm/world connect code; still needs a rewrite. * support conf parameters for GUI (check conf/gui.conf/gui.conf[.default] )
24 lines
592 B
C++
24 lines
592 B
C++
#ifndef _WORLDPACKET_H
|
|
#define _WORLDPACKET_H
|
|
|
|
#include "SysDefs.h"
|
|
#include "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);
|
|
|
|
private:
|
|
uint16 _opcode;
|
|
|
|
};
|
|
|
|
|
|
#endif |