
SilkRoomUtils
Room loading utilities for Silksong (BepInEx).Details
SilksongRooms: shareable room loader
This repo includes a template (content/SilksongRooms) that ships a reusable room loader and a tiny integrator. It lets any mod load room JSON files (*.room.json) and Unity AssetBundles.
Highlights:
- Drop rooms in
BepInEx/plugins/<YourMod>/Rooms/and they get picked up automatically by the SilksongRooms plugin. - Other mods can register their own Rooms folders at runtime via a simple API.
Use from another mod:
using BepInEx;
using SilksongRooms._1;
[BepInDependency("io.github.silksongrooms__1")]
[BepInPlugin("your.guid.here", "Your Mod", "1.0.0")]
public class YourMod : BaseUnityPlugin
{
private void Awake()
{
var myRooms = System.IO.Path.Combine(BepInEx.Paths.PluginPath, Info.Metadata.Name, "Rooms");
RoomsApi.RegisterRoomsFolder(myRooms);
// Or single file:
// RoomsApi.RegisterRoomJson(System.IO.Path.Combine(myRooms, "my_room.room.json"));
}
}