mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
feat: CfPreferredRole notification WIP, needs configuration
This commit is contained in:
parent
9dbb47624a
commit
a91eeda956
5 changed files with 104 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
|
|
@ -178,6 +179,14 @@ namespace Dalamud {
|
|||
{
|
||||
HelpMessage = "Link an item by name. Usage: /xlitem <Item name>"
|
||||
});
|
||||
|
||||
#if DEBUG
|
||||
CommandManager.AddHandler("/xldzpi", new CommandInfo(OnDebugZoneDownInject)
|
||||
{
|
||||
HelpMessage = "Inject zone down channel",
|
||||
ShowInHelp = false
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
||||
private void OnUnloadCommand(string command, string arguments) {
|
||||
|
|
@ -406,5 +415,12 @@ namespace Dalamud {
|
|||
|
||||
});
|
||||
}
|
||||
|
||||
private void OnDebugZoneDownInject(string command, string arguments) {
|
||||
var data = File.ReadAllBytes(arguments);
|
||||
|
||||
Framework.Network.InjectZoneProtoPacket(data);
|
||||
Framework.Gui.Chat.Print($"{arguments} OK with {data.Length} bytes");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue