mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* ACE.DatLoader renames PositionNew to Position * Remove comment * ACE.DatLoader DatDatabase I prefer this type instead. * Unused references removed * namespace fixes * ACE prj to ACE.Server rename * Appveyor fix I think * Changelog * appveyor fixes * Update AccountTests.cs * Update ConstructedStatementTests.cs * Update WeenieSearchTests.cs * ACE.Tests -> ACE.Server.Tests * Appvyeor
27 lines
604 B
C#
27 lines
604 B
C#
using System.IO;
|
|
|
|
namespace ACE.Server.Network
|
|
{
|
|
public class ClientMessage
|
|
{
|
|
public BinaryReader Payload { get; }
|
|
|
|
public MemoryStream Data { get; }
|
|
|
|
public uint Opcode { get; }
|
|
|
|
public ClientMessage(MemoryStream stream)
|
|
{
|
|
Data = stream;
|
|
Payload = new BinaryReader(Data);
|
|
Opcode = Payload.ReadUInt32();
|
|
}
|
|
|
|
public ClientMessage(byte[] data)
|
|
{
|
|
Data = new MemoryStream(data);
|
|
Payload = new BinaryReader(Data);
|
|
Opcode = Payload.ReadUInt32();
|
|
}
|
|
}
|
|
}
|