Level Loader
A library to load custom levelsBayTurtleKing's Level Loader
This mod is a shared library that lets other mods add custom map categories ("worlds") without patching the game's code directly. It handles tab creation and AssetBundle scene routing for you, plus much more.
Since you can also include code, this is much more than just a copy of the workshop level loader. Levels using this can have unique features and quirks.
How to register a world:
int[] mapIds = thelibrary.addworld(
` categoryname: "MyWorld", // tab label or name `
dabundlee: asset_bundle, // the assetbundle
thescenepaths: path_ofscenes, // string[] of scene paths inside the bundle
mapnamesmaybe: null, // custom per map names (optional)
picsmaybe: null, // byte[][] preview thumbnails (one per scene) (optional)
` whoarewestealingfrom: "Halloween" // use "Christmas" if you want the Christmas gifts to show `
);
