Core: Update to 10.1.5
Port From (https://github.com/TrinityCore/TrinityCore/commit/0cea730fa23473a85c47451c3bd13df816f2b6e4)
This commit is contained in:
@@ -10,10 +10,25 @@ namespace Game.Networking.Packets
|
||||
{
|
||||
class ScenarioState : ServerPacket
|
||||
{
|
||||
public ObjectGuid ScenarioGUID;
|
||||
public int ScenarioID;
|
||||
public int CurrentStep = -1;
|
||||
public uint DifficultyID;
|
||||
public uint WaveCurrent;
|
||||
public uint WaveMax;
|
||||
public uint TimerDuration;
|
||||
public List<CriteriaProgressPkt> CriteriaProgress = new();
|
||||
public List<BonusObjectiveData> BonusObjectives = new();
|
||||
public List<uint> PickedSteps = new();
|
||||
public List<ScenarioSpellUpdate> Spells = new();
|
||||
public ObjectGuid PlayerGUID;
|
||||
public bool ScenarioComplete;
|
||||
|
||||
public ScenarioState() : base(ServerOpcodes.ScenarioState, ConnectionType.Instance) { }
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WritePackedGuid(ScenarioGUID);
|
||||
_worldPacket.WriteInt32(ScenarioID);
|
||||
_worldPacket.WriteInt32(CurrentStep);
|
||||
_worldPacket.WriteUInt32(DifficultyID);
|
||||
@@ -41,35 +56,24 @@ namespace Game.Networking.Packets
|
||||
foreach (ScenarioSpellUpdate spell in Spells)
|
||||
spell.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public int ScenarioID;
|
||||
public int CurrentStep = -1;
|
||||
public uint DifficultyID;
|
||||
public uint WaveCurrent;
|
||||
public uint WaveMax;
|
||||
public uint TimerDuration;
|
||||
public List<CriteriaProgressPkt> CriteriaProgress = new();
|
||||
public List<BonusObjectiveData> BonusObjectives = new();
|
||||
public List<uint> PickedSteps = new();
|
||||
public List<ScenarioSpellUpdate> Spells = new();
|
||||
public ObjectGuid PlayerGUID;
|
||||
public bool ScenarioComplete = false;
|
||||
}
|
||||
|
||||
class ScenarioProgressUpdate : ServerPacket
|
||||
{
|
||||
public CriteriaProgressPkt CriteriaProgress;
|
||||
|
||||
public ScenarioProgressUpdate() : base(ServerOpcodes.ScenarioProgressUpdate, ConnectionType.Instance) { }
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
CriteriaProgress.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public CriteriaProgressPkt CriteriaProgress;
|
||||
}
|
||||
|
||||
class ScenarioCompleted : ServerPacket
|
||||
{
|
||||
public uint ScenarioID;
|
||||
|
||||
public ScenarioCompleted(uint scenarioId) : base(ServerOpcodes.ScenarioCompleted, ConnectionType.Instance)
|
||||
{
|
||||
ScenarioID = scenarioId;
|
||||
@@ -79,29 +83,31 @@ namespace Game.Networking.Packets
|
||||
{
|
||||
_worldPacket.WriteUInt32(ScenarioID);
|
||||
}
|
||||
|
||||
public uint ScenarioID;
|
||||
}
|
||||
|
||||
class ScenarioVacate : ServerPacket
|
||||
{
|
||||
public ObjectGuid ScenarioGUID;
|
||||
public int ScenarioID;
|
||||
public int Unk1;
|
||||
public byte Unk2;
|
||||
|
||||
public ScenarioVacate() : base(ServerOpcodes.ScenarioVacate, ConnectionType.Instance) { }
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WritePackedGuid(ScenarioGUID);
|
||||
_worldPacket.WriteInt32(ScenarioID);
|
||||
_worldPacket.WriteInt32(Unk1);
|
||||
_worldPacket.WriteBits(Unk2, 2);
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
public int ScenarioID;
|
||||
public int Unk1;
|
||||
public byte Unk2;
|
||||
}
|
||||
|
||||
class QueryScenarioPOI : ClientPacket
|
||||
{
|
||||
public Array<int> MissingScenarioPOIs = new(50);
|
||||
|
||||
public QueryScenarioPOI(WorldPacket packet) : base(packet) { }
|
||||
|
||||
public override void Read()
|
||||
@@ -110,12 +116,12 @@ namespace Game.Networking.Packets
|
||||
for (var i = 0; i < count; ++i)
|
||||
MissingScenarioPOIs[i] = _worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public Array<int> MissingScenarioPOIs = new(50);
|
||||
}
|
||||
|
||||
class ScenarioPOIs : ServerPacket
|
||||
{
|
||||
public List<ScenarioPOIData> ScenarioPOIDataStats = new();
|
||||
|
||||
public ScenarioPOIs() : base(ServerOpcodes.ScenarioPois) { }
|
||||
|
||||
public override void Write()
|
||||
@@ -148,34 +154,32 @@ namespace Game.Networking.Packets
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public List<ScenarioPOIData> ScenarioPOIDataStats = new();
|
||||
}
|
||||
|
||||
struct BonusObjectiveData
|
||||
{
|
||||
public int BonusObjectiveID;
|
||||
public bool ObjectiveComplete;
|
||||
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
data.WriteInt32(BonusObjectiveID);
|
||||
data.WriteBit(ObjectiveComplete);
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public int BonusObjectiveID;
|
||||
public bool ObjectiveComplete;
|
||||
}
|
||||
|
||||
class ScenarioSpellUpdate
|
||||
{
|
||||
public uint SpellID;
|
||||
public bool Usable = true;
|
||||
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
data.WriteUInt32(SpellID);
|
||||
data.WriteBit(Usable);
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public uint SpellID;
|
||||
public bool Usable = true;
|
||||
}
|
||||
|
||||
struct ScenarioPOIData
|
||||
|
||||
Reference in New Issue
Block a user