Skip to content

Commit

Permalink
Alt://R3 update
Browse files Browse the repository at this point in the history
  • Loading branch information
AuriRex committed Mar 2, 2023
1 parent ce1a02c commit b441082
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion TheArchive.Core/Core/BuildDB.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using Harmony;
using System;
using System.Collections.Generic;
using System.IO;
using TheArchive.Core.Managers;
Expand Down Expand Up @@ -65,6 +66,7 @@ public static int BuildNumber
{ 29742, RundownID.RundownSix },
{ 31994, RundownID.RundownSeven },
{ 32283, RundownID.RundownAltOne },
{ 32416, RundownID.RundownAltTwo },
};

public static RundownID GetCurrentRundownID(int buildNumber)
Expand Down
11 changes: 7 additions & 4 deletions TheArchive.Core/Utilities/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ public ValueAttribute(object value)
/// </summary>
public enum RundownID : int
{
Latest = RundownAltTwo,
Latest = RundownAltThree,

RundownUnitialized = -1,
RundownUnknown,
Expand All @@ -362,13 +362,12 @@ public enum RundownID : int
RundownSeven,
RundownAltOne,
RundownAltTwo,
RundownAltThree,
}

[Flags]
public enum RundownFlags : int
{
Latest = RundownAltTwo,

None = 0,
RundownOne = 1 << 0,
RundownTwo = 1 << 1,
Expand All @@ -379,9 +378,13 @@ public enum RundownFlags : int
RundownSeven = 1 << 6,
RundownAltOne = 1 << 7,
RundownAltTwo = 1 << 8,
RundownAltThree = 1 << 9,

All = RundownOne | RundownTwo | RundownThree | RundownFour | RundownFive | RundownSix | RundownSeven
| RundownAltOne | RundownAltTwo,
| RundownAltOne | RundownAltTwo | RundownAltThree,

Latest = RundownAltThree,
#warning TODO: Latest as external constant because alias behave weird with ToString() depending on the amount of enum entries
}

public static bool FlagsContain(RundownFlags flags, RundownID id)
Expand Down

0 comments on commit b441082

Please sign in to comment.