EPL API
Enhanced Prefab loader is a modders tool to allow other modders to more easily add new items to the game.
模組介紹 作者原文
EnhancedPrefabLoader API
The companion mod for Enhanced Prefab Loader. EPL requires it from version 6.0.2 onward. This package serves as the Mirror, the most up to date will always be the as linked above.
If you're a player
Install it next to EPL and forget about it: extract the zip into your BepInEx folder, same as EPL. It updates on its own schedule — only when the API itself changes — so don't worry if its version number doesn't match EPL's.
One rule: only this mod page should provide EnhancedPrefabLoader.API.dll. If any other mod ships its own copy, delete that copy — an old stray dll is the #1 cause of "mod X broke after updating".
If you're a mod developer
This is EPL's public API. Compile against EnhancedPrefabLoader.API.dll to add custom behaviors — your own pack generators, card/item price formulas, shop hooks, and events — on top of what plain JSON bundles can do.
- Declare EPL as an optional dependency — that's the point of the API. Your mod works without EPL, and lights up extra integration when it's there, without forcing your users to download it:
[BepInDependency("EnhancedPrefabLoader.API", BepInDependency.DependencyFlags.SoftDependency)]
[BepInDependency("EnhancedPrefabLoader", BepInDependency.DependencyFlags.SoftDependency)]
- Entry point is Epl.Api. Always check Epl.IsAvailable before using it, and keep your EPL calls in methods that only run when that check passes — if the API dll isn't installed, code that touches its types will throw the moment it runs.
- Never ship the API dll inside your mod's zip. Reference it at build time only. Users who want the EPL integration install this mod page to get it.
- The API is additive within a major version — code built against 6.0.x keeps working on later 6.0.x releases.
Discord:
Full API documentation: docs site · Source: GitLab
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: