Files
RAGECOOP-V/RageCoop.Core/Packets/SyncEvents/PedKilled.cs

40 lines
641 B
C#
Raw Normal View History

2022-09-08 12:41:56 -07:00

2022-05-22 15:55:26 +08:00
using Lidgren.Network;
namespace RageCoop.Core
{
2022-07-01 14:39:43 +08:00
internal partial class Packets
2022-05-22 15:55:26 +08:00
{
2022-07-01 14:39:43 +08:00
internal class PedKilled : Packet
2022-05-22 15:55:26 +08:00
{
2022-09-08 12:41:56 -07:00
public override PacketType Type => PacketType.PedKilled;
2022-05-22 15:55:26 +08:00
public int VictimID { get; set; }
protected override void Serialize(NetOutgoingMessage m)
2022-05-22 15:55:26 +08:00
{
m.Write(VictimID);
2022-05-22 15:55:26 +08:00
}
public override void Deserialize(NetIncomingMessage m)
2022-05-22 15:55:26 +08:00
{
#region NetIncomingMessageToPacket
2022-09-08 12:41:56 -07:00
VictimID = m.ReadInt32();
2022-05-22 15:55:26 +08:00
#endregion
}
}
}
}