#include "Common.h"
#include "ByteBuffer.h"
#include <type_traits>
#include <functional>
Go to the source code of this file.
|
enum | TypeID {
TYPEID_OBJECT = 0,
TYPEID_ITEM = 1,
TYPEID_CONTAINER = 2,
TYPEID_UNIT = 3,
TYPEID_PLAYER = 4,
TYPEID_GAMEOBJECT = 5,
TYPEID_DYNAMICOBJECT = 6,
TYPEID_CORPSE = 7,
TYPEID_AREATRIGGER = 8,
TYPEID_SCENEOBJECT = 9,
TYPEID_CONVERSATION = 10
} |
|
enum | TypeMask {
TYPEMASK_OBJECT = 0x0001,
TYPEMASK_ITEM = 0x0002,
TYPEMASK_CONTAINER = 0x0004,
TYPEMASK_UNIT = 0x0008,
TYPEMASK_PLAYER = 0x0010,
TYPEMASK_GAMEOBJECT = 0x0020,
TYPEMASK_DYNAMICOBJECT = 0x0040,
TYPEMASK_CORPSE = 0x0080,
TYPEMASK_AREATRIGGER = 0x0100,
TYPEMASK_SCENEOBJECT = 0x0200,
TYPEMASK_CONVERSATION = 0x0400,
TYPEMASK_SEER = TYPEMASK_PLAYER | TYPEMASK_UNIT | TYPEMASK_DYNAMICOBJECT
} |
|
enum | HighGuid {
HighGuid::Null = 0,
HighGuid::Uniq = 1,
HighGuid::Player = 2,
HighGuid::Item = 3,
HighGuid::WorldTransaction = 4,
HighGuid::StaticDoor = 5,
HighGuid::Transport = 6,
HighGuid::Conversation = 7,
HighGuid::Creature = 8,
HighGuid::Vehicle = 9,
HighGuid::Pet = 10,
HighGuid::GameObject = 11,
HighGuid::DynamicObject = 12,
HighGuid::AreaTrigger = 13,
HighGuid::Corpse = 14,
HighGuid::LootObject = 15,
HighGuid::SceneObject = 16,
HighGuid::Scenario = 17,
HighGuid::AIGroup = 18,
HighGuid::DynamicDoor = 19,
HighGuid::ClientActor = 20,
HighGuid::Vignette = 21,
HighGuid::CallForHelp = 22,
HighGuid::AIResource = 23,
HighGuid::AILock = 24,
HighGuid::AILockTicket = 25,
HighGuid::ChatChannel = 26,
HighGuid::Party = 27,
HighGuid::Guild = 28,
HighGuid::WowAccount = 29,
HighGuid::BNetAccount = 30,
HighGuid::GMTask = 31,
HighGuid::MobileSession = 32,
HighGuid::RaidGroup = 33,
HighGuid::Spell = 34,
HighGuid::Mail = 35,
HighGuid::WebObj = 36,
HighGuid::LFGObject = 37,
HighGuid::LFGList = 38,
HighGuid::UserRouter = 39,
HighGuid::PVPQueueGroup = 40,
HighGuid::UserClient = 41,
HighGuid::PetBattle = 42,
HighGuid::UniqUserClient = 43,
HighGuid::BattlePet = 44,
HighGuid::CommerceObj = 45,
HighGuid::ClientSession = 46,
HighGuid::Count
} |
|
#define GUID_TRAIT_GLOBAL |
( |
|
highguid | ) |
|
Value:
{ \
static
bool const Global =
true; \
};
static bool const MapSpecific
Definition: ObjectGuid.h:118
static bool const RealmSpecific
Definition: ObjectGuid.h:117
Definition: ObjectGuid.h:114
static bool const Global
Definition: ObjectGuid.h:116
#define GUID_TRAIT_MAP_SPECIFIC |
( |
|
highguid | ) |
|
Value:
{ \
static
bool const Global =
false; \
};
static bool const MapSpecific
Definition: ObjectGuid.h:118
static bool const RealmSpecific
Definition: ObjectGuid.h:117
Definition: ObjectGuid.h:114
static bool const Global
Definition: ObjectGuid.h:116
#define GUID_TRAIT_REALM_SPECIFIC |
( |
|
highguid | ) |
|
Value:
{ \
static
bool const Global =
false; \
};
static bool const MapSpecific
Definition: ObjectGuid.h:118
static bool const RealmSpecific
Definition: ObjectGuid.h:117
Definition: ObjectGuid.h:114
static bool const Global
Definition: ObjectGuid.h:116
#define NUM_CLIENT_OBJECT_TYPES 11 |
#define PACKED_GUID_MIN_BUFFER_SIZE 18 |
Enumerator |
---|
Null |
|
Uniq |
|
Player |
|
Item |
|
WorldTransaction |
|
StaticDoor |
|
Transport |
|
Conversation |
|
Creature |
|
Vehicle |
|
Pet |
|
GameObject |
|
DynamicObject |
|
AreaTrigger |
|
Corpse |
|
LootObject |
|
SceneObject |
|
Scenario |
|
AIGroup |
|
DynamicDoor |
|
ClientActor |
|
Vignette |
|
CallForHelp |
|
AIResource |
|
AILock |
|
AILockTicket |
|
ChatChannel |
|
Party |
|
Guild |
|
WowAccount |
|
BNetAccount |
|
GMTask |
|
MobileSession |
|
RaidGroup |
|
Spell |
|
Mail |
|
WebObj |
|
LFGObject |
|
LFGList |
|
UserRouter |
|
PVPQueueGroup |
|
UserClient |
|
PetBattle |
|
UniqUserClient |
|
BattlePet |
|
CommerceObj |
|
ClientSession |
|
Count |
|
Definition: Transport.h:28
Definition: Creature.h:467
Definition: DynamicObject.h:35
size_t Count(ContainerMapList< SPECIFIC_TYPE > const &elements, SPECIFIC_TYPE *)
Definition: TypeContainerFunctions.h:132
Definition: GameObject.h:880
Definition: AreaTrigger.h:26
Enumerator |
---|
TYPEID_OBJECT |
|
TYPEID_ITEM |
|
TYPEID_CONTAINER |
|
TYPEID_UNIT |
|
TYPEID_PLAYER |
|
TYPEID_GAMEOBJECT |
|
TYPEID_DYNAMICOBJECT |
|
TYPEID_CORPSE |
|
TYPEID_AREATRIGGER |
|
TYPEID_SCENEOBJECT |
|
TYPEID_CONVERSATION |
|
Definition: ObjectGuid.h:31
Definition: ObjectGuid.h:36
Definition: ObjectGuid.h:32
Definition: ObjectGuid.h:37
Definition: ObjectGuid.h:39
Definition: ObjectGuid.h:34
Definition: ObjectGuid.h:29
Definition: ObjectGuid.h:38
Definition: ObjectGuid.h:33
Definition: ObjectGuid.h:35
Definition: ObjectGuid.h:30
Enumerator |
---|
TYPEMASK_OBJECT |
|
TYPEMASK_ITEM |
|
TYPEMASK_CONTAINER |
|
TYPEMASK_UNIT |
|
TYPEMASK_PLAYER |
|
TYPEMASK_GAMEOBJECT |
|
TYPEMASK_DYNAMICOBJECT |
|
TYPEMASK_CORPSE |
|
TYPEMASK_AREATRIGGER |
|
TYPEMASK_SCENEOBJECT |
|
TYPEMASK_CONVERSATION |
|
TYPEMASK_SEER |
|
Definition: ObjectGuid.h:47
Definition: ObjectGuid.h:50
Definition: ObjectGuid.h:46
Definition: ObjectGuid.h:56
Definition: ObjectGuid.h:49
Definition: ObjectGuid.h:51
Definition: ObjectGuid.h:57
Definition: ObjectGuid.h:54
Definition: ObjectGuid.h:48
Definition: ObjectGuid.h:55
Definition: ObjectGuid.h:53
Definition: ObjectGuid.h:52
151 std::size_t pos = buf.
wpos();
152 buf <<
uint8(lowMask);
153 buf <<
uint8(highMask);
157 buf.
append(packed, packedSize);
159 buf.
append(packed, packedSize);
161 buf.
put(pos, lowMask);
162 buf.
put(pos + 1, highMask);
void FlushBits()
Definition: ByteBuffer.h:150
size_t wpos() const
Definition: ByteBuffer.h:454
static size_t PackUInt64(uint64 value, uint8 *mask, uint8 *result)
Definition: ByteBuffer.h:660
void put(size_t pos, T value)
Definition: ByteBuffer.h:227
void append(T value)
Definition: ByteBuffer.h:143
uint8_t uint8
Definition: g3dmath.h:164
uint8_t uint8
Definition: Define.h:152
178 buf.
append(guid._packedGuid);
void append(T value)
Definition: ByteBuffer.h:143
184 std::ostringstream tmp;
185 tmp <<
std::hex << std::setw(16) << std::setfill(
'0') << guid._high << std::setw(16) << std::setfill(
'0') << guid._low;
IntFormatSpec< int, TypeSpec<'x'> > hex(int value)
169 uint8 lowMask, highMask;
170 buf >> lowMask >> highMask;
void ReadPackedUInt64(uint64 &guid)
Definition: ByteBuffer.h:511
uint64 _low
Definition: ObjectGuid.h:325
uint8_t uint8
Definition: Define.h:152
uint64 _high
Definition: ObjectGuid.h:326