Changes properties to use automatic property initializers
This commit is contained in:
parent
f0a48ad431
commit
06fa31a7bf
623 changed files with 13072 additions and 19304 deletions
|
|
@ -7,8 +7,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
public class CustomHairstylist : BaseVendor
|
||||
{
|
||||
private List<SBInfo> m_SBInfos = new List<SBInfo>();
|
||||
protected override List<SBInfo> SBInfos => m_SBInfos;
|
||||
protected override List<SBInfo> SBInfos { get; } = new List<SBInfo>();
|
||||
|
||||
public override bool ClickTitle => false;
|
||||
|
||||
|
|
@ -92,36 +91,34 @@ namespace Server.Mobiles
|
|||
|
||||
public class HairstylistBuyInfo
|
||||
{
|
||||
private int m_Title;
|
||||
private string m_TitleString;
|
||||
private int m_Price;
|
||||
private bool m_FacialHair;
|
||||
private Type m_GumpType;
|
||||
private object[] m_GumpArgs;
|
||||
public int Title { get; }
|
||||
|
||||
public int Title => m_Title;
|
||||
public string TitleString => m_TitleString;
|
||||
public int Price => m_Price;
|
||||
public bool FacialHair => m_FacialHair;
|
||||
public Type GumpType => m_GumpType;
|
||||
public object[] GumpArgs => m_GumpArgs;
|
||||
public string TitleString { get; }
|
||||
|
||||
public int Price { get; }
|
||||
|
||||
public bool FacialHair { get; }
|
||||
|
||||
public Type GumpType { get; }
|
||||
|
||||
public object[] GumpArgs { get; }
|
||||
|
||||
public HairstylistBuyInfo( int title, int price, bool facialHair, Type gumpType, object[] args )
|
||||
{
|
||||
m_Title = title;
|
||||
m_Price = price;
|
||||
m_FacialHair = facialHair;
|
||||
m_GumpType = gumpType;
|
||||
m_GumpArgs = args;
|
||||
Title = title;
|
||||
Price = price;
|
||||
FacialHair = facialHair;
|
||||
GumpType = gumpType;
|
||||
GumpArgs = args;
|
||||
}
|
||||
|
||||
public HairstylistBuyInfo( string title, int price, bool facialHair, Type gumpType, object[] args )
|
||||
{
|
||||
m_TitleString = title;
|
||||
m_Price = price;
|
||||
m_FacialHair = facialHair;
|
||||
m_GumpType = gumpType;
|
||||
m_GumpArgs = args;
|
||||
TitleString = title;
|
||||
Price = price;
|
||||
FacialHair = facialHair;
|
||||
GumpType = gumpType;
|
||||
GumpArgs = args;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -229,26 +226,24 @@ namespace Server.Mobiles
|
|||
|
||||
public class ChangeHairHueEntry
|
||||
{
|
||||
private string m_Name;
|
||||
private int[] m_Hues;
|
||||
public string Name { get; }
|
||||
|
||||
public string Name => m_Name;
|
||||
public int[] Hues => m_Hues;
|
||||
public int[] Hues { get; }
|
||||
|
||||
public ChangeHairHueEntry( string name, int[] hues )
|
||||
{
|
||||
m_Name = name;
|
||||
m_Hues = hues;
|
||||
Name = name;
|
||||
Hues = hues;
|
||||
}
|
||||
|
||||
public ChangeHairHueEntry( string name, int start, int count )
|
||||
{
|
||||
m_Name = name;
|
||||
Name = name;
|
||||
|
||||
m_Hues = new int[count];
|
||||
Hues = new int[count];
|
||||
|
||||
for ( int i = 0; i < count; ++i )
|
||||
m_Hues[i] = start + i;
|
||||
Hues[i] = start + i;
|
||||
}
|
||||
|
||||
public static readonly ChangeHairHueEntry[] BrightEntries = {
|
||||
|
|
@ -386,21 +381,20 @@ namespace Server.Mobiles
|
|||
|
||||
public class ChangeHairstyleEntry
|
||||
{
|
||||
private int m_ItemID;
|
||||
private int m_GumpID;
|
||||
private int m_X, m_Y;
|
||||
public int ItemID { get; }
|
||||
|
||||
public int ItemID => m_ItemID;
|
||||
public int GumpID => m_GumpID;
|
||||
public int X => m_X;
|
||||
public int Y => m_Y;
|
||||
public int GumpID { get; }
|
||||
|
||||
public int X { get; }
|
||||
|
||||
public int Y { get; }
|
||||
|
||||
public ChangeHairstyleEntry( int gumpID, int x, int y, int itemID )
|
||||
{
|
||||
m_GumpID = gumpID;
|
||||
m_X = x;
|
||||
m_Y = y;
|
||||
m_ItemID = itemID;
|
||||
GumpID = gumpID;
|
||||
X = x;
|
||||
Y = y;
|
||||
ItemID = itemID;
|
||||
}
|
||||
|
||||
public static readonly ChangeHairstyleEntry[] HairEntries = {
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
public abstract class BaseGuildmaster : BaseVendor
|
||||
{
|
||||
private List<SBInfo> m_SBInfos = new List<SBInfo>();
|
||||
protected override List<SBInfo> SBInfos => m_SBInfos;
|
||||
protected override List<SBInfo> SBInfos { get; } = new List<SBInfo>();
|
||||
|
||||
public override bool IsActiveVendor => false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue