CommonAPI
FOR PLUGIN MAKERS - General purpose library to make modding certain aspects of the game easier. Custom save data, phone apps, interactables and more!
模組介紹 作者原文
CommonAPI
CommonAPI is a general purpose plugin library for Bomb Rush Cyberfunk, which allows modders to do a variety of things more easily.
CommonAPI was used in the Millenium Winterland SlopCrew event to drive the NPCs, cutscenes and progress saving. It was also used to pull the character shaders from the game, to make the NPCs look as accurate as possible to the other characters in the game.
Features
- Easy access to BRC shaders - Simply call AssetAPI.GetShader(ShaderNames shaderName) to retrieve a character or environment shader.
- Dialogue and Interaction systems - Create any interactable entity, such as an NPC, that can react to a button prompt from the player. Create custom sequences and dialogues completely in C# without touching the Unity Editor.
- Custom save data - Easily create custom save data attached to individual save slots, CommonAPI takes care of automatically loading and saving, with multithreaded file writing.
- Phone apps - Easily create a custom phone app with an user interface with buttons you can scroll through.
Examples
Check out the CommonAPI Sample Project, it showcases how to create a custom app and custom save data.
Building
Make sure you have a BRCPath environment variable defined on your system, which points to the root folder of your Bomb Rush Cyberfunk installation. This way the project can find the required DLLs.
Usage
Do NOT bundle this assembly with your plugins - Simply add it as a reference in your projects and utilize the dependencies section in your plugin's manifest.json to add CommonAPI as a dependency, and do the same with the [BepInDependency] attribute in your BepInEx plugin class.
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: