Removes default value initializers

This commit is contained in:
Kamron Batman 2018-09-14 15:13:14 -07:00
parent ff26dfa375
commit f0a48ad431
19 changed files with 37 additions and 37 deletions

View file

@ -356,7 +356,7 @@ namespace Server.Engines.ConPVP
} }
private Point3DList m_Path = new Point3DList(); private Point3DList m_Path = new Point3DList();
private int m_PathIdx = 0; private int m_PathIdx;
private void BeginFlight( Point3D dest ) private void BeginFlight( Point3D dest )
{ {
@ -785,7 +785,7 @@ namespace Server.Engines.ConPVP
public class BRGoal : BaseAddon public class BRGoal : BaseAddon
{ {
private bool m_North = false; private bool m_North;
[CommandProperty( AccessLevel.GameMaster )] [CommandProperty( AccessLevel.GameMaster )]
public bool North { get => m_North; public bool North { get => m_North;
@ -1531,7 +1531,7 @@ namespace Server.Engines.ConPVP
private BRBomb m_Bomb; private BRBomb m_Bomb;
private TimerCallback m_UnhideCallback = null; private TimerCallback m_UnhideCallback;
public void ReturnBomb() public void ReturnBomb()
{ {

View file

@ -927,9 +927,9 @@ namespace Server.Engines.ConPVP
} }
private bool m_Capturable = true; private bool m_Capturable = true;
private Timer m_CaptureTimer = null; private Timer m_CaptureTimer;
private Timer m_UncaptureTimer = null; private Timer m_UncaptureTimer;
private int m_CapStage = 0; private int m_CapStage;
public void Dominate( DDWayPoint point, Mobile from, DDTeamInfo team ) public void Dominate( DDWayPoint point, Mobile from, DDTeamInfo team )
{ {

View file

@ -19,7 +19,7 @@ namespace Server.RemoteAdmin
public static StreamWriter Output => m_Output; public static StreamWriter Output => m_Output;
private static bool Initialized = false; private static bool Initialized;
public static void LazyInitialize() public static void LazyInitialize()
{ {
if ( Initialized || !m_Enabled ) return; if ( Initialized || !m_Enabled ) return;

View file

@ -55,7 +55,7 @@ namespace Server.Engines.Reports
private Color _fontColor; private Color _fontColor;
private float _graphHeight; private float _graphHeight;
private float _graphWidth; private float _graphWidth;
private float _maxValue = 0.0f; // = final tick value * tick count private float _maxValue; // = final tick value * tick count
private float _scaleFactor; // = _maxValue / _graphHeight private float _scaleFactor; // = _maxValue / _graphHeight
private float _spaceBtwBars; // For now same as _barWidth private float _spaceBtwBars; // For now same as _barWidth
private float _topBuffer; // Space from top to the top of y axis private float _topBuffer; // Space from top to the top of y axis
@ -69,7 +69,7 @@ namespace Server.Engines.Reports
private bool _displayLegend; private bool _displayLegend;
private float _legendWidth; private float _legendWidth;
private string _longestLabel = string.Empty; // Used to calculate legend width private string _longestLabel = string.Empty; // Used to calculate legend width
private float _maxLabelWidth = 0.0f; private float _maxLabelWidth;
public string FontFamily public string FontFamily
{ {

View file

@ -77,7 +77,7 @@ namespace Server.Misc
public static Type[] LesserArtifacts => m_LesserArtifacts[(int)RewardEra-1]; public static Type[] LesserArtifacts => m_LesserArtifacts[(int)RewardEra-1];
private static Type[][] m_GreaterArtifacts = null; private static Type[][] m_GreaterArtifacts;
public static Type[] GreaterArtifacts public static Type[] GreaterArtifacts
{ {

View file

@ -159,7 +159,7 @@ namespace Server.Items
public static StealableEntry[] Entries => m_Entries; public static StealableEntry[] Entries => m_Entries;
private static Type[] m_TypesOfEntries = null; private static Type[] m_TypesOfEntries;
public static Type[] TypesOfEntires public static Type[] TypesOfEntires
{ {
get get

View file

@ -6,9 +6,9 @@ namespace Server.Items
{ {
private Timer m_Timer; private Timer m_Timer;
private DateTime m_End; private DateTime m_End;
private bool m_BurntOut = false; private bool m_BurntOut;
private bool m_Burning = false; private bool m_Burning;
private bool m_Protected = false; private bool m_Protected;
private TimeSpan m_Duration = TimeSpan.Zero; private TimeSpan m_Duration = TimeSpan.Zero;
public abstract int LitItemID{ get; } public abstract int LitItemID{ get; }

View file

@ -9,7 +9,7 @@ namespace Server.Items
public class Firebomb : Item public class Firebomb : Item
{ {
private Timer m_Timer; private Timer m_Timer;
private int m_Ticks = 0; private int m_Ticks;
private Mobile m_LitBy; private Mobile m_LitBy;
private List<Mobile> m_Users; private List<Mobile> m_Users;

View file

@ -123,8 +123,8 @@ namespace Server.Items
} }
private Timer m_Timer; private Timer m_Timer;
private int m_ItemID = 0; private int m_ItemID;
private int m_Count = 0; private int m_Count;
public void PlayMusic( Mobile m, MusicName music ) public void PlayMusic( Mobile m, MusicName music )
{ {

View file

@ -5,7 +5,7 @@ namespace Server.Misc
{ {
public class AutoRestart : Timer public class AutoRestart : Timer
{ {
public static bool Enabled = false; // is the script enabled? public static bool Enabled; // is the script enabled?
private static TimeSpan RestartTime = TimeSpan.FromHours( 2.0 ); // time of day at which to restart private static TimeSpan RestartTime = TimeSpan.FromHours( 2.0 ); // time of day at which to restart
private static TimeSpan RestartDelay = TimeSpan.Zero; // how long the server should remain active before restart (period of 'server wars') private static TimeSpan RestartDelay = TimeSpan.Zero; // how long the server should remain active before restart (period of 'server wars')

View file

@ -202,17 +202,17 @@ namespace Server.Mobiles
private double m_MinTameSkill; private double m_MinTameSkill;
private bool m_bTamable; private bool m_bTamable;
private bool m_bSummoned = false; private bool m_bSummoned;
private DateTime m_SummonEnd; private DateTime m_SummonEnd;
private int m_iControlSlots = 1; private int m_iControlSlots = 1;
private bool m_bBardProvoked = false; private bool m_bBardProvoked;
private bool m_bBardPacified = false; private bool m_bBardPacified;
private Mobile m_bBardMaster = null; private Mobile m_bBardMaster;
private Mobile m_bBardTarget = null; private Mobile m_bBardTarget;
private DateTime m_timeBardEnd; private DateTime m_timeBardEnd;
private WayPoint m_CurrentWayPoint = null; private WayPoint m_CurrentWayPoint;
private IPoint2D m_TargetLocation = null; private IPoint2D m_TargetLocation;
private Mobile m_SummonMaster; private Mobile m_SummonMaster;
@ -4889,7 +4889,7 @@ namespace Server.Mobiles
private long m_NextHealTime = Core.TickCount; private long m_NextHealTime = Core.TickCount;
private long m_NextHealOwnerTime = Core.TickCount; private long m_NextHealOwnerTime = Core.TickCount;
private Timer m_HealTimer = null; private Timer m_HealTimer;
public bool IsHealing => ( m_HealTimer != null ); public bool IsHealing => ( m_HealTimer != null );

View file

@ -9,7 +9,7 @@ namespace Server.Mobiles
public override string CorpseName => "a plague beast corpse"; public override string CorpseName => "a plague beast corpse";
private int m_DevourTotal; private int m_DevourTotal;
private int m_DevourGoal; private int m_DevourGoal;
private bool m_HasMetalChest = false; private bool m_HasMetalChest;
[CommandProperty( AccessLevel.GameMaster )] [CommandProperty( AccessLevel.GameMaster )]
public int TotalDevoured public int TotalDevoured

View file

@ -47,7 +47,7 @@ namespace Server.Mobiles
private class InternalTimer : Timer private class InternalTimer : Timer
{ {
private Wanderer m_Owner; private Wanderer m_Owner;
private int m_Count = 0; private int m_Count;
public InternalTimer( Wanderer owner ) : base( TimeSpan.FromSeconds( 0.1 ), TimeSpan.FromSeconds( 0.1 ) ) public InternalTimer( Wanderer owner ) : base( TimeSpan.FromSeconds( 0.1 ), TimeSpan.FromSeconds( 0.1 ) )
{ {

View file

@ -94,7 +94,7 @@ namespace Server.Mobiles
private DateTime m_DeleteTime; private DateTime m_DeleteTime;
private Timer m_DeleteTimer; private Timer m_DeleteTimer;
private bool m_DeleteCorpse = false; private bool m_DeleteCorpse;
public bool IsBeingDeleted => ( m_DeleteTimer != null ); public bool IsBeingDeleted => ( m_DeleteTimer != null );

View file

@ -150,7 +150,7 @@ namespace Server
set => _PostHSFormat = value; set => _PostHSFormat = value;
} }
private static bool _PostHSFormat = false; private static bool _PostHSFormat;
private Point2D m_Min, m_Max, m_Center; private Point2D m_Min, m_Max, m_Center;
private int m_Width, m_Height; private int m_Width, m_Height;

View file

@ -95,7 +95,7 @@ namespace Server.Network {
private AsyncState m_AsyncState; private AsyncState m_AsyncState;
private object m_AsyncLock = new object(); private object m_AsyncLock = new object();
private IPacketEncoder m_Encoder = null; private IPacketEncoder m_Encoder;
public IPacketEncoder PacketEncoder { public IPacketEncoder PacketEncoder {
get => m_Encoder; get => m_Encoder;

View file

@ -42,7 +42,7 @@ namespace Server
set => m_HeaderArgs = value; set => m_HeaderArgs = value;
} }
private static bool m_Enabled = false; private static bool m_Enabled;
public static bool Enabled{ get => m_Enabled; public static bool Enabled{ get => m_Enabled;
set => m_Enabled = value; set => m_Enabled = value;

View file

@ -107,7 +107,7 @@ namespace Server {
private byte[] _Working = new byte[BUFFER_SIZE]; private byte[] _Working = new byte[BUFFER_SIZE];
private byte[] _Buffer = new byte[BUFFER_SIZE]; private byte[] _Buffer = new byte[BUFFER_SIZE];
private int _Index = 0; private int _Index;
private object _sync = new object(); private object _sync = new object();
@ -226,7 +226,7 @@ namespace Server {
private byte[] _Working = new byte[BUFFER_SIZE]; private byte[] _Working = new byte[BUFFER_SIZE];
private byte[] _Buffer = new byte[BUFFER_SIZE]; private byte[] _Buffer = new byte[BUFFER_SIZE];
private int _Index = 0; private int _Index;
private object _sync = new object(); private object _sync = new object();
@ -364,7 +364,7 @@ namespace Server {
private byte[] _Working = new byte[BUFFER_SIZE]; private byte[] _Working = new byte[BUFFER_SIZE];
private byte[] _Buffer = new byte[BUFFER_SIZE]; private byte[] _Buffer = new byte[BUFFER_SIZE];
private int _Index = 0; private int _Index;
private object _sync = new object(); private object _sync = new object();
@ -483,7 +483,7 @@ namespace Server {
private byte[] _Working = new byte[BUFFER_SIZE]; private byte[] _Working = new byte[BUFFER_SIZE];
private byte[] _Buffer = new byte[BUFFER_SIZE]; private byte[] _Buffer = new byte[BUFFER_SIZE];
private int _Index = 0; private int _Index;
private object _sync = new object(); private object _sync = new object();

View file

@ -1385,7 +1385,7 @@ namespace Server
public sealed class AsyncWriter : GenericWriter public sealed class AsyncWriter : GenericWriter
{ {
private static int m_ThreadCount = 0; private static int m_ThreadCount;
public static int ThreadCount => m_ThreadCount; public static int ThreadCount => m_ThreadCount;
private int BufferSize; private int BufferSize;