Skip to content

Commit 2c44561

Browse files
committed
chore: remove static config properties from Options
1 parent 216ddac commit 2c44561

File tree

108 files changed

+1268
-1363
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+1268
-1363
lines changed

Framework/Intersect.Framework.Core/Config/EquipmentOptions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ namespace Intersect.Config;
44

55
public partial class EquipmentOptions
66
{
7-
public PaperdollOptions Paperdoll = new PaperdollOptions();
7+
public PaperdollOptions Paperdoll = new();
88

99
public int ShieldSlot = 3;
1010

11-
public List<string> Slots = new List<string>()
11+
public List<string> Slots = new()
1212
{
1313
"Helmet",
1414
"Armor",
@@ -17,7 +17,7 @@ public partial class EquipmentOptions
1717
"Boots",
1818
};
1919

20-
public List<string> ToolTypes = new List<string>()
20+
public List<string> ToolTypes = new()
2121
{
2222
"Axe",
2323
"Pickaxe",

Framework/Intersect.Framework.Core/Config/Guilds/GuildOptions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public partial class GuildOptions
4242
/// </summary>
4343
public GuildRank[] Ranks { get; set; } = new GuildRank[]
4444
{
45-
new GuildRank()
45+
new()
4646
{
4747
Title = "Master",
4848
Limit = 1,
@@ -57,7 +57,7 @@ public partial class GuildOptions
5757
BankRetrieve = true
5858
}
5959
},
60-
new GuildRank()
60+
new()
6161
{
6262
Title = "Officer",
6363
Limit = 10,
@@ -72,7 +72,7 @@ public partial class GuildOptions
7272
BankRetrieve = true
7373
}
7474
},
75-
new GuildRank()
75+
new()
7676
{
7777
Title = "Member",
7878
Limit = -1,
@@ -87,7 +87,7 @@ public partial class GuildOptions
8787
BankRetrieve = false
8888
}
8989
},
90-
new GuildRank()
90+
new()
9191
{
9292
Title = "Newbie",
9393
Limit = -1,

Framework/Intersect.Framework.Core/Config/Guilds/GuildRank.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ public partial class GuildRank
1818
/// <summary>
1919
/// Permissions that this rank holds for the guild and the actions they can take
2020
/// </summary>
21-
public GuildPermissions Permissions { get; set; } = new GuildPermissions();
21+
public GuildPermissions Permissions { get; set; } = new();
2222
}

Framework/Intersect.Framework.Core/Config/LayerOptions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ public partial class LayerOptions
1111
public const string Events = nameof(Events);
1212

1313
[JsonProperty]
14-
public List<string> LowerLayers { get; private set; } = new List<string>() { "Ground", "Mask 1", "Mask 2" };
14+
public List<string> LowerLayers { get; private set; } = new() { "Ground", "Mask 1", "Mask 2" };
1515

1616
[JsonProperty]
17-
public List<string> MiddleLayers { get; private set; } = new List<string>() { "Fringe 1" };
17+
public List<string> MiddleLayers { get; private set; } = new() { "Fringe 1" };
1818

1919
[JsonProperty]
20-
public List<string> UpperLayers { get; private set; } = new List<string>() { "Fringe 2" };
20+
public List<string> UpperLayers { get; private set; } = new() { "Fringe 2" };
2121

2222
[JsonIgnore]
23-
public List<string> All { get; private set; } = new List<string>();
23+
public List<string> All { get; private set; } = new();
2424

2525
[JsonProperty]
2626
public bool DestroyOrphanedLayers { get; private set; } = false;

Framework/Intersect.Framework.Core/Config/MapOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public bool EnableDiagonalMovement
5252
/// <summary>
5353
/// The options for the map's layers.
5454
/// </summary>
55-
public LayerOptions Layers { get; set; } = new LayerOptions();
55+
public LayerOptions Layers { get; set; } = new();
5656

5757
/// <summary>
5858
/// The height of the map in tiles.

0 commit comments

Comments
 (0)