re-organize settings (part 1 of 2)

This commit is contained in:
2023-02-04 12:28:21 +01:00
parent 7b76a2cbd0
commit 76648b4b94
11 changed files with 576 additions and 466 deletions

View File

@@ -73,11 +73,11 @@ namespace Pilz.Dalamud.ActivityContexts
// Check for ZoneType
newZoneType = memberType switch
{
2 => ZoneType.Dungeon,
2 => ZoneType.Doungen,
3 => ZoneType.Raid,
4 => ZoneType.AllianceRaid,
127 => ZoneType.Foray,
_ => ZoneType.Dungeon,
_ => ZoneType.Doungen,
};
}
}

View File

@@ -8,14 +8,15 @@ using System.Threading.Tasks;
namespace Pilz.Dalamud.ActivityContexts
{
[JsonConverter(typeof(StringEnumConverter))]
[Flags, JsonConverter(typeof(StringEnumConverter))]
public enum ZoneType
{
Overworld,
Dungeon,
Raid,
AllianceRaid,
Foray,
Pvp
Overworld = 1,
Doungen = 2,
Raid = 4,
AllianceRaid = 8,
Foray = 16,
Pvp = 32,
Everywhere = int.MaxValue
}
}