Compare commits
No commits in common. "master" and "v0.17" have entirely different histories.
@ -1 +1 @@
|
||||
Subproject commit a63c8e7154e272374ffa03d5c801736d4229e38a
|
||||
Subproject commit 6f0aaa55bce6ec79fd4d72f84f21597b39e5445d
|
2
ECommons
2
ECommons
@ -1 +1 @@
|
||||
Subproject commit 11fd2f06e1374e846e1aada06071da5fc7ef697a
|
||||
Subproject commit d238d4188e8b47b11252d75cb5e4b678b8da2756
|
@ -24,7 +24,7 @@ internal sealed class AllaganToolsIpc : IDisposable
|
||||
private IInventoryMonitor _inventories;
|
||||
private IListService _lists;
|
||||
|
||||
public AllaganToolsIpc(IDalamudPluginInterface pluginInterface, IChatGui chatGui, DalamudReflector dalamudReflector,
|
||||
public AllaganToolsIpc(DalamudPluginInterface pluginInterface, IChatGui chatGui, DalamudReflector dalamudReflector,
|
||||
IFramework framework, IPluginLog pluginLog)
|
||||
{
|
||||
_chatGui = chatGui;
|
||||
@ -65,8 +65,10 @@ internal sealed class AllaganToolsIpc : IDisposable
|
||||
{
|
||||
if (_dalamudReflector.TryGetDalamudPlugin("Allagan Tools", out var it, false, true))
|
||||
{
|
||||
var hostedPlugin = it.GetType().BaseType!;
|
||||
var host = hostedPlugin.GetField("host", BindingFlags.NonPublic | BindingFlags.Instance)!.GetValue(it)!;
|
||||
var pluginLoader = it.GetType()
|
||||
.GetProperty("PluginLoader", BindingFlags.NonPublic | BindingFlags.Instance)!
|
||||
.GetValue(it)!;
|
||||
var host = pluginLoader.GetType().GetProperty("Host")!.GetValue(pluginLoader)!;
|
||||
var serviceProvider = host.GetType().GetProperty("Services")!.GetValue(host)!;
|
||||
var getServiceMethod = serviceProvider.GetType().GetMethod("GetService")!;
|
||||
object GetService(Type t) => getServiceMethod.Invoke(serviceProvider, [t])!;
|
||||
@ -126,7 +128,7 @@ internal sealed class AllaganToolsIpc : IDisposable
|
||||
|
||||
public Dictionary<Character, Currencies> CountCurrencies()
|
||||
{
|
||||
_pluginLog.Verbose($"Updating characters with {_characters.GetType()} and {_inventories.GetType()}");
|
||||
_pluginLog.Debug($"{_characters.GetType()}, {_inventories.GetType()}");
|
||||
var characters = _characters.All.ToDictionary(x => x.CharacterId, x => x);
|
||||
return _inventories.All
|
||||
.Where(x => characters.ContainsKey(x.Value.CharacterId))
|
||||
|
@ -3,26 +3,27 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Influx.AllaganTools;
|
||||
|
||||
internal sealed class FilterResult
|
||||
{
|
||||
private readonly IEnumerable _searchResultList;
|
||||
private readonly object _delegate;
|
||||
private readonly PropertyInfo _sortedItems;
|
||||
|
||||
public FilterResult(IEnumerable searchResultList)
|
||||
public FilterResult(object @delegate)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(searchResultList);
|
||||
_searchResultList = searchResultList;
|
||||
ArgumentNullException.ThrowIfNull(@delegate);
|
||||
_delegate = @delegate;
|
||||
_sortedItems =
|
||||
_delegate.GetType().GetProperty("SortedItems") ?? throw new MissingMemberException();
|
||||
}
|
||||
|
||||
public IReadOnlyList<SortingResult> GenerateFilteredList()
|
||||
{
|
||||
return _searchResultList
|
||||
return ((IEnumerable)_sortedItems.GetValue(_delegate)!)
|
||||
.Cast<object>()
|
||||
.Select(x => x.GetType()
|
||||
.GetField("_sortingResult", BindingFlags.Instance | BindingFlags.NonPublic)!
|
||||
.GetValue(x)!)
|
||||
.Select(x => new SortingResult(x))
|
||||
.ToList();
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Influx.AllaganTools;
|
||||
@ -24,6 +23,6 @@ internal sealed class ListService : IListService
|
||||
public FilterResult? GetFilterByKeyOrName(string keyOrName)
|
||||
{
|
||||
var f = _getListByKeyOrName.Invoke(_listService, [keyOrName]);
|
||||
return f != null ? new FilterResult((IEnumerable)_refreshList.Invoke(_listFilterService, [f])!) : null;
|
||||
return f != null ? new FilterResult(_refreshList.Invoke(_listFilterService, [f])!) : null;
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ internal sealed class SortingResult
|
||||
public ItemFlags Flags { get; }
|
||||
public int Quantity { get; }
|
||||
|
||||
public bool IsHq => Flags.HasFlag(ItemFlags.HighQuality);
|
||||
public bool IsHq => Flags.HasFlag(ItemFlags.HQ);
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
|
@ -1,20 +1,67 @@
|
||||
<Project Sdk="Dalamud.NET.Sdk/10.0.0">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<Version>1.3</Version>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
<Version>0.17</Version>
|
||||
<LangVersion>12</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
||||
<OutputPath>dist</OutputPath>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<PathMap Condition="$(SolutionDir) != ''">$(SolutionDir)=X:\</PathMap>
|
||||
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
|
||||
<DebugType>portable</DebugType>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="..\LLib\LLib.targets"/>
|
||||
<Import Project="..\LLib\RenameZip.targets"/>
|
||||
<PropertyGroup>
|
||||
<DalamudLibPath>$(appdata)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))'">
|
||||
<DalamudLibPath>$(DALAMUD_HOME)/</DalamudLibPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DalamudPackager" Version="2.1.12"/>
|
||||
<PackageReference Include="InfluxDB.Client" Version="4.14.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="9.0.0-preview.1.24081.5" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="Dalamud">
|
||||
<HintPath>$(DalamudLibPath)Dalamud.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="ImGui.NET">
|
||||
<HintPath>$(DalamudLibPath)ImGui.NET.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="Lumina">
|
||||
<HintPath>$(DalamudLibPath)Lumina.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="Lumina.Excel">
|
||||
<HintPath>$(DalamudLibPath)Lumina.Excel.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>$(DalamudLibPath)Newtonsoft.Json.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="FFXIVClientStructs">
|
||||
<HintPath>$(DalamudLibPath)FFXIVClientStructs.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\AutoRetainerAPI\AutoRetainerAPI\AutoRetainerAPI.csproj" />
|
||||
<ProjectReference Include="..\ECommons\ECommons\ECommons.csproj" />
|
||||
<ProjectReference Include="..\LLib\LLib.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="RenameLatestZip" AfterTargets="PackagePlugin">
|
||||
<Exec Command="rename $(OutDir)$(AssemblyName)\latest.zip $(AssemblyName)-$(Version).zip"/>
|
||||
</Target>
|
||||
</Project>
|
||||
|
@ -216,10 +216,6 @@ internal sealed class InfluxStatisticsClient : IDisposable
|
||||
{
|
||||
foreach (var (expIndex, job) in _expToJobs)
|
||||
{
|
||||
// last update to this char was in 6.x, so we don't have PCT/VPR data
|
||||
if (localStats.ClassJobLevels.Count <= expIndex)
|
||||
continue;
|
||||
|
||||
var level = localStats.ClassJobLevels[expIndex];
|
||||
if (level > 0)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ namespace Influx;
|
||||
internal sealed class InfluxPlugin : IDalamudPlugin
|
||||
{
|
||||
private readonly object _lock = new();
|
||||
private readonly IDalamudPluginInterface _pluginInterface;
|
||||
private readonly DalamudPluginInterface _pluginInterface;
|
||||
private readonly Configuration _configuration;
|
||||
private readonly IClientState _clientState;
|
||||
private readonly ICommandManager _commandManager;
|
||||
@ -38,7 +38,7 @@ internal sealed class InfluxPlugin : IDalamudPlugin
|
||||
private readonly ConfigurationWindow _configurationWindow;
|
||||
private readonly Timer _timer;
|
||||
|
||||
public InfluxPlugin(IDalamudPluginInterface pluginInterface, IClientState clientState, IPluginLog pluginLog,
|
||||
public InfluxPlugin(DalamudPluginInterface pluginInterface, IClientState clientState, IPluginLog pluginLog,
|
||||
ICommandManager commandManager, IChatGui chatGui, IDataManager dataManager, IFramework framework,
|
||||
IAddonLifecycle addonLifecycle, IGameGui gameGui, ICondition condition)
|
||||
{
|
||||
@ -50,7 +50,7 @@ internal sealed class InfluxPlugin : IDalamudPlugin
|
||||
_pluginLog = pluginLog;
|
||||
DalamudReflector dalamudReflector = new DalamudReflector(pluginInterface, framework, pluginLog);
|
||||
_allaganToolsIpc = new AllaganToolsIpc(pluginInterface, chatGui, dalamudReflector, framework, _pluginLog);
|
||||
_submarineTrackerIpc = new SubmarineTrackerIpc(dalamudReflector);
|
||||
_submarineTrackerIpc = new SubmarineTrackerIpc(dalamudReflector, chatGui, pluginLog);
|
||||
_localStatsCalculator =
|
||||
new LocalStatsCalculator(pluginInterface, clientState, addonLifecycle, pluginLog, dataManager);
|
||||
_fcStatsCalculator = new FcStatsCalculator(this, pluginInterface, clientState, addonLifecycle, gameGui,
|
||||
|
@ -18,7 +18,7 @@ namespace Influx.LocalStatistics;
|
||||
|
||||
internal sealed class FcStatsCalculator : IDisposable
|
||||
{
|
||||
private readonly IDalamudPluginInterface _pluginInterface;
|
||||
private readonly DalamudPluginInterface _pluginInterface;
|
||||
private readonly IClientState _clientState;
|
||||
private readonly IAddonLifecycle _addonLifecycle;
|
||||
private readonly IGameGui _gameGui;
|
||||
@ -33,7 +33,7 @@ internal sealed class FcStatsCalculator : IDisposable
|
||||
|
||||
public FcStatsCalculator(
|
||||
IDalamudPlugin plugin,
|
||||
IDalamudPluginInterface pluginInterface,
|
||||
DalamudPluginInterface pluginInterface,
|
||||
IClientState clientState,
|
||||
IAddonLifecycle addonLifecycle,
|
||||
IGameGui gameGui,
|
||||
@ -86,9 +86,9 @@ internal sealed class FcStatsCalculator : IDisposable
|
||||
if (infoProxy != null)
|
||||
{
|
||||
var fcProxy = (InfoProxyFreeCompany*)infoProxy;
|
||||
if (fcProxy->Id != 0)
|
||||
if (fcProxy->ID != 0)
|
||||
{
|
||||
_pluginLog.Information($"Requesting post-process, FC is {fcProxy->Id}");
|
||||
_pluginLog.Information($"Requesting post-process, FC is {fcProxy->ID}");
|
||||
_autoRetainerApi.RequestCharacterPostprocess();
|
||||
}
|
||||
else
|
||||
@ -157,14 +157,14 @@ internal sealed class FcStatsCalculator : IDisposable
|
||||
if (infoProxy != null)
|
||||
{
|
||||
var fcProxy = (InfoProxyFreeCompany*)infoProxy;
|
||||
ulong localContentId = fcProxy->Id;
|
||||
ulong localContentId = fcProxy->ID;
|
||||
if (localContentId != 0)
|
||||
{
|
||||
var atkArrays = Framework.Instance()->GetUIModule()->GetRaptureAtkModule()->AtkModule
|
||||
var atkArrays = Framework.Instance()->GetUiModule()->GetRaptureAtkModule()->AtkModule
|
||||
.AtkArrayDataHolder;
|
||||
if (atkArrays.NumberArrayCount > 51)
|
||||
if (atkArrays.NumberArrayCount > 50)
|
||||
{
|
||||
var fcArrayData = atkArrays.GetNumberArrayData(51);
|
||||
var fcArrayData = atkArrays.GetNumberArrayData(50);
|
||||
FcStats fcStats = new FcStats
|
||||
{
|
||||
ContentId = localContentId,
|
||||
|
@ -27,7 +27,7 @@ internal sealed class LocalStatsCalculator : IDisposable
|
||||
|
||||
private const uint JointQuest = 65781;
|
||||
|
||||
private readonly IDalamudPluginInterface _pluginInterface;
|
||||
private readonly DalamudPluginInterface _pluginInterface;
|
||||
private readonly IClientState _clientState;
|
||||
private readonly IAddonLifecycle _addonLifecycle;
|
||||
private readonly IPluginLog _pluginLog;
|
||||
@ -40,7 +40,7 @@ internal sealed class LocalStatsCalculator : IDisposable
|
||||
|
||||
|
||||
public LocalStatsCalculator(
|
||||
IDalamudPluginInterface pluginInterface,
|
||||
DalamudPluginInterface pluginInterface,
|
||||
IClientState clientState,
|
||||
IAddonLifecycle addonLifecycle,
|
||||
IPluginLog pluginLog,
|
||||
@ -58,9 +58,11 @@ internal sealed class LocalStatsCalculator : IDisposable
|
||||
Task.Run(() =>
|
||||
{
|
||||
List<QuestInfo> msq = new();
|
||||
foreach (var quest in dataManager.GetExcelSheet<Quest>()!.Where(x => x.JournalGenre.Row is >= 1 and <= 13))
|
||||
foreach (var quest in dataManager.GetExcelSheet<Quest>()!.Where(x => x.JournalGenre.Row is >= 1 and <= 12))
|
||||
{
|
||||
var previousQuests = quest.PreviousQuest?.Select(x => x.Row).Where(x => x != 0).ToList();
|
||||
if (previousQuests != null && quest.Unknown12 != 0)
|
||||
previousQuests.Add(quest.Unknown12);
|
||||
|
||||
msq.Add(new QuestInfo
|
||||
{
|
||||
@ -246,8 +248,8 @@ internal sealed class LocalStatsCalculator : IDisposable
|
||||
private unsafe List<short> ExtractClassJobLevels(PlayerState* playerState)
|
||||
{
|
||||
List<short> levels = new();
|
||||
for (int i = 0; i < 32; ++i)
|
||||
levels.Add(playerState->ClassJobLevels[i]);
|
||||
for (int i = 0; i < 30; ++i)
|
||||
levels.Add(playerState->ClassJobLevelArray[i]);
|
||||
return levels;
|
||||
}
|
||||
|
||||
|
21
Influx/SubmarineTracker/FcSubmarines.cs
Normal file
21
Influx/SubmarineTracker/FcSubmarines.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Influx.SubmarineTracker;
|
||||
|
||||
internal sealed class FcSubmarines
|
||||
{
|
||||
public FcSubmarines(object @delegate)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(@delegate);
|
||||
Submarines = ((IEnumerable)@delegate.GetType().GetField("Submarines")!.GetValue(@delegate)!)
|
||||
.Cast<object>()
|
||||
.Select(x => new Submarine(x))
|
||||
.ToList()
|
||||
.AsReadOnly();
|
||||
}
|
||||
|
||||
public IList<Submarine> Submarines { get; }
|
||||
}
|
@ -8,11 +8,9 @@ internal sealed class Submarine
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(@delegate);
|
||||
Type type = @delegate.GetType();
|
||||
FreeCompanyId = (ulong)type.GetField("FreeCompanyId")!.GetValue(@delegate)!;
|
||||
Name = (string)type.GetField("Name")!.GetValue(@delegate)!;
|
||||
Level = (ushort)type.GetField("Rank")!.GetValue(@delegate)!;
|
||||
Name = (string)type.GetProperty("Name")!.GetValue(@delegate)!;
|
||||
Level = (ushort)type.GetProperty("Rank")!.GetValue(@delegate)!;
|
||||
Build = new Build(type.GetProperty("Build")!.GetValue(@delegate)!);
|
||||
ReturnTime = (DateTime)type.GetField("ReturnTime")!.GetValue(@delegate)!;
|
||||
|
||||
try
|
||||
{
|
||||
@ -30,6 +28,8 @@ internal sealed class Submarine
|
||||
(uint predictedLevel, double _) = ((uint, double))type.GetMethod("PredictExpGrowth")!.Invoke(@delegate, Array.Empty<object?>())!;
|
||||
PredictedLevel = (ushort)predictedLevel;
|
||||
}
|
||||
|
||||
ReturnTime = (DateTime)type.GetField("ReturnTime")!.GetValue(@delegate)!;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
@ -37,7 +37,6 @@ internal sealed class Submarine
|
||||
}
|
||||
}
|
||||
|
||||
public ulong FreeCompanyId { get; }
|
||||
public string Name { get; }
|
||||
public ushort Level { get; }
|
||||
public ushort PredictedLevel { get; }
|
||||
|
@ -3,8 +3,8 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using Dalamud.Plugin;
|
||||
using Dalamud.Plugin.Services;
|
||||
using Influx.AllaganTools;
|
||||
using LLib;
|
||||
|
||||
@ -13,10 +13,14 @@ namespace Influx.SubmarineTracker;
|
||||
internal sealed class SubmarineTrackerIpc
|
||||
{
|
||||
private readonly DalamudReflector _dalamudReflector;
|
||||
private readonly IChatGui _chatGui;
|
||||
private readonly IPluginLog _pluginLog;
|
||||
|
||||
public SubmarineTrackerIpc(DalamudReflector dalamudReflector)
|
||||
public SubmarineTrackerIpc(DalamudReflector dalamudReflector, IChatGui chatGui, IPluginLog pluginLog)
|
||||
{
|
||||
_dalamudReflector = dalamudReflector;
|
||||
_chatGui = chatGui;
|
||||
_pluginLog = pluginLog;
|
||||
}
|
||||
|
||||
[SuppressMessage("Reliability", "CA2000:Dispose objects before losing scope")]
|
||||
@ -24,41 +28,58 @@ internal sealed class SubmarineTrackerIpc
|
||||
{
|
||||
if (_dalamudReflector.TryGetDalamudPlugin("Submarine Tracker", out IDalamudPlugin? it, false, true))
|
||||
{
|
||||
var databaseCache = it.GetType()
|
||||
.GetField("DatabaseCache", BindingFlags.Static | BindingFlags.Public)!
|
||||
.GetValue(null)!;
|
||||
var getSubmarines = databaseCache.GetType()
|
||||
.GetMethod("GetSubmarines", [])!;
|
||||
var knownSubmarineData = ((IEnumerable)getSubmarines.Invoke(databaseCache, [])!).Cast<object>();
|
||||
return knownSubmarineData
|
||||
.Select(x => new Submarine(x))
|
||||
.GroupBy(x => x.FreeCompanyId)
|
||||
.Select(x => new SubmarineInfo(
|
||||
characters.SingleOrDefault(y =>
|
||||
y.CharacterType == CharacterType.FreeCompanyChest && y.CharacterId == x.Key),
|
||||
x.ToList()
|
||||
))
|
||||
var submarineData = it.GetType().Assembly.GetType("SubmarineTracker.Data.Submarines");
|
||||
var knownSubmarineData = submarineData!.GetField("KnownSubmarines")!;
|
||||
return ((IEnumerable)knownSubmarineData.GetValue(null)!).Cast<object>()
|
||||
.Select(x => new
|
||||
{
|
||||
OwnerId = (ulong)x.GetType().GetProperty("Key")!.GetValue(x)!,
|
||||
FcWrapper = x.GetType().GetProperty("Value")!.GetValue(x)!
|
||||
})
|
||||
.Select(x => new
|
||||
{
|
||||
Owner = characters.FirstOrDefault(y => y.CharacterId == x.OwnerId),
|
||||
Subs = new FcSubmarines(x.FcWrapper).Submarines,
|
||||
})
|
||||
.Where(x => x.Owner != null)
|
||||
.Select(x => new
|
||||
{
|
||||
x.Subs,
|
||||
Fc = characters.FirstOrDefault(y => y.CharacterId == x.Owner!.FreeCompanyId)
|
||||
})
|
||||
.Where(x => x.Fc != null)
|
||||
.ToDictionary(x => x.Fc!, x => x.Subs);
|
||||
.Select(x => new SubmarineInfo(x.Fc!, x.Subs))
|
||||
.GroupBy(x => x.Fc)
|
||||
.ToDictionary(x => x.Key, x =>
|
||||
{
|
||||
if (x.Count() != 1)
|
||||
{
|
||||
_chatGui.PrintError($"[Influx] Unable to collect data, FC '{x.Key.Name}' is included in statistics through multiple characters/owners.");
|
||||
var characterNames = characters.Where(y => y.FreeCompanyId == x.Key.CharacterId).Select(y => y.Name).ToList();
|
||||
throw new InvalidOperationException($"Unable to collect FC data for FC '{x.Key}'{Environment.NewLine}Multiple characters include the same FC ({string.Join(", ", characterNames)}), only one of them should have 'Include Free Company Statistics' set");
|
||||
}
|
||||
|
||||
return x.Single().Subs;
|
||||
});
|
||||
}
|
||||
else
|
||||
return new Dictionary<Character, List<SubmarineStats>>();
|
||||
}
|
||||
|
||||
private sealed record SubmarineInfo(Character? Fc, List<SubmarineStats> Subs)
|
||||
private sealed record SubmarineInfo(Character Fc, List<SubmarineStats> Subs)
|
||||
{
|
||||
public SubmarineInfo(Character? fc, List<Submarine> subs)
|
||||
public SubmarineInfo(Character fc, IList<Submarine> subs)
|
||||
: this(fc, subs.Select(x => Convert(fc, subs.IndexOf(x), x)).ToList())
|
||||
{
|
||||
}
|
||||
|
||||
private static SubmarineStats Convert(Character? fc, int index, Submarine y)
|
||||
private static SubmarineStats Convert(Character fc, int index, Submarine y)
|
||||
{
|
||||
return new SubmarineStats
|
||||
{
|
||||
Id = index,
|
||||
Name = y.Name,
|
||||
WorldId = fc?.WorldId ?? 0,
|
||||
WorldId = fc.WorldId,
|
||||
Level = y.Level,
|
||||
PredictedLevel = y.PredictedLevel,
|
||||
Hull = y.Build.HullIdentifier,
|
||||
|
@ -14,14 +14,14 @@ namespace Influx.Windows;
|
||||
|
||||
internal sealed class ConfigurationWindow : Window
|
||||
{
|
||||
private readonly IDalamudPluginInterface _pluginInterface;
|
||||
private readonly DalamudPluginInterface _pluginInterface;
|
||||
private readonly IClientState _clientState;
|
||||
private readonly Configuration _configuration;
|
||||
private readonly AllaganToolsIpc _allaganToolsIpc;
|
||||
private string[] _filterNames = [];
|
||||
private string[] _filterNames = Array.Empty<string>();
|
||||
private int _filterIndexToAdd;
|
||||
|
||||
public ConfigurationWindow(IDalamudPluginInterface pluginInterface, IClientState clientState,
|
||||
public ConfigurationWindow(DalamudPluginInterface pluginInterface, IClientState clientState,
|
||||
Configuration configuration, AllaganToolsIpc allaganToolsIpc)
|
||||
: base("Configuration###InfluxConfiguration")
|
||||
{
|
||||
|
@ -4,21 +4,9 @@
|
||||
"net8.0-windows7.0": {
|
||||
"DalamudPackager": {
|
||||
"type": "Direct",
|
||||
"requested": "[2.1.13, )",
|
||||
"resolved": "2.1.13",
|
||||
"contentHash": "rMN1omGe8536f4xLMvx9NwfvpAc9YFFfeXJ1t4P4PE6Gu8WCIoFliR1sh07hM+bfODmesk/dvMbji7vNI+B/pQ=="
|
||||
},
|
||||
"DotNet.ReproducibleBuilds": {
|
||||
"type": "Direct",
|
||||
"requested": "[1.1.1, )",
|
||||
"resolved": "1.1.1",
|
||||
"contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==",
|
||||
"dependencies": {
|
||||
"Microsoft.SourceLink.AzureRepos.Git": "1.1.1",
|
||||
"Microsoft.SourceLink.Bitbucket.Git": "1.1.1",
|
||||
"Microsoft.SourceLink.GitHub": "1.1.1",
|
||||
"Microsoft.SourceLink.GitLab": "1.1.1"
|
||||
}
|
||||
"requested": "[2.1.12, )",
|
||||
"resolved": "2.1.12",
|
||||
"contentHash": "Sc0PVxvgg4NQjcI8n10/VfUQBAS4O+Fw2pZrAqBdRMbthYGeogzu5+xmIGCGmsEZ/ukMOBuAqiNiB5qA3MRalg=="
|
||||
},
|
||||
"InfluxDB.Client": {
|
||||
"type": "Direct",
|
||||
@ -41,16 +29,6 @@
|
||||
"resolved": "9.0.0-preview.1.24081.5",
|
||||
"contentHash": "aAR7YW+pUUdvHk3vj7GtAi71dWGDIuY9270lsmQ6lKw23zzY+r8pLP3cGNbJdlnA9VWl+S+gnIVkBCqj2ROlEg=="
|
||||
},
|
||||
"Microsoft.SourceLink.Gitea": {
|
||||
"type": "Direct",
|
||||
"requested": "[8.0.0, )",
|
||||
"resolved": "8.0.0",
|
||||
"contentHash": "KOBodmDnlWGIqZt2hT47Q69TIoGhIApDVLCyyj9TT5ct8ju16AbHYcB4XeknoHX562wO1pMS/1DfBIZK+V+sxg==",
|
||||
"dependencies": {
|
||||
"Microsoft.Build.Tasks.Git": "8.0.0",
|
||||
"Microsoft.SourceLink.Common": "8.0.0"
|
||||
}
|
||||
},
|
||||
"CsvHelper": {
|
||||
"type": "Transitive",
|
||||
"resolved": "30.0.1",
|
||||
@ -76,11 +54,6 @@
|
||||
"Newtonsoft.Json": "13.0.1"
|
||||
}
|
||||
},
|
||||
"Microsoft.Build.Tasks.Git": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.0.0",
|
||||
"contentHash": "bZKfSIKJRXLTuSzLudMFte/8CempWjVamNUR5eHJizsy+iuOuO/k2gnh7W0dHJmYY0tBf+gUErfluCv5mySAOQ=="
|
||||
},
|
||||
"Microsoft.Extensions.Primitives": {
|
||||
"type": "Transitive",
|
||||
"resolved": "2.2.0",
|
||||
@ -99,47 +72,6 @@
|
||||
"System.Buffers": "4.5.0"
|
||||
}
|
||||
},
|
||||
"Microsoft.SourceLink.AzureRepos.Git": {
|
||||
"type": "Transitive",
|
||||
"resolved": "1.1.1",
|
||||
"contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==",
|
||||
"dependencies": {
|
||||
"Microsoft.Build.Tasks.Git": "1.1.1",
|
||||
"Microsoft.SourceLink.Common": "1.1.1"
|
||||
}
|
||||
},
|
||||
"Microsoft.SourceLink.Bitbucket.Git": {
|
||||
"type": "Transitive",
|
||||
"resolved": "1.1.1",
|
||||
"contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==",
|
||||
"dependencies": {
|
||||
"Microsoft.Build.Tasks.Git": "1.1.1",
|
||||
"Microsoft.SourceLink.Common": "1.1.1"
|
||||
}
|
||||
},
|
||||
"Microsoft.SourceLink.Common": {
|
||||
"type": "Transitive",
|
||||
"resolved": "8.0.0",
|
||||
"contentHash": "dk9JPxTCIevS75HyEQ0E4OVAFhB2N+V9ShCXf8Q6FkUQZDkgLI12y679Nym1YqsiSysuQskT7Z+6nUf3yab6Vw=="
|
||||
},
|
||||
"Microsoft.SourceLink.GitHub": {
|
||||
"type": "Transitive",
|
||||
"resolved": "1.1.1",
|
||||
"contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==",
|
||||
"dependencies": {
|
||||
"Microsoft.Build.Tasks.Git": "1.1.1",
|
||||
"Microsoft.SourceLink.Common": "1.1.1"
|
||||
}
|
||||
},
|
||||
"Microsoft.SourceLink.GitLab": {
|
||||
"type": "Transitive",
|
||||
"resolved": "1.1.1",
|
||||
"contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==",
|
||||
"dependencies": {
|
||||
"Microsoft.Build.Tasks.Git": "1.1.1",
|
||||
"Microsoft.SourceLink.Common": "1.1.1"
|
||||
}
|
||||
},
|
||||
"Microsoft.Win32.SystemEvents": {
|
||||
"type": "Transitive",
|
||||
"resolved": "6.0.0",
|
||||
@ -263,17 +195,14 @@
|
||||
"autoretainerapi": {
|
||||
"type": "Project",
|
||||
"dependencies": {
|
||||
"ECommons": "[2.2.0.2, )"
|
||||
"ECommons": "[2.1.0.7, )"
|
||||
}
|
||||
},
|
||||
"ecommons": {
|
||||
"type": "Project"
|
||||
},
|
||||
"llib": {
|
||||
"type": "Project",
|
||||
"dependencies": {
|
||||
"DalamudPackager": "[2.1.13, )"
|
||||
}
|
||||
"type": "Project"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
2
LLib
2
LLib
@ -1 +1 @@
|
||||
Subproject commit 8d947be6784804a7cab120d596dd54e88e548efc
|
||||
Subproject commit 3792244261a9f5426a7916f5a6dd1966238ba84a
|
Loading…
Reference in New Issue
Block a user