1f7f0945c5
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.
29 lines
1.4 KiB
C#
Executable File
29 lines
1.4 KiB
C#
Executable File
using HellionChat.Resources;
|
|
|
|
namespace HellionChat.Code;
|
|
|
|
internal static class ChatSourceExt
|
|
{
|
|
internal const ChatSource All =
|
|
ChatSource.LocalPlayer | ChatSource.PartyMember | ChatSource.AllianceMember |
|
|
ChatSource.OtherPlayer | ChatSource.EngagedEnemy | ChatSource.UnengagedEnemy |
|
|
ChatSource.FriendlyNpc | ChatSource.PetOrCompanion | ChatSource.PetOrCompanionParty |
|
|
ChatSource.PetOrCompanionAlliance | ChatSource.PetOrCompanionOther;
|
|
|
|
internal static string Name(this ChatSource source) => source switch
|
|
{
|
|
ChatSource.LocalPlayer => Language.ChatSource_Self,
|
|
ChatSource.PartyMember => Language.ChatSource_PartyMember,
|
|
ChatSource.AllianceMember => Language.ChatSource_AllianceMember,
|
|
ChatSource.OtherPlayer => Language.ChatSource_Other,
|
|
ChatSource.EngagedEnemy => Language.ChatSource_EngagedEnemy,
|
|
ChatSource.UnengagedEnemy => Language.ChatSource_UnengagedEnemy,
|
|
ChatSource.FriendlyNpc => Language.ChatSource_FriendlyNpc,
|
|
ChatSource.PetOrCompanion => Language.ChatSource_SelfPet,
|
|
ChatSource.PetOrCompanionParty => Language.ChatSource_PartyPet,
|
|
ChatSource.PetOrCompanionAlliance => Language.ChatSource_AlliancePet,
|
|
ChatSource.PetOrCompanionOther => Language.ChatSource_OtherPet,
|
|
_ => throw new ArgumentOutOfRangeException(nameof(source), source, null),
|
|
};
|
|
}
|