Skip to content

Commit

Permalink
updated for apiX (#8)
Browse files Browse the repository at this point in the history
* updated packager, bumped version

* minor adjustments
  • Loading branch information
Eisenhuth authored Jul 2, 2024
1 parent e730635 commit c585c4a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions nael/nael/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ public class Configuration : IPluginConfiguration
public string Separator { get; set; } = ">";


private DalamudPluginInterface pluginInterface;
private IDalamudPluginInterface pluginInterface;

public void Initialize(DalamudPluginInterface pInterface)
public void Initialize(IDalamudPluginInterface pInterface)
{
pluginInterface = pInterface;
}
Expand Down
8 changes: 4 additions & 4 deletions nael/nael/NaelPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.IO;
using System.Reflection;
using System.Text.Json;
using Dalamud;
using Dalamud.Game;
using Dalamud.Game.Text;
using Dalamud.Game.Command;
using Dalamud.Game.Text.SeStringHandling;
Expand All @@ -23,7 +23,7 @@ public class NaelPlugin : IDalamudPlugin

private Configuration configuration;
private IChatGui chatGui;
[PluginService] private static DalamudPluginInterface PluginInterface { get; set; } = null!;
[PluginService] private static IDalamudPluginInterface PluginInterface { get; set; } = null!;
[PluginService] private static ICommandManager CommandManager { get; set; } = null!;
[PluginService] private static IClientState ClientState { get; set; } = null!;

Expand All @@ -37,7 +37,7 @@ public class NaelPlugin : IDalamudPlugin
private readonly NaelQuotes naelQuotes;
private Dictionary<string, string> naelQuotesDictionary;

public NaelPlugin([RequiredVersion("1.0")] DalamudPluginInterface dalamudPluginInterface, [RequiredVersion("1.0")] IChatGui chatGui, [RequiredVersion("1.0")] ICommandManager commandManager)
public NaelPlugin(IDalamudPluginInterface dalamudPluginInterface, IChatGui chatGui, ICommandManager commandManager)
{
this.chatGui = chatGui;

Expand Down Expand Up @@ -105,7 +105,7 @@ private static XivChatEntry NaelMessage(string message)
return entry;
}

private void OnChatMessage(XivChatType type, uint id, ref SeString sender, ref SeString message, ref bool handled)
private void OnChatMessage(XivChatType type, int timestamp, ref SeString sender, ref SeString message, ref bool handled)
{
if (!configuration.Enabled)
return;
Expand Down
2 changes: 1 addition & 1 deletion nael/nael/NaelPlugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"Name": "Nael'd it for UCOB",
"Description": "Translates Nael's quotes into mechanics.",
"Punchline": "because reading chat is not a mechanic",
"Changelog": "- see full changelog on github",
"Changelog": "- updated for Dalamud apiX",
"InternalName": "NaelPlugin",
"Tags": ["ui"],
"RepoUrl": "https://github.com/Eisenhuth/dalamud-nael",
Expand Down
6 changes: 3 additions & 3 deletions nael/nael/nael.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>NaelPlugin</AssemblyName>
<TargetFramework>net7.0-windows</TargetFramework>
<TargetFramework>net8.0-windows</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
<Platforms>x64;AnyCPU</Platforms>
<LangVersion>latest</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath>$(AppData)\Eisenhuth\DalamudDevPlugins\NaelPlugin\</OutputPath>
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
<AssemblyVersion>1.4.4.0</AssemblyVersion>
<AssemblyVersion>1.4.5.0</AssemblyVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<PackageProjectUrl>https://github.com/Eisenhuth/dalamud-nael</PackageProjectUrl>
Expand All @@ -36,7 +36,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DalamudPackager" Version="2.1.12" />
<PackageReference Include="DalamudPackager" Version="2.1.13" />
<PackageReference Include="FuzzySharp" Version="2.0.2" />
</ItemGroup>

Expand Down
8 changes: 4 additions & 4 deletions nael/nael/packages.lock.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"version": 1,
"dependencies": {
"net7.0-windows7.0": {
"net8.0-windows7.0": {
"DalamudPackager": {
"type": "Direct",
"requested": "[2.1.12, )",
"resolved": "2.1.12",
"contentHash": "Sc0PVxvgg4NQjcI8n10/VfUQBAS4O+Fw2pZrAqBdRMbthYGeogzu5+xmIGCGmsEZ/ukMOBuAqiNiB5qA3MRalg=="
"requested": "[2.1.13, )",
"resolved": "2.1.13",
"contentHash": "rMN1omGe8536f4xLMvx9NwfvpAc9YFFfeXJ1t4P4PE6Gu8WCIoFliR1sh07hM+bfODmesk/dvMbji7vNI+B/pQ=="
},
"FuzzySharp": {
"type": "Direct",
Expand Down

0 comments on commit c585c4a

Please sign in to comment.