Time Elapsing Console Library
This mod essentially enables the ability show Elapsed Time in a nice way within BepInEx.
模組介紹 作者原文
Time Elapsing Console Plugin
This mod essentially enables the ability show Elapsed Time in a nice way within BepInEx.
Functions;
This mod Includes 6 Nifty functions.
- [OUTDATED] WaitType; This function waits for a set amount of time determined by an Integer, and a string which associates with a value.
- SwitchToUnits: Takes a time Unit and converts it into a simplified string.
- StartWaitTime: Takes three strings representing; What is being waited for, the Unit of Time, and the mod's name thats calling it.
- StopWaitTime: Takes the returned Info from Start to stop the logging.
- GetTimeFromType: Gets the time unit from the passed Unit of Time and a TimeSpan.
- HandleStopwatch: A function that takes a string representing the action and a stopwatch and handles the stop watch.
Defining The Function Variables;
Unit of Time table:
| Unit | Simplified | Elongated |
|:-------------:|:----------:|:-----------:|
| Milli-seconds | ms | millisecond |
| Seconds | s | second |
| Minutes | m | minute |
| Hours | h | hour |
| Days | d | day |
| Ticks | t | ticks |
Actions for HandleStopwatch:
| Action | What it will do |
|:-------:|:--------------------------------------------------------------:|
| Start | Starts the passed stop watch. |
| Stop | Stops the passed stop watch. |
| Reset | Resets the passed stop watch to 0. |
| Restart | Restarts the passed stop watch back to 0. |
| Elapsed | Gets the TimeSpan that has elapsed from the passed stop watch. |
Maintaining and or Updating/Porting:
Send a PR to the repository if you would like to update the mod in any way shape or form.
Porting is allowed as long as proper and full credits are instated and the provided License is KEPT.
If you would like this mod/lib added into your community shoot me a message over on Discord at @thincreator3483
Also while im at it, if anything here is inaccurate and or needs changes lemme know ^^
Credits:
As of 1.1.1
- Creator - All of the Plugins code, as well as everything else associated with the mod.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: