More cleanup

This commit is contained in:
Infi
2024-04-11 07:09:09 +02:00
parent 48fec7dfaa
commit c24ca3c007
11 changed files with 199 additions and 189 deletions
@@ -8,7 +8,8 @@ internal class ChannelSwitchInfo {
internal RotateMode Rotate { get; }
internal string? Text { get; }
internal ChannelSwitchInfo(InputChannel? channel, bool permanent = false, RotateMode rotate = RotateMode.None, string? text = null) {
internal ChannelSwitchInfo(InputChannel? channel, bool permanent = false, RotateMode rotate = RotateMode.None, string? text = null)
{
Channel = channel;
Permanent = permanent;
Rotate = rotate;
@@ -1,13 +1,15 @@
namespace ChatTwo.GameFunctions.Types;
internal sealed class ChatActivatedArgs {
internal sealed class ChatActivatedArgs
{
internal string? AddIfNotPresent { get; init; }
internal string? Input { get; init; }
internal ChannelSwitchInfo ChannelSwitchInfo { get; }
internal TellReason? TellReason { get; init; }
internal TellTarget? TellTarget { get; init; }
internal ChatActivatedArgs(ChannelSwitchInfo channelSwitchInfo) {
internal ChatActivatedArgs(ChannelSwitchInfo channelSwitchInfo)
{
ChannelSwitchInfo = channelSwitchInfo;
}
}
+2 -1
View File
@@ -2,7 +2,8 @@ using Dalamud.Game.ClientState.Keys;
namespace ChatTwo.GameFunctions.Types;
internal class Keybind {
internal class Keybind
{
internal VirtualKey Key1 { get; init; }
internal ModifierFlag Modifier1 { get; init; }
+2 -1
View File
@@ -1,7 +1,8 @@
namespace ChatTwo.GameFunctions.Types;
[Flags]
internal enum ModifierFlag {
internal enum ModifierFlag
{
Shift = 1 << 0,
Ctrl = 1 << 1,
Alt = 1 << 2,
+2 -1
View File
@@ -1,6 +1,7 @@
namespace ChatTwo.GameFunctions.Types;
internal enum RotateMode {
internal enum RotateMode
{
None,
Forward,
Reverse,
@@ -1,11 +1,13 @@
namespace ChatTwo.GameFunctions.Types;
internal sealed class TellHistoryInfo {
internal sealed class TellHistoryInfo
{
internal string Name { get; }
internal uint World { get; }
internal ulong ContentId { get; }
internal TellHistoryInfo(string name, uint world, ulong contentId) {
internal TellHistoryInfo(string name, uint world, ulong contentId)
{
Name = name;
World = world;
ContentId = contentId;
+2 -1
View File
@@ -1,6 +1,7 @@
namespace ChatTwo.GameFunctions.Types;
internal enum TellReason {
internal enum TellReason
{
Direct = 0,
PartyFinder = 1,
Reply = 2,
+4 -2
View File
@@ -1,12 +1,14 @@
namespace ChatTwo.GameFunctions.Types;
internal sealed class TellTarget {
internal sealed class TellTarget
{
internal string Name { get; }
internal ushort World { get; }
internal ulong ContentId { get; }
internal TellReason Reason { get; }
internal TellTarget(string name, ushort world, ulong contentId, TellReason reason) {
internal TellTarget(string name, ushort world, ulong contentId, TellReason reason)
{
Name = name;
World = world;
ContentId = contentId;