mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 14:46:24 +00:00
feat(Core/Misc): implement ObjectGuid class (port from TC) (#4885)
This commit is contained in:
@@ -191,7 +191,7 @@ namespace Movement
|
||||
#define CHECK(exp) \
|
||||
if (!(exp))\
|
||||
{\
|
||||
LOG_ERROR("server", "MoveSplineInitArgs::Validate: expression '%s' failed for GUID: %u Entry: %u", #exp, unit->GetTypeId() == TYPEID_PLAYER ? unit->GetGUIDLow() : unit->ToCreature()->GetDBTableGUIDLow(), unit->GetEntry());\
|
||||
LOG_ERROR("server", "MoveSplineInitArgs::Validate: expression '%s' failed for GUID: %u Entry: %u", #exp, unit->GetTypeId() == TYPEID_PLAYER ? unit->GetGUID().GetCounter() : unit->ToCreature()->GetSpawnId(), unit->GetEntry());\
|
||||
return false;\
|
||||
}
|
||||
CHECK(path.size() > 1);
|
||||
|
||||
@@ -119,11 +119,11 @@ namespace Movement
|
||||
move_spline.Initialize(args);
|
||||
|
||||
WorldPacket data(SMSG_MONSTER_MOVE, 64);
|
||||
data.append(unit->GetPackGUID());
|
||||
data << unit->GetPackGUID();
|
||||
if (transport)
|
||||
{
|
||||
data.SetOpcode(SMSG_MONSTER_MOVE_TRANSPORT);
|
||||
data.appendPackGUID(unit->GetTransGUID());
|
||||
data << unit->GetTransGUID().WriteAsPacked();
|
||||
data << int8(unit->GetTransSeat());
|
||||
}
|
||||
|
||||
@@ -170,11 +170,11 @@ namespace Movement
|
||||
move_spline.Initialize(args);
|
||||
|
||||
WorldPacket data(SMSG_MONSTER_MOVE, 64);
|
||||
data.append(unit->GetPackGUID());
|
||||
data << unit->GetPackGUID();
|
||||
if (transport)
|
||||
{
|
||||
data.SetOpcode(SMSG_MONSTER_MOVE_TRANSPORT);
|
||||
data.appendPackGUID(unit->GetTransGUID());
|
||||
data << unit->GetTransGUID().WriteAsPacked();
|
||||
data << int8(unit->GetTransSeat());
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ namespace Movement
|
||||
void MoveSplineInit::SetFacing(const Unit* target)
|
||||
{
|
||||
args.flags.EnableFacingTarget();
|
||||
args.facing.target = target->GetGUID();
|
||||
args.facing.target = target->GetGUID().GetRawValue();
|
||||
}
|
||||
|
||||
void MoveSplineInit::SetFacing(float angle)
|
||||
|
||||
@@ -22,8 +22,8 @@ namespace Movement
|
||||
{
|
||||
float x, y, z;
|
||||
} f;
|
||||
uint64 target;
|
||||
float angle;
|
||||
uint64 target;
|
||||
float angle;
|
||||
|
||||
FacingInfo(float o) : angle(o) {}
|
||||
FacingInfo(uint64 t) : target(t) {}
|
||||
|
||||
Reference in New Issue
Block a user