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:
Executable
+58
@@ -0,0 +1,58 @@
|
||||
using HellionChat.Resources;
|
||||
using HellionChat.Util;
|
||||
using Dalamud.Interface.ImGuiNotification;
|
||||
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
||||
using FFXIVClientStructs.FFXIV.Client.UI.Info;
|
||||
|
||||
namespace HellionChat.GameFunctions;
|
||||
|
||||
internal static unsafe class Party
|
||||
{
|
||||
internal static void InviteSameWorld(string name, ushort world, ulong contentId)
|
||||
{
|
||||
// this only works if target is on the same world
|
||||
fixed (byte* namePtr = name.ToTerminatedBytes()) {
|
||||
InfoProxyPartyInvite.Instance()->InviteToParty(contentId, namePtr, world);
|
||||
}
|
||||
}
|
||||
|
||||
internal static void InviteOtherWorld(ulong contentId, ushort worldId = 0)
|
||||
{
|
||||
// third param is world, but it requires a specific world
|
||||
// if they're not on that world, it will fail
|
||||
// pass 0 and it will work on any world EXCEPT for the world the
|
||||
// current player is on
|
||||
if (contentId == 0)
|
||||
{
|
||||
WrapperUtil.AddNotification(Language.PartyInvite_NoId, NotificationType.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
InfoProxyPartyInvite.Instance()->InviteToPartyContentId(contentId, worldId);
|
||||
}
|
||||
|
||||
internal static void InviteInInstance(ulong contentId)
|
||||
{
|
||||
if (contentId == 0)
|
||||
{
|
||||
WrapperUtil.AddNotification(Language.PartyInvite_NoId, NotificationType.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
InfoProxyPartyInvite.Instance()->InviteToPartyInInstanceByContentId(contentId);
|
||||
}
|
||||
|
||||
internal static void Kick(string name, ulong contentId)
|
||||
{
|
||||
fixed (byte* namePtr = name.ToTerminatedBytes()) {
|
||||
AgentPartyMember.Instance()->Kick(namePtr, 0, contentId);
|
||||
}
|
||||
}
|
||||
|
||||
internal static void Promote(string name, ulong contentId)
|
||||
{
|
||||
fixed (byte* namePtr = name.ToTerminatedBytes()) {
|
||||
AgentPartyMember.Instance()->Promote(namePtr, 0, contentId);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user