mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
Remove obsolete methods, fix imports
This commit is contained in:
parent
67624e14ae
commit
5e925907ab
5 changed files with 4 additions and 39 deletions
|
|
@ -6,8 +6,8 @@ using System.Runtime.InteropServices;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
using Dalamud.Game.Internal.Gui;
|
using Dalamud.Game.Internal.Gui;
|
||||||
using Dalamud.Game.Internal.Libc;
|
|
||||||
using Dalamud.Game.Internal.Network;
|
using Dalamud.Game.Internal.Network;
|
||||||
|
using Dalamud.Game.Libc;
|
||||||
using Dalamud.Hooking;
|
using Dalamud.Hooking;
|
||||||
using Serilog;
|
using Serilog;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,8 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
using Dalamud.Game.Internal.Libc;
|
using Dalamud.Game.Libc;
|
||||||
using Dalamud.Game.Text;
|
using Dalamud.Game.Text;
|
||||||
using Dalamud.Game.Text.SeStringHandling;
|
using Dalamud.Game.Text.SeStringHandling;
|
||||||
using Dalamud.Game.Text.SeStringHandling.Payloads;
|
using Dalamud.Game.Text.SeStringHandling.Payloads;
|
||||||
|
|
@ -60,17 +59,6 @@ namespace Dalamud.Game.Internal.Gui
|
||||||
/// <param name="isHandled">A value indicating whether the message was handled or should be propagated.</param>
|
/// <param name="isHandled">A value indicating whether the message was handled or should be propagated.</param>
|
||||||
public delegate void OnMessageDelegate(XivChatType type, uint senderId, ref SeString sender, ref SeString message, ref bool isHandled);
|
public delegate void OnMessageDelegate(XivChatType type, uint senderId, ref SeString sender, ref SeString message, ref bool isHandled);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// A delegate type used with the <see cref="OnChatMessageRaw"/> event.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="type">The type of chat.</param>
|
|
||||||
/// <param name="senderId">The sender ID.</param>
|
|
||||||
/// <param name="sender">The sender name.</param>
|
|
||||||
/// <param name="message">The message sent.</param>
|
|
||||||
/// <param name="isHandled">A value indicating whether the message was handled or should be propagated.</param>
|
|
||||||
[Obsolete("Please use OnMessageDelegate instead. For modifications, it will take precedence.")]
|
|
||||||
public delegate void OnMessageRawDelegate(XivChatType type, uint senderId, ref StdString sender, ref StdString message, ref bool isHandled);
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A delegate type used with the <see cref="OnCheckMessageHandled"/> event.
|
/// A delegate type used with the <see cref="OnCheckMessageHandled"/> event.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -113,12 +101,6 @@ namespace Dalamud.Game.Internal.Gui
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public event OnMessageDelegate OnChatMessage;
|
public event OnMessageDelegate OnChatMessage;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Event that will be fired when a chat message is sent by the game, containing raw, unparsed data.
|
|
||||||
/// </summary>
|
|
||||||
[Obsolete("Please use OnChatMessage instead. For modifications, it will take precedence.")]
|
|
||||||
public event OnMessageRawDelegate OnChatMessageRaw;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Event that allows you to stop messages from appearing in chat by setting the isHandled parameter to true.
|
/// Event that allows you to stop messages from appearing in chat by setting the isHandled parameter to true.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -388,7 +370,6 @@ namespace Dalamud.Game.Internal.Gui
|
||||||
if (!isHandled)
|
if (!isHandled)
|
||||||
{
|
{
|
||||||
this.OnChatMessage?.Invoke(chattype, senderid, ref parsedSender, ref parsedMessage, ref isHandled);
|
this.OnChatMessage?.Invoke(chattype, senderid, ref parsedSender, ref parsedMessage, ref isHandled);
|
||||||
this.OnChatMessageRaw?.Invoke(chattype, senderid, ref sender, ref message, ref isHandled);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var newEdited = parsedMessage.Encode();
|
var newEdited = parsedMessage.Encode();
|
||||||
|
|
|
||||||
|
|
@ -19,17 +19,6 @@ namespace Dalamud.Game.Text.SeStringHandling.Payloads
|
||||||
this.Icon = icon;
|
this.Icon = icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Initializes a new instance of the <see cref="IconPayload"/> class.
|
|
||||||
/// Create a Icon payload for the specified icon.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="iconIndex">Index of the icon.</param>
|
|
||||||
[Obsolete("IconPayload(uint) is deprecated, please use IconPayload(BitmapFontIcon).")]
|
|
||||||
public IconPayload(uint iconIndex)
|
|
||||||
: this((BitmapFontIcon)iconIndex)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="IconPayload"/> class.
|
/// Initializes a new instance of the <see cref="IconPayload"/> class.
|
||||||
/// Create a Icon payload for the specified icon.
|
/// Create a Icon payload for the specified icon.
|
||||||
|
|
@ -41,12 +30,6 @@ namespace Dalamud.Game.Text.SeStringHandling.Payloads
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public override PayloadType Type => PayloadType.Icon;
|
public override PayloadType Type => PayloadType.Icon;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets the index of the icon.
|
|
||||||
/// </summary>
|
|
||||||
[Obsolete("Use IconPayload.Icon")]
|
|
||||||
public uint IconIndex => (uint)this.Icon;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the icon the payload represents.
|
/// Gets or sets the icon the payload represents.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@ using System.Dynamic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
|
using Dalamud.Game;
|
||||||
using Dalamud.Game.ClientState;
|
using Dalamud.Game.ClientState;
|
||||||
using Dalamud.Game.ClientState.Actors.Types;
|
using Dalamud.Game.ClientState.Actors.Types;
|
||||||
using Dalamud.Game.ClientState.Actors.Types.NonPlayer;
|
using Dalamud.Game.ClientState.Actors.Types.NonPlayer;
|
||||||
using Dalamud.Game.ClientState.Structs.JobGauge;
|
using Dalamud.Game.ClientState.Structs.JobGauge;
|
||||||
using Dalamud.Game.Internal;
|
|
||||||
using Dalamud.Game.Internal.Gui.Addon;
|
using Dalamud.Game.Internal.Gui.Addon;
|
||||||
using Dalamud.Game.Internal.Gui.Toast;
|
using Dalamud.Game.Internal.Gui.Toast;
|
||||||
using Dalamud.Game.Text;
|
using Dalamud.Game.Text;
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
using Dalamud.Game;
|
using Dalamud.Game;
|
||||||
|
using Dalamud.Game.Internal;
|
||||||
using Dalamud.Hooking.Internal;
|
using Dalamud.Hooking.Internal;
|
||||||
using Dalamud.Interface.Windowing;
|
using Dalamud.Interface.Windowing;
|
||||||
using Dalamud.Plugin.Internal;
|
using Dalamud.Plugin.Internal;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue