Core/Object: Add changes to ObjectGuid from 6.x

copy and move cctor
assignment and assig move operators

Ref 81abfe93bb and 89a8a7e1a4
This commit is contained in:
DDuarte
2015-08-15 18:09:12 +01:00
parent fa6a83b270
commit e1b534e40f

View File

@@ -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); }