forked from Bentechy66/HollowKnight.BreakableWallRandomizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some walls to CSL. Room rando logic fixes.
- Loading branch information
Showing
8 changed files
with
97 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using MonoMod.ModInterop; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace BreakableWallRandomizer.Interop; | ||
internal static class CondensedSpoilerLogger | ||
{ | ||
[ModImportName("CondensedSpoilerLogger")] | ||
private static class CondensedSpoilerLoggerImport | ||
{ | ||
public static Action<string, Func<bool>, List<string>> AddCategorySafe = null; | ||
} | ||
|
||
static CondensedSpoilerLogger() | ||
{ | ||
typeof(CondensedSpoilerLoggerImport).ModInterop(); | ||
} | ||
|
||
/// <summary> | ||
/// Add a category to the condensed spoiler log. | ||
/// </summary> | ||
/// <param name="categoryName">The title to give the category.</param> | ||
/// <param name="test">Return false to skip adding this category to the log. The category will automatically | ||
/// be skipped if no items in the list are randomized.</param> | ||
/// <param name="entries">A list of items to log in the category.</param> | ||
public static void AddCategory(string categoryName, Func<bool> test, List<string> entries) | ||
=> CondensedSpoilerLoggerImport.AddCategorySafe?.Invoke(categoryName, test, entries); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters