feat: start adding our own shortcut support

This commit is contained in:
Anna
2022-01-28 23:01:10 -05:00
parent 60d1771c95
commit d844b000e5
11 changed files with 458 additions and 58 deletions
+17
View File
@@ -0,0 +1,17 @@
using ChatTwo.Code;
namespace ChatTwo.GameFunctions.Types;
internal class ChannelSwitchInfo {
internal InputChannel? Channel { get; }
internal bool Permanent { get; }
internal RotateMode Rotate { get; }
internal string? Text { get; }
internal ChannelSwitchInfo(InputChannel? channel, bool permanent = false, RotateMode rotate = RotateMode.None, string? text = null) {
this.Channel = channel;
this.Permanent = permanent;
this.Rotate = rotate;
this.Text = text;
}
}
+11
View File
@@ -0,0 +1,11 @@
using Dalamud.Game.ClientState.Keys;
namespace ChatTwo.GameFunctions.Types;
internal class Keybind {
internal VirtualKey Key1 { get; init; }
internal ModifierFlag Modifier1 { get; init; }
internal VirtualKey Key2 { get; init; }
internal ModifierFlag Modifier2 { get; init; }
}
+8
View File
@@ -0,0 +1,8 @@
namespace ChatTwo.GameFunctions.Types;
[Flags]
internal enum ModifierFlag {
Shift = 1 << 0,
Ctrl = 1 << 1,
Alt = 1 << 2,
}
+7
View File
@@ -0,0 +1,7 @@
namespace ChatTwo.GameFunctions.Types;
internal enum RotateMode {
None,
Forward,
Reverse,
}
+13
View File
@@ -0,0 +1,13 @@
namespace ChatTwo.GameFunctions.Types;
internal sealed class TellHistoryInfo {
internal string Name { get; }
internal uint World { get; }
internal ulong ContentId { get; }
internal TellHistoryInfo(string name, uint world, ulong contentId) {
this.Name = name;
this.World = world;
this.ContentId = contentId;
}
}
+7
View File
@@ -0,0 +1,7 @@
namespace ChatTwo.GameFunctions.Types;
internal enum TellReason {
Direct = 0,
PartyFinder = 1,
Friend = 3,
}