Core/PacketIO: Updated most packet structures to 9.0.1

This commit is contained in:
Shauren
2020-12-08 18:16:41 +01:00
parent 16b39a448a
commit cab4c87d2d
101 changed files with 3154 additions and 2553 deletions
@@ -481,6 +481,7 @@ void Object::BuildMovementUpdate(ByteBuffer* data, CreateObjectBits flags) const
bool hasAreaTriggerCylinder = areaTriggerTemplate->IsCylinder();
bool hasAreaTriggerSpline = areaTrigger->HasSplines();
bool hasOrbit = areaTrigger->HasOrbit();
bool hasMovementScript = false;
data->WriteBit(hasAbsoluteOrientation);
data->WriteBit(hasDynamicShape);
@@ -503,6 +504,7 @@ void Object::BuildMovementUpdate(ByteBuffer* data, CreateObjectBits flags) const
data->WriteBit(hasAreaTriggerCylinder);
data->WriteBit(hasAreaTriggerSpline);
data->WriteBit(hasOrbit);
data->WriteBit(hasMovementScript);
if (hasUnk3)
data->WriteBit(false);
@@ -581,6 +583,9 @@ void Object::BuildMovementUpdate(ByteBuffer* data, CreateObjectBits flags) const
*data << float(areaTriggerTemplate->CylinderDatas.LocationZOffsetTarget);
}
//if (hasMovementScript)
// *data << *areaTrigger->GetMovementScript(); // AreaTriggerMovementScriptInfo
if (hasOrbit)
*data << *areaTrigger->GetCircularMovementInfo();
}