Skip to content

Commit 3de3513

Browse files
Merge branch 'Update-Installation-Guides-and-Documentation-and-Bug-Fixes' into bone-hooks
2 parents f806ecd + cbe00db commit 3de3513

74 files changed

Lines changed: 1479 additions & 353 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎APIPatcher/APIPatcher.csproj‎

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netframework4.7.2</TargetFramework>
4+
<TargetFrameworks>netframework4.7.2</TargetFrameworks>
5+
<RuntimeIdentifiers>win-x64;win-x86;win-arm64;linux-x64;linux-arm;linux-arm64;linux-musl-x64;linux-musl-arm64;osx-x64;osx-arm64</RuntimeIdentifiers>
6+
<AssemblyName>Assembly-CSharp.APIPatcher.mm</AssemblyName>
7+
<Description>The MonoMod Patcher for the Inscryption API.</Description>
8+
<Version>2.24.2</Version>
9+
<Authors>Cyantist, IngoH, WhistleWind, Chaosyr and Contibutors</Authors>
10+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
11+
<LangVersion>Latest</LangVersion>
12+
<RootNamespace>APIPatcher</RootNamespace>
13+
<DebugType>full</DebugType>
14+
<NoWarn>$(NoWarn);AD0001;CS0612;CS8604;CS0252;CS0618;Harmony003;Publicizer001</NoWarn>
515
<ImplicitUsings>enable</ImplicitUsings>
616
<Nullable>disable</Nullable>
7-
<LangVersion>latest</LangVersion>
17+
<IsPackable>false</IsPackable>
18+
<SelfContained>true</SelfContained>
19+
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
20+
<IncludeBuildOutput>false</IncludeBuildOutput>
21+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
822
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
9-
<TargetName>Assembly-CSharp.APIPatcher.mm</TargetName>
10-
</PropertyGroup>
11-
12-
<PropertyGroup>
13-
<NoWarn>$(NoWarn);AD0001;CS0612;CS8604;CS0252;CS0618;Harmony003;Publicizer001</NoWarn>
23+
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1424
</PropertyGroup>
1525

1626
<ItemGroup>
@@ -22,4 +32,16 @@
2232
<ItemGroup>
2333
<ProjectReference Private="false" Include="..\InscryptionAPI\InscryptionAPI.csproj" />
2434
</ItemGroup>
35+
36+
<!--Net Framework References-->
37+
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
38+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
39+
</ItemGroup>
40+
41+
<!--Cleanup Publish for our Build System-->
42+
<Target Name="StripAllNuGetFromPublish" AfterTargets="ComputeFilesToPublish">
43+
<ItemGroup>
44+
<ResolvedFileToPublish Remove="@(ResolvedFileToPublish)" Condition="'%(ResolvedFileToPublish.Extension)' == '.dll' and '%(ResolvedFileToPublish.RelativePath)' != 'Assembly-CSharp.APIPatcher.mm.dll'" />
45+
</ItemGroup>
46+
</Target>
2547
</Project>

‎APIPatcher/ScriptableObjectLoader.cs‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@
33

44
namespace APIPatcher;
55

6+
/// <summary>
7+
/// Uses MonoMod to patch Unity's ScriptableObjectLoader to also use our version of the ScriptableObjectLoader seen in the Inscryption API itself.
8+
/// </summary>
9+
/// <typeparam name="T"></typeparam>
610
[MonoModPatch("global::ScriptableObjectLoader`1")]
711
internal class patch_ScriptableObjectLoader<T> : ScriptableObjectLoader<T> where T : UnityObject
812
{
13+
/// <summary>
14+
/// A List of AllData used within the overarching <see cref="ScriptableObjectLoader{T}"/> system, e.g. a List of <see cref="UnityObject"/>.
15+
/// </summary>
916
new public static List<T> AllData
1017
{
1118
get

‎APIPatcher/Singleton.cs‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@
44

55
namespace APIPatcher;
66

7+
/// <summary>
8+
/// Uses MonoMod to patch the Singleton for later usability by the Inscryption API.
9+
/// </summary>
10+
/// <typeparam name="T">A ManagedBehaviour associated with the Singleton System.</typeparam>
711
[MonoModPatch("global::Singleton`1")]
812
internal class patch_Singleton<T> : Singleton<T> where T : ManagedBehaviour
913
{
14+
/// <summary>
15+
/// A simple function used to Find a Specified UnityObject of the specified Type within the Active Scene, if it fails it tosses a Warning.
16+
/// </summary>
1017
new protected static void FindInstance()
1118
{
1219
if (m_Instance == null)
@@ -21,7 +28,13 @@ internal class patch_Singleton<T> : Singleton<T> where T : ManagedBehaviour
2128
}
2229
}
2330

31+
/// <summary>
32+
/// A simple class object for singletons in correlation with the API.
33+
/// </summary>
2434
internal static class Singleton
2535
{
36+
/// <summary>
37+
/// A ManualLogSource specifically for logging issues related to Singletons.
38+
/// </summary>
2639
internal static readonly ManualLogSource SingletonLogSource = Logger.CreateLogSource("Singleton");
2740
}

‎CHANGELOG.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# 2.24.2
2+
* Updated Installation Guides to Include Pulsar Mod Manager.
3+
* Added more null checks into the following patches `GainGemsForOpponents`, `LoseGemsForOpponents`, `GainTripleGemsForOpponents`, `LoseTripleGemsForOpponents`.
4+
* Removed `_specialSequencer` from `SpecialSequenceManager` as it was unused.
5+
* Removed `FontReplacementDataInitialized` from `LocalizationManager` as it was unused.
6+
* Added new Support for Custom Appearances.
7+
- Image Handling is to be handled by the mods using the API.
8+
- We now provide a storage of Base Game Decals that mods can reference without needing to instantiate their own.
9+
- This comes with 5 new Dictionaries `BaseGameCustomAppearances` (Internal), `BaseGameCustomAppearancesPublic`, `ModdedCustomAppearancesDictionary` (Internal), `ModdedCustomAppearancesDictionaryPublic`, `CombinedCustomAppearancesDictionaryPublic`.
10+
- This system is stored under the `TextureHelper` class.
11+
* Improved In-Code Documentation via XML Comments.
12+
113
# 2.24.1
214
- Added Extensions for setting the IconTexture of a Starter Deck.
315
- Added 2 Alternate Constructors for making a StarterDeck with a Display Name different from its Internal Name.
22.2 KB
Loading
12.9 KB
Loading
12.8 KB
Loading
14.7 KB
Loading
6.37 KB
Loading
51.9 KB
Loading

0 commit comments

Comments
 (0)