build: rename repository folder ChatTwo to HellionChat
Repository folder, csproj, solution and all CI/build paths now use
the consolidated HellionChat name.
- ChatTwo/ → HellionChat/ (git mv preserves history with --follow)
- ChatTwo.csproj → HellionChat.csproj
- ChatTwo.sln → HellionChat.sln; obsolete Tests project entry removed
(private/untracked sandbox)
- AssemblyInfo.cs InternalsVisibleTo for ChatTwo.Tests removed
(file emptied; can be repopulated when actual tests land)
- repo.json and yaml image URLs updated (ChatTwo/images/ → HellionChat/images/)
- .github/workflows/{build,codeql,release}.yml csproj paths
- .github/dependabot.yml directory path
Functional behavior unchanged.
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
using Dalamud.Game.ClientState.Objects.SubKinds;
|
||||
using Lumina.Excel;
|
||||
using Lumina.Excel.Sheets;
|
||||
|
||||
namespace HellionChat;
|
||||
|
||||
public static class Sheets
|
||||
{
|
||||
public static readonly ExcelSheet<Item> ItemSheet;
|
||||
public static readonly ExcelSheet<World> WorldSheet;
|
||||
public static readonly ExcelSheet<Status> StatusSheet;
|
||||
public static readonly ExcelSheet<LogKind> LogKindSheet;
|
||||
public static readonly ExcelSheet<LogFilter> LogFilterSheet;
|
||||
public static readonly ExcelSheet<EventItem> EventItemSheet;
|
||||
public static readonly ExcelSheet<Completion> CompletionSheet;
|
||||
public static readonly ExcelSheet<TerritoryType> TerritorySheet;
|
||||
public static readonly ExcelSheet<TextCommand> TextCommandSheet;
|
||||
public static readonly ExcelSheet<EventItemHelp> EventItemHelpSheet;
|
||||
|
||||
static Sheets()
|
||||
{
|
||||
ItemSheet = Plugin.DataManager.GetExcelSheet<Item>();
|
||||
WorldSheet = Plugin.DataManager.GetExcelSheet<World>();
|
||||
StatusSheet = Plugin.DataManager.GetExcelSheet<Status>();
|
||||
LogKindSheet = Plugin.DataManager.GetExcelSheet<LogKind>();
|
||||
LogFilterSheet = Plugin.DataManager.GetExcelSheet<LogFilter>();
|
||||
EventItemSheet = Plugin.DataManager.GetExcelSheet<EventItem>();
|
||||
CompletionSheet = Plugin.DataManager.GetExcelSheet<Completion>();
|
||||
TerritorySheet = Plugin.DataManager.GetExcelSheet<TerritoryType>();
|
||||
TextCommandSheet = Plugin.DataManager.GetExcelSheet<TextCommand>();
|
||||
EventItemHelpSheet = Plugin.DataManager.GetExcelSheet<EventItemHelp>();
|
||||
}
|
||||
|
||||
public static bool IsInForay() =>
|
||||
TerritorySheet.TryGetRow(Plugin.ClientState.TerritoryType, out var row) &&
|
||||
row.TerritoryIntendedUse.RowId is 41 or 61;
|
||||
|
||||
public static IEnumerable<World> WorldsOnDatacenter(IPlayerCharacter character)
|
||||
{
|
||||
var dcRow = character.HomeWorld.Value.DataCenter.Value.Region.RowId;
|
||||
return WorldSheet.Where(world => world.IsPublic && world.DataCenter.Value.Region.RowId == dcRow);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user