96 lines
4.9 KiB
XML
96 lines
4.9 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0-windows</TargetFramework>
|
|
<PlatformTarget>x86</PlatformTarget>
|
|
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
|
|
<OutputType>Library</OutputType>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<Nullable>enable</Nullable>
|
|
<PublishAot>true</PublishAot>
|
|
<NativeLib>Shared</NativeLib>
|
|
<InvariantGlobalization>true</InvariantGlobalization>
|
|
<IlcOptimizationPreference>Size</IlcOptimizationPreference>
|
|
<StripSymbols>false</StripSymbols>
|
|
<RootNamespace>RynthCore.Plugin.RynthAi</RootNamespace>
|
|
<AssemblyName>RynthCore.Plugin.RynthAi</AssemblyName>
|
|
<Platforms>x86</Platforms>
|
|
<!-- Plugin manifest (embedded in the DLL; Plugins\Directory.Build.targets). minEngineApi is the
|
|
highest API use NOT behind a Has*/version check. Every call above v66 (vendor v67, plugin interfaces v68, use/weenie results and wield v70, trade v72, instance ids v73, VTank state v74, CloseContainer v76) is behind a Has*/version check with a fallback. -->
|
|
<RynthPluginMinEngineApi>66</RynthPluginMinEngineApi>
|
|
<RynthPluginDescription>The bot: combat, buffs, looting, navigation routes and metas.</RynthPluginDescription>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Plugins it can use when they are loaded (looked up at run time; optional, so they never block or reorder it). -->
|
|
<RynthPluginDependency Include="RynthNav" Optional="true" />
|
|
<RynthPluginDependency Include="RynthLua" Optional="true" />
|
|
<RynthPluginDependency Include="RynthNet" Optional="true" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Interfaces shared with other RynthSuite plugins (RynthLua uses RynthAi.Script, RynthNet RynthAi.Status). -->
|
|
<Compile Include="..\Shared\RynthAiScriptApi.cs" Link="Shared\RynthAiScriptApi.cs" />
|
|
<!-- RynthNet reads the bot state through RynthAi.Status. -->
|
|
<Compile Include="..\Shared\RynthAiStatusApi.cs" Link="Shared\RynthAiStatusApi.cs" />
|
|
<!-- RynthNav's navmesh path queries (stuck-recovery detours outdoors). -->
|
|
<Compile Include="..\Shared\RynthNavPathApi.cs" Link="Shared\RynthNavPathApi.cs" />
|
|
<!-- One logged, guarded way to use an object (who used what, and why). -->
|
|
<Compile Include="..\Shared\UseAudit.cs" Link="Shared\UseAudit.cs" />
|
|
<!-- Movement calls logged with the subsystem that sent them (stuck-cast diagnosis, 2026-10-05). -->
|
|
<Compile Include="..\Shared\MoveAudit.cs" Link="Shared\MoveAudit.cs" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="ImGui.NET" Version="1.91.6.1" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Offline tests (Tools\RynthCore.RynthAiHostTests) reach internal types. Test-only; no runtime effect. -->
|
|
<InternalsVisibleTo Include="RynthCore.RynthAiHostTests" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<EmbeddedResource Include="Combat\SpellData.txt" />
|
|
<!-- Creature weaknesses (ops/rynth-creature-resists.py builds both). -->
|
|
<EmbeddedResource Include="CreatureData\creature_resists.tsv" />
|
|
<EmbeddedResource Include="CreatureData\creature_types.txt" />
|
|
<!-- Creature weakness table (wcid -> damage multipliers) from the world database. Built in,
|
|
and also copied next to the DLL as Data\creature_weakness.json; a copy in
|
|
C:\Games\RynthSuite\RynthAi\Data wins over the built-in one. -->
|
|
<EmbeddedResource Include="Data\creature_weakness.json" />
|
|
<None Include="Data\creature_weakness.json" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<TrimmerRootAssembly Include="ImGui.NET" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\..\RynthCore\src\RynthCore.PluginCore\RynthCore.PluginCore.csproj" />
|
|
<ProjectReference Include="..\..\..\RynthCore\src\RynthCore.PluginSdk\RynthCore.PluginSdk.csproj" />
|
|
<ProjectReference Include="..\..\Shared\RynthCore.LootSdk\RynthCore.LootSdk.csproj" />
|
|
<ProjectReference Include="..\..\Shared\RynthCore.TerrainData\RynthCore.TerrainData.csproj" />
|
|
</ItemGroup>
|
|
|
|
<!--
|
|
Historically this target auto-copied the published plugin DLL into the
|
|
RynthCore engine's bin\Plugins\ folder so a fresh engine build would pick
|
|
up the plugin without manual intervention. That behaviour conflicts with
|
|
the launcher's plugin-discovery model (users opt-in via "Add Plugin DLL"
|
|
in the launcher UI, persisted to %APPDATA%\RynthCore\engine.json).
|
|
Auto-copy removed intentionally — deploy plugin DLLs to their canonical
|
|
home (e.g. C:\Games\RynthSuite\RynthAi\) and add the path in the launcher.
|
|
-->
|
|
|
|
|
|
|
|
<Target Name="RemoveBundledImGuiNativeFromBuild" AfterTargets="Build">
|
|
<Delete Files="$(OutputPath)cimgui.dll" Condition="Exists('$(OutputPath)cimgui.dll')" />
|
|
</Target>
|
|
|
|
<Target Name="RemoveBundledImGuiNativeFromPublish" AfterTargets="Publish" Condition="'$(PublishDir)' != ''">
|
|
<Delete Files="$(PublishDir)cimgui.dll" Condition="Exists('$(PublishDir)cimgui.dll')" />
|
|
</Target>
|
|
|
|
</Project>
|