mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Core/Object: Add changes to ObjectGuid from 6.x
copy and move cctor assignment and assig move operators Ref81abfe93bband89a8a7e1a4
This commit is contained in:
@@ -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); }
|
||||
|
||||
Reference in New Issue
Block a user