Restructure solution

This commit is contained in:
sardelka9515
2022-10-15 11:51:18 +08:00
parent 42c0ef2159
commit d1b4f23992
130 changed files with 458 additions and 578 deletions

View File

@ -0,0 +1,38 @@

using Lidgren.Network;
namespace RageCoop.Core
{
internal partial class Packets
{
internal class OwnerChanged : Packet
{
public override PacketType Type => PacketType.OwnerChanged;
public int ID { get; set; }
public int NewOwnerID { get; set; }
protected override void Serialize(NetOutgoingMessage m)
{
m.Write(ID);
m.Write(NewOwnerID);
}
public override void Deserialize(NetIncomingMessage m)
{
#region NetIncomingMessageToPacket
ID = m.ReadInt32();
NewOwnerID = m.ReadInt32();
#endregion
}
}
}
}