Removes default value initializers
This commit is contained in:
parent
ff26dfa375
commit
f0a48ad431
19 changed files with 37 additions and 37 deletions
|
|
@ -356,7 +356,7 @@ namespace Server.Engines.ConPVP
|
|||
}
|
||||
|
||||
private Point3DList m_Path = new Point3DList();
|
||||
private int m_PathIdx = 0;
|
||||
private int m_PathIdx;
|
||||
|
||||
private void BeginFlight( Point3D dest )
|
||||
{
|
||||
|
|
@ -785,7 +785,7 @@ namespace Server.Engines.ConPVP
|
|||
|
||||
public class BRGoal : BaseAddon
|
||||
{
|
||||
private bool m_North = false;
|
||||
private bool m_North;
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public bool North { get => m_North;
|
||||
|
|
@ -1531,7 +1531,7 @@ namespace Server.Engines.ConPVP
|
|||
|
||||
private BRBomb m_Bomb;
|
||||
|
||||
private TimerCallback m_UnhideCallback = null;
|
||||
private TimerCallback m_UnhideCallback;
|
||||
|
||||
public void ReturnBomb()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -927,9 +927,9 @@ namespace Server.Engines.ConPVP
|
|||
}
|
||||
|
||||
private bool m_Capturable = true;
|
||||
private Timer m_CaptureTimer = null;
|
||||
private Timer m_UncaptureTimer = null;
|
||||
private int m_CapStage = 0;
|
||||
private Timer m_CaptureTimer;
|
||||
private Timer m_UncaptureTimer;
|
||||
private int m_CapStage;
|
||||
|
||||
public void Dominate( DDWayPoint point, Mobile from, DDTeamInfo team )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ namespace Server.RemoteAdmin
|
|||
|
||||
public static StreamWriter Output => m_Output;
|
||||
|
||||
private static bool Initialized = false;
|
||||
private static bool Initialized;
|
||||
public static void LazyInitialize()
|
||||
{
|
||||
if ( Initialized || !m_Enabled ) return;
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ namespace Server.Engines.Reports
|
|||
private Color _fontColor;
|
||||
private float _graphHeight;
|
||||
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 _spaceBtwBars; // For now same as _barWidth
|
||||
private float _topBuffer; // Space from top to the top of y axis
|
||||
|
|
@ -69,7 +69,7 @@ namespace Server.Engines.Reports
|
|||
private bool _displayLegend;
|
||||
private float _legendWidth;
|
||||
private string _longestLabel = string.Empty; // Used to calculate legend width
|
||||
private float _maxLabelWidth = 0.0f;
|
||||
private float _maxLabelWidth;
|
||||
|
||||
public string FontFamily
|
||||
{
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ namespace Server.Misc
|
|||
|
||||
public static Type[] LesserArtifacts => m_LesserArtifacts[(int)RewardEra-1];
|
||||
|
||||
private static Type[][] m_GreaterArtifacts = null;
|
||||
private static Type[][] m_GreaterArtifacts;
|
||||
|
||||
public static Type[] GreaterArtifacts
|
||||
{
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ namespace Server.Items
|
|||
|
||||
public static StealableEntry[] Entries => m_Entries;
|
||||
|
||||
private static Type[] m_TypesOfEntries = null;
|
||||
private static Type[] m_TypesOfEntries;
|
||||
public static Type[] TypesOfEntires
|
||||
{
|
||||
get
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ namespace Server.Items
|
|||
{
|
||||
private Timer m_Timer;
|
||||
private DateTime m_End;
|
||||
private bool m_BurntOut = false;
|
||||
private bool m_Burning = false;
|
||||
private bool m_Protected = false;
|
||||
private bool m_BurntOut;
|
||||
private bool m_Burning;
|
||||
private bool m_Protected;
|
||||
private TimeSpan m_Duration = TimeSpan.Zero;
|
||||
|
||||
public abstract int LitItemID{ get; }
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ namespace Server.Items
|
|||
public class Firebomb : Item
|
||||
{
|
||||
private Timer m_Timer;
|
||||
private int m_Ticks = 0;
|
||||
private int m_Ticks;
|
||||
private Mobile m_LitBy;
|
||||
private List<Mobile> m_Users;
|
||||
|
||||
|
|
|
|||
|
|
@ -123,8 +123,8 @@ namespace Server.Items
|
|||
}
|
||||
|
||||
private Timer m_Timer;
|
||||
private int m_ItemID = 0;
|
||||
private int m_Count = 0;
|
||||
private int m_ItemID;
|
||||
private int m_Count;
|
||||
|
||||
public void PlayMusic( Mobile m, MusicName music )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace Server.Misc
|
|||
{
|
||||
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 RestartDelay = TimeSpan.Zero; // how long the server should remain active before restart (period of 'server wars')
|
||||
|
|
|
|||
|
|
@ -202,17 +202,17 @@ namespace Server.Mobiles
|
|||
private double m_MinTameSkill;
|
||||
private bool m_bTamable;
|
||||
|
||||
private bool m_bSummoned = false;
|
||||
private bool m_bSummoned;
|
||||
private DateTime m_SummonEnd;
|
||||
private int m_iControlSlots = 1;
|
||||
|
||||
private bool m_bBardProvoked = false;
|
||||
private bool m_bBardPacified = false;
|
||||
private Mobile m_bBardMaster = null;
|
||||
private Mobile m_bBardTarget = null;
|
||||
private bool m_bBardProvoked;
|
||||
private bool m_bBardPacified;
|
||||
private Mobile m_bBardMaster;
|
||||
private Mobile m_bBardTarget;
|
||||
private DateTime m_timeBardEnd;
|
||||
private WayPoint m_CurrentWayPoint = null;
|
||||
private IPoint2D m_TargetLocation = null;
|
||||
private WayPoint m_CurrentWayPoint;
|
||||
private IPoint2D m_TargetLocation;
|
||||
|
||||
private Mobile m_SummonMaster;
|
||||
|
||||
|
|
@ -4889,7 +4889,7 @@ namespace Server.Mobiles
|
|||
|
||||
private long m_NextHealTime = Core.TickCount;
|
||||
private long m_NextHealOwnerTime = Core.TickCount;
|
||||
private Timer m_HealTimer = null;
|
||||
private Timer m_HealTimer;
|
||||
|
||||
public bool IsHealing => ( m_HealTimer != null );
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ namespace Server.Mobiles
|
|||
public override string CorpseName => "a plague beast corpse";
|
||||
private int m_DevourTotal;
|
||||
private int m_DevourGoal;
|
||||
private bool m_HasMetalChest = false;
|
||||
private bool m_HasMetalChest;
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int TotalDevoured
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ namespace Server.Mobiles
|
|||
private class InternalTimer : Timer
|
||||
{
|
||||
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 ) )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ namespace Server.Mobiles
|
|||
private DateTime m_DeleteTime;
|
||||
private Timer m_DeleteTimer;
|
||||
|
||||
private bool m_DeleteCorpse = false;
|
||||
private bool m_DeleteCorpse;
|
||||
|
||||
public bool IsBeingDeleted => ( m_DeleteTimer != null );
|
||||
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ namespace Server
|
|||
set => _PostHSFormat = value;
|
||||
}
|
||||
|
||||
private static bool _PostHSFormat = false;
|
||||
private static bool _PostHSFormat;
|
||||
|
||||
private Point2D m_Min, m_Max, m_Center;
|
||||
private int m_Width, m_Height;
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ namespace Server.Network {
|
|||
private AsyncState m_AsyncState;
|
||||
private object m_AsyncLock = new object();
|
||||
|
||||
private IPacketEncoder m_Encoder = null;
|
||||
private IPacketEncoder m_Encoder;
|
||||
|
||||
public IPacketEncoder PacketEncoder {
|
||||
get => m_Encoder;
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ namespace Server
|
|||
set => m_HeaderArgs = value;
|
||||
}
|
||||
|
||||
private static bool m_Enabled = false;
|
||||
private static bool m_Enabled;
|
||||
|
||||
public static bool Enabled{ get => m_Enabled;
|
||||
set => m_Enabled = value;
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ namespace Server {
|
|||
private byte[] _Working = new byte[BUFFER_SIZE];
|
||||
private byte[] _Buffer = new byte[BUFFER_SIZE];
|
||||
|
||||
private int _Index = 0;
|
||||
private int _Index;
|
||||
|
||||
private object _sync = new object();
|
||||
|
||||
|
|
@ -226,7 +226,7 @@ namespace Server {
|
|||
private byte[] _Working = new byte[BUFFER_SIZE];
|
||||
private byte[] _Buffer = new byte[BUFFER_SIZE];
|
||||
|
||||
private int _Index = 0;
|
||||
private int _Index;
|
||||
|
||||
private object _sync = new object();
|
||||
|
||||
|
|
@ -364,7 +364,7 @@ namespace Server {
|
|||
private byte[] _Working = new byte[BUFFER_SIZE];
|
||||
private byte[] _Buffer = new byte[BUFFER_SIZE];
|
||||
|
||||
private int _Index = 0;
|
||||
private int _Index;
|
||||
|
||||
private object _sync = new object();
|
||||
|
||||
|
|
@ -483,7 +483,7 @@ namespace Server {
|
|||
private byte[] _Working = new byte[BUFFER_SIZE];
|
||||
private byte[] _Buffer = new byte[BUFFER_SIZE];
|
||||
|
||||
private int _Index = 0;
|
||||
private int _Index;
|
||||
|
||||
private object _sync = new object();
|
||||
|
||||
|
|
|
|||
|
|
@ -1385,7 +1385,7 @@ namespace Server
|
|||
|
||||
public sealed class AsyncWriter : GenericWriter
|
||||
{
|
||||
private static int m_ThreadCount = 0;
|
||||
private static int m_ThreadCount;
|
||||
public static int ThreadCount => m_ThreadCount;
|
||||
|
||||
private int BufferSize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue