diff options
author | DDuarte <dnpd.dd@gmail.com> | 2015-08-15 18:09:12 +0100 |
---|---|---|
committer | DDuarte <dnpd.dd@gmail.com> | 2015-08-15 18:09:12 +0100 |
commit | e1b534e40f4e7a5fc94298c09d4d72bf77adb350 (patch) | |
tree | a8a5fee6507a831c17b7353566c8afd913c491c8 /src | |
parent | fa6a83b27089cfc5ef7dd8efff4a565cf78caad4 (diff) |
Core/Object: Add changes to ObjectGuid from 6.x
copy and move cctor
assignment and assig move operators
Ref 81abfe93bb96e5a769dc855f06fdc7578b352b39 and 89a8a7e1a4bdc22d2da17b1a3bf34fd52bf87e85
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Entities/Object/ObjectGuid.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/game/Entities/Object/ObjectGuid.h b/src/server/game/Entities/Object/ObjectGuid.h index 45881ddab6d..b541328c467 100644 --- a/src/server/game/Entities/Object/ObjectGuid.h +++ b/src/server/game/Entities/Object/ObjectGuid.h @@ -89,6 +89,11 @@ class ObjectGuid explicit ObjectGuid(uint64 guid) : _guid(guid) { } ObjectGuid(HighGuid hi, uint32 entry, LowType counter) : _guid(counter ? uint64(counter) | (uint64(entry) << 24) | (uint64(hi) << 48) : 0) { } ObjectGuid(HighGuid hi, LowType counter) : _guid(counter ? uint64(counter) | (uint64(hi) << 48) : 0) { } + ObjectGuid(ObjectGuid const& r) : _guid(r._guid) { } + ObjectGuid(ObjectGuid&& r) : _guid(r._guid) { } + + ObjectGuid& operator=(ObjectGuid const& r) { _guid = r._guid; return *this; } + ObjectGuid& operator=(ObjectGuid&& r) { _guid = r._guid; return *this; } operator uint64() const { return _guid; } PackedGuidReader ReadAsPacked() { return PackedGuidReader(*this); } |