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

@ -10,33 +10,17 @@ namespace Server
// Should we use the new method of speeds?
private static bool Enabled = true;
private double m_ActiveSpeed;
private double m_PassiveSpeed;
private Type[] m_Types;
public double ActiveSpeed { get; set; }
public double ActiveSpeed
{
get => m_ActiveSpeed;
set => m_ActiveSpeed = value;
}
public double PassiveSpeed { get; set; }
public double PassiveSpeed
{
get => m_PassiveSpeed;
set => m_PassiveSpeed = value;
}
public Type[] Types
{
get => m_Types;
set => m_Types = value;
}
public Type[] Types { get; set; }
public SpeedInfo( double activeSpeed, double passiveSpeed, Type[] types )
{
m_ActiveSpeed = activeSpeed;
m_PassiveSpeed = passiveSpeed;
m_Types = types;
ActiveSpeed = activeSpeed;
PassiveSpeed = passiveSpeed;
Types = types;
}
public static bool Contains( object obj )