Core/Instances: Instance lock rewrite (WIP)
Port From (https://github.com/TrinityCore/TrinityCore/commit/17665c929c3a9fb7fe75dd680648129bc1c1f874)
This commit is contained in:
@@ -852,13 +852,13 @@ namespace Game.Networking.Packets
|
||||
data.WriteUInt64(InstanceID);
|
||||
data.WriteInt32(MapID);
|
||||
data.WriteUInt32(DifficultyID);
|
||||
data.WriteUInt32((uint)ExpireTime);
|
||||
data.WriteInt32(ExpireTime);
|
||||
}
|
||||
|
||||
public ulong InstanceID;
|
||||
public int MapID;
|
||||
public uint DifficultyID;
|
||||
public long ExpireTime;
|
||||
public int ExpireTime;
|
||||
}
|
||||
|
||||
struct CalendarSendCalendarEventInfo
|
||||
|
||||
@@ -41,11 +41,11 @@ namespace Game.Networking.Packets
|
||||
{
|
||||
_worldPacket.WriteInt32(LockList.Count);
|
||||
|
||||
foreach (InstanceLock lockInfos in LockList)
|
||||
foreach (InstanceLockPkt lockInfos in LockList)
|
||||
lockInfos.Write(_worldPacket);
|
||||
}
|
||||
|
||||
public List<InstanceLock> LockList = new();
|
||||
public List<InstanceLockPkt> LockList = new();
|
||||
}
|
||||
|
||||
class ResetInstances : ClientPacket
|
||||
@@ -270,7 +270,7 @@ namespace Game.Networking.Packets
|
||||
}
|
||||
|
||||
//Structs
|
||||
public struct InstanceLock
|
||||
public struct InstanceLockPkt
|
||||
{
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user