The loader prototype now supports dependency sorting.
This means a modder can mark other mods as a dependency of their mod!
We use topological sorting (depth-first search) algorithm to achieve this.
https://en.wikipedia.org/wiki/Topological_sorting#Depth-first_search.
加载器原型现在支持依赖项排序。
这意味着一个模组可以标记其他模组作为他们的模组的依赖!
我们使用拓扑排序(深度优先搜索)算法来实现这一点。
https://zh.wikipedia.org/wiki/拓撲排序#外部链接。
For modders, this means the following:
– package.json > old mod.config.json
– main > which script to load when package is imported
– dependencies > mods your mod depends on
– package.mjs > initial script to load, must be AkiPackage
– classes > specifies what functionality of your package to expose to other modders
– server.mjs > can be named however you like, your mod functionality
对于modder,这意味着以下:
——包。旧的mode .config.json
主>,当包被导入时加载的脚本
依赖> mod你的mod依赖
——包。mjs >初始脚本加载,必须是AkiPackage
-类>指定包的什么功能暴露给其他modder
——服务器。mjs >可以被任意命名,你的mod功能
I understand little what the text is translated into from the machine translator, please bear with me!
机器翻译出来的文字我看不懂,请见谅!
请登录之后再进行评论