Fix 1.6 build and indexed map clearing
This commit is contained in:
@@ -1 +1,2 @@
|
||||
[Oo]bj/
|
||||
[Bb]in/
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||
</packageSources>
|
||||
</configuration>
|
||||
@@ -3,6 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<OutDir>..\..\1.6\Assemblies\</OutDir>
|
||||
<Copyright>Copyright (c) 2026 Bradson</Copyright>
|
||||
<PolySharpUseEmbeddedAttributeForGeneratedTypes>false</PolySharpUseEmbeddedAttributeForGeneratedTypes>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DefineConstants>DEBUG;V1_5;V1_6</DefineConstants>
|
||||
@@ -11,8 +12,12 @@
|
||||
<DefineConstants>V1_5;V1_6</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.6.*" />
|
||||
<PackageReference Include="Lib.Harmony" Version="2.3.*" ExcludeAssets="runtime" />
|
||||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net48" Version="1.0.3" PrivateAssets="all" />
|
||||
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.6.4871" />
|
||||
<PackageReference Include="Lib.Harmony" Version="2.3.6" ExcludeAssets="runtime" />
|
||||
<PackageReference Update="Zetrith.Prepatcher" Version="1.2.0" />
|
||||
<PackageReference Update="PolySharp" Version="1.16.0" />
|
||||
<PackageReference Update="Krafs.Publicizer" Version="2.3.2" />
|
||||
<Publicize Include="mscorlib:System.Collections.Generic.Dictionary`2._buckets" />
|
||||
<Publicize Include="mscorlib:System.Collections.Generic.Dictionary`2._entries" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -140,6 +140,7 @@ public class IndexedFishMap<TX, TY> : IList<(TX X, TY Y)>, IList, IReadOnlyList<
|
||||
public void Clear()
|
||||
{
|
||||
_xIndices.Clear();
|
||||
_yIndices.Clear();
|
||||
_items.Clear();
|
||||
}
|
||||
|
||||
@@ -256,4 +257,4 @@ public class IndexedFishMap<TX, TY> : IList<(TX X, TY Y)>, IList, IReadOnlyList<
|
||||
|
||||
private static (TX X, TY Y) EnsureCorrectType([NotNullWhen(true)] object? item)
|
||||
=> item is ValueTuple<TX, TY> t ? t : ThrowHelper.ThrowArgumentException<(TX X, TY Y)>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user