Fixes implicit array initializers
This commit is contained in:
parent
7d3a0ca265
commit
fee83ce560
189 changed files with 440 additions and 808 deletions
|
|
@ -101,8 +101,7 @@ namespace Server.Gumps
|
|||
e.Mobile.SendGump( new AddDoorGump() );
|
||||
}
|
||||
|
||||
public static DoorInfo[] m_Types = new[]
|
||||
{
|
||||
public static DoorInfo[] m_Types = {
|
||||
new DoorInfo( typeof( MetalDoor ), 0x675 ),
|
||||
new DoorInfo( typeof( RattanDoor ), 0x695 ),
|
||||
new DoorInfo( typeof( DarkWoodDoor ), 0x6A5 ),
|
||||
|
|
|
|||
|
|
@ -160,8 +160,7 @@ namespace Server.Gumps
|
|||
}
|
||||
}
|
||||
|
||||
private static string[] m_AccessLevelStrings = new[]
|
||||
{
|
||||
private static string[] m_AccessLevelStrings = {
|
||||
"Player",
|
||||
"Counselor",
|
||||
"Game Master",
|
||||
|
|
|
|||
|
|
@ -106,7 +106,6 @@ namespace Server.Guilds
|
|||
#endregion
|
||||
|
||||
private static InfoField<PlayerMobile>[] m_Fields =
|
||||
new[]
|
||||
{
|
||||
new InfoField<PlayerMobile>( 1062955, 130, NameComparer.Instance ), //Name
|
||||
new InfoField<PlayerMobile>( 1062956, 80, RankComparer.Instance ), //Rank
|
||||
|
|
|
|||
|
|
@ -163,8 +163,7 @@ namespace Server.Gumps
|
|||
return 1 + (index * 15) + type;
|
||||
}
|
||||
|
||||
private static int[] m_HangerNumbers = new[]
|
||||
{
|
||||
private static int[] m_HangerNumbers = {
|
||||
2968, 2970, 2972,
|
||||
2974, 2976, 2978
|
||||
};
|
||||
|
|
@ -178,8 +177,7 @@ namespace Server.Gumps
|
|||
20, 189, 765, 65, 101
|
||||
});
|
||||
|
||||
private static int[] m_PostNumbers = new[]
|
||||
{
|
||||
private static int[] m_PostNumbers = {
|
||||
9, 29, 54, 90, 147, 169,
|
||||
177, 204, 251, 257, 263,
|
||||
298, 347, 424, 441, 466,
|
||||
|
|
|
|||
|
|
@ -381,7 +381,7 @@ namespace Server.Gumps
|
|||
public int LocNumber => m_LocNum;
|
||||
}
|
||||
|
||||
private static CustomCategory[] Categories = new[]{
|
||||
private static CustomCategory[] Categories = {
|
||||
new CustomCategory( Layer.InnerTorso, 1011357, true, new[]{// Upper Torso
|
||||
new CustomItem( typeof( Shirt ), 1011359, 5399 ),
|
||||
new CustomItem( typeof( FancyShirt ), 1011360, 7933 ),
|
||||
|
|
@ -799,8 +799,7 @@ namespace Server.Gumps
|
|||
}
|
||||
}
|
||||
|
||||
private static HairOrBeard[] m_HairStyles = new[]
|
||||
{
|
||||
private static HairOrBeard[] m_HairStyles = {
|
||||
new HairOrBeard( 0x203B, 1011052 ), // Short
|
||||
new HairOrBeard( 0x203C, 1011053 ), // Long
|
||||
new HairOrBeard( 0x203D, 1011054 ), // Ponytail
|
||||
|
|
@ -812,8 +811,7 @@ namespace Server.Gumps
|
|||
new HairOrBeard( 0x2049, 1011049 ) // 2-tails
|
||||
};
|
||||
|
||||
private static HairOrBeard[] m_BeardStyles = new[]
|
||||
{
|
||||
private static HairOrBeard[] m_BeardStyles = {
|
||||
new HairOrBeard( 0x2041, 1011062 ), // Mustache
|
||||
new HairOrBeard( 0x203F, 1011060 ), // Short beard
|
||||
new HairOrBeard( 0x204B, 1015321 ), // Short Beard & Moustache
|
||||
|
|
|
|||
|
|
@ -62,8 +62,7 @@ namespace Server.Gumps
|
|||
public int LocNumber => m_Num;
|
||||
}
|
||||
|
||||
private static PolymorphCategory[] Categories = new[]
|
||||
{
|
||||
private static PolymorphCategory[] Categories = {
|
||||
new PolymorphCategory( 1015235, // Animals
|
||||
PolymorphEntry.Chicken,
|
||||
PolymorphEntry.Dog,
|
||||
|
|
@ -155,8 +154,7 @@ namespace Server.Gumps
|
|||
|
||||
public class NewPolymorphGump : Gump
|
||||
{
|
||||
private static readonly PolymorphEntry[] m_Entries = new[]
|
||||
{
|
||||
private static readonly PolymorphEntry[] m_Entries = {
|
||||
PolymorphEntry.Chicken,
|
||||
PolymorphEntry.Dog,
|
||||
PolymorphEntry.Wolf,
|
||||
|
|
|
|||
|
|
@ -231,11 +231,11 @@ namespace Server.Gumps
|
|||
}
|
||||
}
|
||||
|
||||
public static string[] m_BoolNames = new[]{ "True", "False" };
|
||||
public static object[] m_BoolValues = new object[]{ true, false };
|
||||
public static string[] m_BoolNames = { "True", "False" };
|
||||
public static object[] m_BoolValues = { true, false };
|
||||
|
||||
public static string[] m_PoisonNames = new[]{ "None", "Lesser", "Regular", "Greater", "Deadly", "Lethal" };
|
||||
public static object[] m_PoisonValues = new object[]{ null, Poison.Lesser, Poison.Regular, Poison.Greater, Poison.Deadly, Poison.Lethal };
|
||||
public static string[] m_PoisonNames = { "None", "Lesser", "Regular", "Greater", "Deadly", "Lethal" };
|
||||
public static object[] m_PoisonValues = { null, Poison.Lesser, Poison.Regular, Poison.Greater, Poison.Deadly, Poison.Lethal };
|
||||
|
||||
public override void OnResponse( NetState state, RelayInfo info )
|
||||
{
|
||||
|
|
@ -415,14 +415,12 @@ namespace Server.Gumps
|
|||
private static Type typeofPropertyObject = typeof( PropertyObjectAttribute );
|
||||
private static Type typeofNoSort = typeof( NoSortAttribute );
|
||||
|
||||
private static Type[] typeofReal = new[]
|
||||
{
|
||||
private static Type[] typeofReal = {
|
||||
typeof( Single ),
|
||||
typeof( Double )
|
||||
};
|
||||
|
||||
private static Type[] typeofNumeric = new[]
|
||||
{
|
||||
private static Type[] typeofNumeric = {
|
||||
typeof( Byte ),
|
||||
typeof( Int16 ),
|
||||
typeof( Int32 ),
|
||||
|
|
|
|||
|
|
@ -238,8 +238,7 @@ namespace Server.Gumps
|
|||
public string Name => m_Name;
|
||||
public string DisplayName => m_DisplayName;
|
||||
|
||||
private static string[] m_GroupNames = new[]
|
||||
{
|
||||
private static string[] m_GroupNames = {
|
||||
"ogres_", "ettins_", "walking_dead_", "gargoyles_",
|
||||
"orcs_", "flails_", "daemons_", "arachnids_",
|
||||
"dragons_", "elementals_", "serpents_", "gazers_",
|
||||
|
|
|
|||
|
|
@ -457,8 +457,7 @@ namespace Server.Gumps
|
|||
}
|
||||
}
|
||||
|
||||
private static SkillsGumpGroup[] m_Groups = new[]
|
||||
{
|
||||
private static SkillsGumpGroup[] m_Groups = {
|
||||
new SkillsGumpGroup( "Crafting", new[]
|
||||
{
|
||||
SkillName.Alchemy,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue