Skip to content

Commit

Permalink
feat: add IsTestDC func to data mgr
Browse files Browse the repository at this point in the history
  • Loading branch information
kalilistic committed Oct 21, 2023
1 parent d3ce9bb commit 94d2344
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dalamud.DrunkenToad/Core/Services/Ex/DataManagerEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,13 @@ public uint GetWorldIdByName(string worldName)
return 0;
}

/// <summary>
/// Get indicator whether world is a test data center.
/// </summary>
/// <param name="worldId">world id.</param>
/// <returns>indicator whether world is a test data center.</returns>
public bool IsTestDC(uint worldId) => this.dataManager.IsTestDC(worldId);

private static float ColorDistance(Vector4 color1, Vector4 color2)
{
var rDiff = color1.X - color2.X;
Expand Down

0 comments on commit 94d2344

Please sign in to comment.