TerminalConsumables
Allows developers to add consumables to terminals.
模組介紹 作者原文
TerminalConsumables
Allows rundown developers to add consumables to the terminal system. Only consumables with registerInTerminalSystem enabled and non-blank terminalItemShortName and terminalItemLongName are added. These restrictions exclude all vanilla consumables by default.
Differs from PingConsumables in that vanilla consumables are not supported by default.
For Plugin Developers
This exposes an API at TerminalConsumables.API with the following features:
// Overrides normal query output. Returns the lines of text to print for a query command. Each element represents one line.
public delegate List QueryTextOverride(Item item, iTerminalItem terminalItem, List defaultDetails);
// Registers the passed item to the terminal system. Queries will print as if the item were a consumable.
// If the item already has a terminal item component, it will register it as a tracked item with the given settings.
public static iTerminalItem RegisterTerminalItem(Item item, bool ammoRel, QueryTextOverride? queryOverride);
// Modifies query-related options for the terminal item. If the item is not tracked, it is registered as a tracked item.
public static bool ModifyTerminalItem(iTerminalItem? terminalItem, bool ammoRel, QueryTextOverride? queryOverride);
public static bool ModifyTerminalItem(Item item, bool ammoRel, QueryTextOverride? queryOverride);
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: