55 lines
1.6 KiB
C#
55 lines
1.6 KiB
C#
// Copyright (c) CypherCore <http://github.com/CypherCore> All rights reserved.
|
|
// Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE file in the project root for full license information.
|
|
|
|
using Framework.Constants;
|
|
using Framework.IO;
|
|
|
|
namespace Game.Networking.Packets
|
|
{
|
|
public enum WardenOpcodes
|
|
{
|
|
// Client.Server
|
|
CmsgModuleMissing = 0,
|
|
CmsgModuleOk = 1,
|
|
CmsgCheatChecksResult = 2,
|
|
CmsgMemChecksResult = 3, // Only Sent If Mem_Check Bytes Doesn'T Match
|
|
CmsgHashResult = 4,
|
|
CmsgModuleFailed = 5, // This Is Sent When Client Failed To Load Uploaded Module Due To Cache Fail
|
|
|
|
// Server.Client
|
|
SmsgModuleUse = 0,
|
|
SmsgModuleCache = 1,
|
|
SmsgCheatChecksRequest = 2,
|
|
SmsgModuleInitialize = 3,
|
|
SmsgMemChecksRequest = 4, // Byte Len; While (!Eof) { Byte Unk(1); Byte Index(++); String Module(Can Be 0); Int Offset; Byte Len; Byte[] Bytes_To_Compare[Len]; }
|
|
SmsgHashRequest = 5
|
|
}
|
|
|
|
class WardenData : ClientPacket
|
|
{
|
|
public WardenData(WorldPacket packet) : base(packet) { }
|
|
|
|
public override void Read()
|
|
{
|
|
uint size = _worldPacket.ReadUInt32();
|
|
|
|
if (size != 0)
|
|
Data = new ByteBuffer(_worldPacket.ReadBytes(size));
|
|
}
|
|
|
|
public ByteBuffer Data;
|
|
}
|
|
|
|
class Warden3DataServer : ServerPacket
|
|
{
|
|
public Warden3DataServer() : base(ServerOpcodes.Warden3Data) { }
|
|
|
|
public override void Write()
|
|
{
|
|
_worldPacket.WriteBytes(Data);
|
|
}
|
|
|
|
public ByteBuffer Data;
|
|
}
|
|
}
|