Adds a ClaimLink data model and ClaimLinkRegistry that loads from and writes to the savegame's keyed data store (protobuf-net, via WorldManager.SaveGame), so claim link state survives restarts without touching vanilla claim data. Also silences nullable warnings on statics that are guaranteed set by StartServerSide before any use, and on TryGetValue out-params guarded by the if.
38 lines
1.1 KiB
XML
38 lines
1.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
<OutputPath>bin\$(Configuration)\Mods\mod</OutputPath>
|
|
<Nullable>enable</Nullable>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Reference Include="VintagestoryAPI">
|
|
<HintPath>$(VINTAGE_STORY)/VintagestoryAPI.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="CommandHook">
|
|
<HintPath>$(COMMANDHOOK)/CommandHook.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="protobuf-net">
|
|
<HintPath>$(VINTAGE_STORY)/Lib/protobuf-net.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Include="modinfo.json">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Include="modicon.png" Condition="Exists('modicon.png')">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
</ItemGroup>
|
|
|
|
</Project>
|