BonkersLib

版本 v1.0.4·更新於 2025-12-15

This is a library for Megabonk to provide a stable API and reusable services.

模組介紹 作者原文

BonkersLib

BonkersLib is a core shared library for BepInEx mod development targeting the game "Megabonk".

Its primary purpose is to provide a stable API and reusable services to interact with the game's code. It is used as a dependency by other mods, such as MegaBonkPlusMod.

🛠️ Core Services

This library abstracts away game-specific code into several easy-to-use services, including:

  • PlayerService: For accessing and manipulating player data.
  • WorldService: For interacting with the game world and objects.
  • GameStateService: For retrieving and tracking the overall game state.

(And other helpers for managing inventory, items, etc.)*

🚀 Installation (For End-Users)

If you are a user of a mod that requires BonkersLib:

Ensure BepInExPack_IL2CPP (Version 6) is installed for your game.

  • Compile this project or download the latest release.
  • Place the BonkersLib.dll into your BepInEx/plugins folder, alongside the mod that needs it.
  • Start the game once to allow the mod to generate its configuration files.

🧑‍💻 Usage (For Developers)

If you are developing a mod that builds on this library:

  • Add BonkersLib.dll as a reference in your C# project.
  • Ensure your mod declares BonkersLib.dll as a dependency (e.g., via BepInEx attributes).
  • Access the provided services (e.g., BonkersAPI.PlayerService).

🤝 Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

📄 License

MIT LICENSE

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack_IL2CPP

檔案與校驗

檔案名稱
BonkersLib-1.0.4.zip
檔案大小
72.2 KiB