Changes properties to use automatic property initializers

This commit is contained in:
Kamron Batman 2018-09-14 15:23:29 -07:00
parent f0a48ad431
commit 06fa31a7bf
623 changed files with 13072 additions and 19304 deletions

View file

@ -25,32 +25,22 @@ namespace Server.Network
public class PacketHandler
{
private int m_PacketID;
private int m_Length;
private bool m_Ingame;
private OnPacketReceive m_OnReceive;
private ThrottlePacketCallback m_ThrottleCallback;
public PacketHandler( int packetID, int length, bool ingame, OnPacketReceive onReceive )
{
m_PacketID = packetID;
m_Length = length;
m_Ingame = ingame;
m_OnReceive = onReceive;
PacketID = packetID;
Length = length;
Ingame = ingame;
OnReceive = onReceive;
}
public int PacketID => m_PacketID;
public int PacketID { get; }
public int Length => m_Length;
public int Length { get; }
public OnPacketReceive OnReceive => m_OnReceive;
public OnPacketReceive OnReceive { get; }
public ThrottlePacketCallback ThrottleCallback
{
get => m_ThrottleCallback;
set => m_ThrottleCallback = value;
}
public ThrottlePacketCallback ThrottleCallback { get; set; }
public bool Ingame => m_Ingame;
public bool Ingame { get; }
}
}