namespace NecromancerTome { /// /// Exists ONLY because `PooledBinaryWriter.Write(bool)` (and every other Write overload) cannot /// be called from the main NecromancerHarmony project at all - see /// NecromancerTEPersistence.csproj's own comment for the full decompiled/tested reasoning /// (Assembly-CSharp.dll's overload set for Write includes a ReadOnlySpan<byte> variant /// that resolves against Unity/Mono's own mscorlib, which the main project's plain netstandard2.1 /// setup can't see - the compiler needs to resolve the WHOLE overload set just to pick the bool /// one, and fails hard). PooledBinaryReader.ReadBoolean() has no such problem (confirmed /// separately - it's a plain no-overload method, not an ambiguous Write-style one) and is called /// directly from TEFeaturePyramidWard.Read() in the main project as normal; only the WRITE side /// needs to go through this satellite assembly. /// /// TEFeaturePyramidWard.Write() (HarmonySrc/PyramidWardPatch.cs, in the main project) calls this /// instead of touching PooledBinaryWriter.Write itself. /// public static class PyramidWardWriteHelper { public static void Write(PooledBinaryWriter _bw, bool _effectOn, bool _zoneShown) { _bw.Write(_effectOn); _bw.Write(_zoneShown); } } }