Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
205 commits
Select commit Hold shift + click to select a range
444d16d
UPDATE Guides Part 1
Chaosyr Sep 30, 2026
e4fd1fb
UPDATE Guides Part 2
Chaosyr Sep 30, 2026
a58736c
Null Checks and Custom Appearances
Chaosyr Oct 1, 2026
48a0835
Update thunderstore.toml
Chaosyr Oct 1, 2026
ce8e0b9
Update Thunderstore.toml
Chaosyr Oct 1, 2026
0bd72f8
XML Docs Part I, Rename Internal Config Keys
Chaosyr Oct 3, 2026
45431da
ReInternalize 3 ConfigEntry's
Chaosyr Oct 3, 2026
8d07b07
XML Docs Part II, and some Cleanup
Chaosyr Oct 3, 2026
d2f115b
Add Debug Logging related to `GenerateTradeCardsWithCostTier`.
Chaosyr Oct 4, 2026
ce2a6b1
Attempt to fix the Description of configEnableTraderCostTierBugDebugL…
Chaosyr Oct 4, 2026
d8d1160
Correctly Fix Key.
Chaosyr Oct 4, 2026
cbe00db
Add queued background override to pixel appearances (#340)
chytridi05 Oct 30, 2026
908b1a8
Add way to easily patch and modify the default bone gain when a playe…
HumabHatterZed Oct 30, 2026
21949ee
Add some missing XML and minor cost fix (#342)
HumabHatterZed Nov 10, 2026
a2ca935
Add XML Comments to the GUID Module of the API.
Chaosyr Nov 11, 2026
b8cf619
Add XML Docs to the Tests Module of the Community Patch.
Chaosyr Nov 11, 2026
212ff8a
Add XML Docs to the Community Patch Sequencers Module
Chaosyr Nov 13, 2026
76aad2b
Add XML for CardAppearanceBehaviourManager
HumabHatterZed Nov 13, 2026
27c218e
Add XML for AbilityManager
HumabHatterZed Nov 13, 2026
1e4915a
Add XML to CostProperties
HumabHatterZed Nov 13, 2026
90a6226
Add/fix XML for CardExtensionsHelpers
HumabHatterZed Nov 13, 2026
47e775a
Add/fix XML for CardExtensionsPortraits
HumabHatterZed Nov 13, 2026
a94ba78
Add XML for CardExtensions class
HumabHatterZed Nov 13, 2026
7f546d1
Add XML for CardExtensionsProperties
HumabHatterZed Nov 13, 2026
9926896
Add missing XML for CardExtensionsSetters
HumabHatterZed Nov 13, 2026
c9061a4
Add missing XML to CardManager
HumabHatterZed Nov 13, 2026
d961848
Add missing XML to CardCostManager
HumabHatterZed Nov 13, 2026
4619e29
Add XML for CardModificationInfoExtensions
HumabHatterZed Nov 13, 2026
2a9b9ad
Add missing XML, remarks on the custom costs ID system that recommend…
HumabHatterZed Nov 13, 2026
4f927aa
Add XML to CardModificationInfoManager
HumabHatterZed Nov 13, 2026
870dd8f
Fix dynamic gem costs not removing from the initial starting cost, re…
HumabHatterZed Nov 13, 2026
8107a08
Add XML for classes in DamageShieldBehaviour file
HumabHatterZed Nov 13, 2026
f6d6c2b
Add missing XML in ShieldManager
HumabHatterZed Nov 13, 2026
2ca5907
Add XML to DeathCardManager
HumabHatterZed Nov 13, 2026
6e56340
Add XML to ExtendedAbilityBehaviour
HumabHatterZed Nov 13, 2026
824760b
Add XML to IActivateWhenFacedown
HumabHatterZed Nov 13, 2026
25ae802
Add XML to OpponentGemsManager
HumabHatterZed Nov 13, 2026
f09c51e
Fix minor error in XML
HumabHatterZed Nov 13, 2026
ac22a33
Add XML for SpecialStatIconManager
HumabHatterZed Nov 13, 2026
35d27dc
Fix incorrect XML documentation
HumabHatterZed Nov 13, 2026
e76ec26
Add XML to SpecialTriggeredAbilityManager
HumabHatterZed Nov 13, 2026
b8701bc
Add XML to TribeManager
HumabHatterZed Nov 13, 2026
4b597eb
Move to patches subfolder
HumabHatterZed Nov 13, 2026
b1484af
Add GainMultipleGems ability subclass so we can unify all those "give…
HumabHatterZed Nov 13, 2026
2b62c39
Implement XML Docs for ResourceManagers Module of Community Patch
Chaosyr Nov 13, 2026
61ef9a3
Implement XML Docs for the PixelTutor Module in Community Patch
Chaosyr Nov 13, 2026
06d88b0
Implement XML Docs to a chunk of the Card Module of the Community Patch
Chaosyr Nov 13, 2026
b253513
Finish PixelTutor Module XML Docs
Chaosyr Nov 13, 2026
30da297
Update Changelog (+Formatting)
Chaosyr Nov 13, 2026
74b5ec1
Add a few more items to the Changelog, and update BIE
Chaosyr Nov 13, 2026
d96ee1b
Integrate TS-Build Support
Chaosyr Nov 13, 2026
b92d33f
Fix TOML to new Build Location for APIPatcher
Chaosyr Nov 13, 2026
f635e9d
Add cref links to XML
HumabHatterZed Nov 13, 2026
a79384b
Add missing XML, cref tags
HumabHatterZed Nov 13, 2026
38ee55c
Add cref tags
HumabHatterZed Nov 13, 2026
65fbf98
Add cref tags
HumabHatterZed Nov 13, 2026
dd870da
Add cref tags
HumabHatterZed Nov 13, 2026
d46af02
Add cref tags
HumabHatterZed Nov 13, 2026
3cb4a5d
Upgrade Documentation Workflow
Chaosyr Nov 13, 2026
801696a
Merge pull request #2 from Chaosyr/Update-Doc-Styles
Chaosyr Nov 13, 2026
44d26d8
Update Styling
Chaosyr Nov 13, 2026
7f5dd4c
Merge pull request #3 from Chaosyr/Update-Doc-Styles
Chaosyr Nov 13, 2026
21fa0a8
Remove Styles folder from `api_wiki`
Chaosyr Nov 13, 2026
c40e02e
Fix Style and implement Community Patch and APIPatcher to Docs
Chaosyr Nov 13, 2026
4a91769
remove arbitrary exclusions for CSProj
Chaosyr Nov 13, 2026
f4511a0
Replace code block font to match
Chaosyr Nov 13, 2026
672aa9d
Update toc.yml
Chaosyr Nov 13, 2026
6136b79
Update main.css
Chaosyr Nov 13, 2026
2ef9bdf
Update main.css
Chaosyr Nov 13, 2026
0e2689f
Update main.css
Chaosyr Nov 13, 2026
0811ff6
Update main.css
Chaosyr Nov 13, 2026
ef3fe92
Update main.css
Chaosyr Nov 14, 2026
0dfd9a0
Update main.css
Chaosyr Nov 14, 2026
031cb92
Remove unneeded Partials folder carried over from DarkFX Copy
Chaosyr Nov 14, 2026
108e122
Typo fix and Prettify class.header.tmpl.partial
Chaosyr Nov 14, 2026
be2ad2a
Fix up inheritence related look
Chaosyr Nov 14, 2026
6639d2d
Update main.css
Chaosyr Nov 14, 2026
c23b620
Update main.css
Chaosyr Nov 14, 2026
df2af83
Update main.css
Chaosyr Nov 14, 2026
3204476
Update main.css
Chaosyr Nov 14, 2026
2e8709b
Update Table Implementation to DL
Chaosyr Nov 14, 2026
fd399d2
Undo Table Changes
Chaosyr Nov 14, 2026
e4db6a5
Pop off API Patcher from Docs
Chaosyr Nov 14, 2026
838c3e8
Add cref tags, fix mistakes
HumabHatterZed Nov 14, 2026
4433c9e
Add XML, comment out unused field
HumabHatterZed Nov 14, 2026
6991107
Rename files to indicate they contain patches, fix minor error in Sta…
HumabHatterZed Nov 14, 2026
652ca8d
Add xml
HumabHatterZed Nov 14, 2026
7425126
Add XML
HumabHatterZed Nov 14, 2026
1f05ef6
Add <code> tag
HumabHatterZed Nov 14, 2026
e4c956b
Add break tags to retain XML formatting in actual documentation
HumabHatterZed Nov 14, 2026
b000129
Fix duplicate ///
HumabHatterZed Nov 14, 2026
1b7df04
Fix numbered list in XML
HumabHatterZed Nov 14, 2026
f90d966
Move the class header partial under api_wiki and delete inheritence t…
Chaosyr Nov 14, 2026
4773344
Experiment with disabling darkfx
Chaosyr Nov 14, 2026
00e350a
part 2
Chaosyr Nov 14, 2026
fdc8b30
fix css
Chaosyr Nov 14, 2026
436b99c
switch to min-height
Chaosyr Nov 14, 2026
89d10ea
Update Templates
Chaosyr Nov 14, 2026
5fb32a1
Some fixing
Chaosyr Nov 14, 2026
b6b4b4a
2col params, and fields table
Chaosyr Nov 14, 2026
09e32dd
CSS Cleaning and quick fix
Chaosyr Nov 14, 2026
686f246
Inline code background
Chaosyr Nov 14, 2026
d3f6c39
Underscore the page heading
Chaosyr Nov 14, 2026
71e88cf
Underscore H3 Headers
Chaosyr Nov 14, 2026
782be32
Fix borders
Chaosyr Nov 14, 2026
3e33a13
Update main.css
Chaosyr Nov 14, 2026
7aa75a5
Conditionalize H3 Headers
Chaosyr Nov 14, 2026
de098bf
Overhaul Index.md
Chaosyr Nov 14, 2026
ff0f617
Conditionalize H1
Chaosyr Nov 14, 2026
2e37ebd
Make Wiki be named Wiki
Chaosyr Nov 14, 2026
44be5c0
Update Wiki Styling (#345)
Chaosyr Nov 14, 2026
1c7391f
Allow Embedding
Chaosyr Nov 14, 2026
6fb4dc5
Fix Embeddability
Chaosyr Nov 14, 2026
178d160
Merge branch 'Update-Installation-Guides-and-Documentation-and-Bug-Fi…
Chaosyr Nov 14, 2026
8c34d84
Implement Embedding (#346)
Chaosyr Nov 14, 2026
704baa5
Experiment with adding a font selector
Chaosyr Nov 15, 2026
7759c86
QFix
Chaosyr Nov 15, 2026
b33c8ec
QFix 2
Chaosyr Nov 15, 2026
57643f7
Switch the settings into a submenu
Chaosyr Nov 15, 2026
844801a
implement font size and line height controls
Chaosyr Nov 15, 2026
11352bf
On screen mobile settings
Chaosyr Nov 15, 2026
567bec5
Make the Theme Switch and Settings Neighbors
Chaosyr Nov 15, 2026
731a481
Fix the Neighboring
Chaosyr Nov 15, 2026
105b103
expand settings into mobile navbar
Chaosyr Nov 15, 2026
dd601c0
scrollbar for overflowing settings
Chaosyr Nov 15, 2026
63de529
Foldable Inherited Members and Extension Methods
Chaosyr Nov 15, 2026
96379b3
fix enum specificity for fieldValue
Chaosyr Nov 15, 2026
2a0117b
Clarify users must interact with the given Header to expand
Chaosyr Nov 15, 2026
545d722
Expand Navbar by default on Mobile
Chaosyr Nov 15, 2026
81edf78
(Fully)
Chaosyr Nov 15, 2026
0b19c39
Restore settings button and update the correct button
Chaosyr Nov 15, 2026
872f857
remove bolding from .typelist summary
Chaosyr Nov 15, 2026
401cfdf
fix empty search
Chaosyr Nov 15, 2026
acffb9a
Update handling so that returns only show for Methods
Chaosyr Nov 15, 2026
ca6bc35
fix conditional url checks
Chaosyr Nov 15, 2026
a966f9a
try fixing the handling for method only returns
Chaosyr Nov 15, 2026
f56f2bd
fix URL specific headers properly
Chaosyr Nov 15, 2026
d010c67
Implement a ManagedReference.extension and exclude returns on paramet…
Chaosyr Nov 15, 2026
70a3c04
Update ManagedReference.extension.js
Chaosyr Nov 15, 2026
53afa76
Change to a postTransform
Chaosyr Nov 15, 2026
322ea36
Update documentation.yml
Chaosyr Nov 15, 2026
34d51cc
Undo workflow change
Chaosyr Nov 15, 2026
bc99a71
debugging
Chaosyr Nov 15, 2026
98ed87d
woagh it should be excluded now
Chaosyr Nov 15, 2026
135426e
Update class.header.tmpl.partial
Chaosyr Nov 15, 2026
f919cd1
Upgrade our handler
Chaosyr Nov 15, 2026
41e0a17
arbitrary change, but also defines what each section on a doc page is
Chaosyr Nov 15, 2026
8dc83f1
Cleanup Wording and finally fix the bloody table under params
Chaosyr Nov 15, 2026
6d64474
XML for files in folders: Dialogue, Encounters
HumabHatterZed Nov 15, 2026
a8a65e6
Add XML, fix incorrect preexisting XML
HumabHatterZed Nov 15, 2026
b896203
Add missing XML, cref tags
HumabHatterZed Nov 15, 2026
9c16441
XML for files in Items folder
HumabHatterZed Nov 15, 2026
60a2b91
Add XML for Localising files
HumabHatterZed Nov 15, 2026
80e9f90
Add XMl to Masks/ files
HumabHatterZed Nov 15, 2026
c0af91b
Finish adding XML to Nodes/ files
HumabHatterZed Nov 15, 2026
4f0a6c8
Change accessor
HumabHatterZed Nov 15, 2026
edb4509
Add XML for Pelts/ files
HumabHatterZed Nov 15, 2026
d284a2f
Add XML to PixelCard/ files
HumabHatterZed Nov 15, 2026
c404bb8
Add XML to Regions/ files, privatise transpiler in RegionManager
HumabHatterZed Nov 15, 2026
354e52a
Add missing XML to ResourceBankManager, fix typos in existing XML
HumabHatterZed Nov 15, 2026
1178ad1
Add XML to all Rulebook/ files
HumabHatterZed Nov 15, 2026
e356887
Add XML to Saves/ files
HumabHatterZed Nov 15, 2026
b5c2c80
Add XML to Slots/ files
HumabHatterZed Nov 15, 2026
c808b77
Add XML to SoundManager
HumabHatterZed Nov 16, 2026
1e59214
Update XML for rulebook redirects, add missing XML description
HumabHatterZed Nov 16, 2026
14a4b55
Change to use table
HumabHatterZed Nov 16, 2026
7dc71d1
Add XML to TalkingCards/ files and subfolders' files
HumabHatterZed Nov 16, 2026
3987c4a
Add XML to Totems/ files
HumabHatterZed Nov 16, 2026
1767107
Fix XML, add missing XML
HumabHatterZed Nov 16, 2026
ddf7eeb
Add XML to Triggers/ files
HumabHatterZed Nov 16, 2026
0366957
Change XML to use paramrefs and crefs where c tags are used instead
HumabHatterZed Nov 16, 2026
91f1419
Add XML to RegionExtensions
HumabHatterZed Nov 16, 2026
b263019
Add missing XML to RulebookRedirectPatches
HumabHatterZed Nov 16, 2026
8c8709b
Add missing XML to AssetHelpers
HumabHatterZed Nov 16, 2026
9326cff
Add missing XML to StringExtensions
HumabHatterZed Nov 16, 2026
2a1d4ec
Fix malformed tags, add missing XML param tag
HumabHatterZed Nov 16, 2026
637bc02
Add missing XML for RuleBookRedirectManager
HumabHatterZed Nov 16, 2026
6ac597c
Add missing XML to GeneratePortrait
HumabHatterZed Nov 16, 2026
7aa4b0b
Remove test field
HumabHatterZed Nov 16, 2026
462c3d7
Update BaseGameRegions XML
HumabHatterZed Nov 16, 2026
02494fb
Better Descriptions and Heading Levels
Chaosyr Nov 16, 2026
941c0b8
Merge pull request #343 from HumabHatterZed/xml
Chaosyr Nov 16, 2026
378c16c
Bug fix
Chaosyr Nov 16, 2026
7a55d62
formatting fixes
Chaosyr Nov 16, 2026
55ebf7a
update heading sizes
Chaosyr Nov 16, 2026
f09ab07
Add a Reset Settings for the Docs
Chaosyr Nov 16, 2026
47ae769
Menu Styling fix
Chaosyr Nov 16, 2026
c9575a2
styling fix
Chaosyr Nov 16, 2026
8b8dbeb
Styling Fix 2
Chaosyr Nov 16, 2026
e1926f8
Reset Styling
Chaosyr Nov 17, 2026
c29a8c1
remove margin bottom from reset
Chaosyr Nov 17, 2026
51de687
make facts follow the sizing rules
Chaosyr Nov 17, 2026
acb31bc
Merge branch 'Update-Installation-Guides-and-Documentation-and-Bug-Fi…
Chaosyr Nov 17, 2026
0636292
Merge pull request #347 from Chaosyr/main
Chaosyr Nov 17, 2026
6adc200
Pragma Warning disable No XML in Compatibility Module of the API
Chaosyr Nov 17, 2026
a5f8d62
Fix boss challenges overlapping each other under certain circumstances
HumabHatterZed Nov 17, 2026
3520c4e
More Community Patch Card Module XML
Chaosyr Nov 17, 2026
1583b1c
Merge pull request #348 from HumabHatterZed/boss-challenge-icon-fix
HumabHatterZed Nov 17, 2026
e8bca72
Comment out debug logs
HumabHatterZed Nov 17, 2026
afacf6e
Merge pull request #349 from HumabHatterZed/boss-challenge-icon-fix
HumabHatterZed Nov 17, 2026
620d2f8
Bug Fix Wiki to account for Interfaces, Structs, and Delegates (#350)
Chaosyr Nov 17, 2026
1b366d7
Update CHANGELOG.md
Chaosyr Nov 19, 2026
7b6370b
Add CardRenderInfoManager
HumabHatterZed Nov 19, 2026
ab49bf9
Remove unused usings
HumabHatterZed Nov 19, 2026
bef110c
Merge pull request #351 from HumabHatterZed/missing-extensions
HumabHatterZed Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 28 additions & 18 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,51 @@ on:
branches:
- main

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v6
with:
dotnet-version: 6.0.x
dotnet-version: '10.0.x'

- name: Restore Project
run: dotnet restore

- name: Add Mono Repository
run: |
sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update

- name: Install Mono
run: sudo apt install mono-runtime mono-devel msbuild

- name: Install DocFX
run: |
curl -LJ https://github.com/dotnet/docfx/releases/download/v2.59.0/docfx.zip -o docfx.zip
curl -LJ https://github.com/dotnet/docfx/releases/download/v2.81.0/docfx-linux-x64-v2.81.0.zip -o docfx.zip
unzip -d docfx/ docfx.zip
chmod +x docfx/docfx

- name: Generate documentation
run: mono docfx/docfx.exe docs/docfx.json
env:
REPOSITORY_OWNER: ${{ github.repository_owner }}
REPOSITORY_NAME: ${{ github.event.repository.name }}
run: |
if [ "$REPOSITORY_NAME" = "$REPOSITORY_OWNER.github.io" ]; then
DOCFX_BASE_URL="https://${REPOSITORY_OWNER}.github.io/"
else
DOCFX_BASE_URL="https://${REPOSITORY_OWNER}.github.io/${REPOSITORY_NAME}/"
fi

jq --arg base "$DOCFX_BASE_URL" \
'.build.globalMetadata._appBaseUrl = $base' \
docs/docfx.json > docs/docfx.generated.json

./docfx/docfx docs/docfx.generated.json

rm docs/docfx.generated.json

- uses: actions/checkout@v3
- name: Checkout gh-pages
uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages
Expand All @@ -50,11 +61,10 @@ jobs:
cp -R ../docs/_site/* .

- name: Push update
continue-on-error: true
run: |
cd gh-pages
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -a -m "Generated from ${{ github.event.head_commit.id }}"
git commit -a -m "Generated from ${{ github.event.head_commit.id }}" || echo "No changes needed"
git push
34 changes: 34 additions & 0 deletions .github/workflows/ts-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

name: TS-Build

on:
workflow_dispatch:

permissions:
contents: read

jobs:
build:
name: Run TS-Build
runs-on: windows-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x

- name: Run TS-Build Script
shell: cmd
run: call InscryptionAPI\TS-Build.bat

- name: Send Artifacts to GitHub Workflow for Later Use.
uses: actions/upload-artifact@v4
with:
name: InscryptionAPI-Thunderstore-${{ github.run_number }}
path: InscryptionAPI/GITHUB RELEASE/NET/*.zip
if-no-files-found: error
retention-days: 30
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ bin/
.vscode/
*.user
build/

InscryptionAPI/GITHUB RELEASE/
InscryptionAPI/GITHUB PRERELEASE/
InscryptionAPI/Thunderstore-Package-Elements/monomod/Assembly-CSharp.APIPatcher.mm.dll
InscryptionAPI/Thunderstore-Package-Elements/monomod/Assembly-CSharp.APIPatcher.mm.pdb
InscryptionAPI/Thunderstore-Package-Elements/monomod/Assembly-CSharp.APIPatcher.mm.xml
14 changes: 14 additions & 0 deletions .run/TS-Build InscryptionAPI.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="TS-Build InscryptionAPI" type="RunNativeExe" factoryName="Native Executable">
<option name="EXE_PATH" value="$PROJECT_DIR$/InscryptionAPI/TS-Build.bat" />
<option name="PROGRAM_PARAMETERS" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/InscryptionAPI" />
<option name="PASS_PARENT_ENVS" value="1" />
<option name="ENV_FILE_PATHS" value="" />
<option name="REDIRECT_INPUT_PATH" value="" />
<option name="MIXED_MODE_DEBUG" value="0" />
<method v="2">
<option name="Build Solution" enabled="true" />
</method>
</configuration>
</component>
37 changes: 30 additions & 7 deletions APIPatcher/APIPatcher.csproj
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netframework4.7.2</TargetFramework>
<TargetFrameworks>netframework4.7.2</TargetFrameworks>
<RuntimeIdentifiers>win-x64;win-x86;win-arm64;linux-x64;linux-arm;linux-arm64;linux-musl-x64;linux-musl-arm64;osx-x64;osx-arm64</RuntimeIdentifiers>
<AssemblyName>Assembly-CSharp.APIPatcher.mm</AssemblyName>
<Description>The MonoMod Patcher for the Inscryption API.</Description>
<Version>2.24.2</Version>
<Authors>Cyantist, IngoH, WhistleWind, Chaosyr and Contibutors</Authors>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>Latest</LangVersion>
<RootNamespace>APIPatcher</RootNamespace>
<DebugType>full</DebugType>
<NoWarn>$(NoWarn);AD0001;CS0612;CS8604;CS0252;CS0618;Harmony003;Publicizer001</NoWarn>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>disable</Nullable>
<LangVersion>latest</LangVersion>
<IsPackable>false</IsPackable>
<SelfContained>true</SelfContained>
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
<IncludeBuildOutput>false</IncludeBuildOutput>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<TargetName>Assembly-CSharp.APIPatcher.mm</TargetName>
</PropertyGroup>

<PropertyGroup>
<NoWarn>$(NoWarn);AD0001;CS0612;CS8604;CS0252;CS0618;Harmony003;Publicizer001</NoWarn>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<OutputPath>..\InscryptionAPI\Thunderstore-Package-Elements\monomod\</OutputPath>
</PropertyGroup>

<ItemGroup>
Expand All @@ -22,4 +33,16 @@
<ItemGroup>
<ProjectReference Private="false" Include="..\InscryptionAPI\InscryptionAPI.csproj" />
</ItemGroup>

<!--Net Framework References-->
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
</ItemGroup>

<!--Cleanup Publish for our Build System-->
<Target Name="StripAllNuGetFromPublish" AfterTargets="ComputeFilesToPublish">
<ItemGroup>
<ResolvedFileToPublish Remove="@(ResolvedFileToPublish)" Condition="'%(ResolvedFileToPublish.Extension)' == '.dll' and '%(ResolvedFileToPublish.RelativePath)' != 'Assembly-CSharp.APIPatcher.mm.dll'" />
</ItemGroup>
</Target>
</Project>
7 changes: 7 additions & 0 deletions APIPatcher/ScriptableObjectLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@

namespace APIPatcher;

/// <summary>
/// Uses MonoMod to patch Unity's ScriptableObjectLoader to also use our version of the ScriptableObjectLoader seen in the Inscryption API itself.
/// </summary>
/// <typeparam name="T"></typeparam>
[MonoModPatch("global::ScriptableObjectLoader`1")]
internal class patch_ScriptableObjectLoader<T> : ScriptableObjectLoader<T> where T : UnityObject
{
/// <summary>
/// A List of AllData used within the overarching <see cref="ScriptableObjectLoader{T}"/> system, e.g. a List of <see cref="UnityObject"/>.
/// </summary>
new public static List<T> AllData
{
get
Expand Down
13 changes: 13 additions & 0 deletions APIPatcher/Singleton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@

namespace APIPatcher;

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

/// <summary>
/// A simple class object for singletons in correlation with the API.
/// </summary>
internal static class Singleton
{
/// <summary>
/// A ManualLogSource specifically for logging issues related to Singletons.
/// </summary>
internal static readonly ManualLogSource SingletonLogSource = Logger.CreateLogSource("Singleton");
}
Loading
Loading