This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
tutorial:modding_architecture:zh [2023/11/03 06:50] hfsr [Synchronized calls and call limits] |
tutorial:modding_architecture:zh [2023/11/03 06:58] hfsr [Registering an architecture] |
||
---|---|---|---|
Line 225: | Line 225: | ||
``` | ``` | ||
- | Registering an architecture | + | 注册架构 |
--------------------------- | --------------------------- | ||
- | This one's pretty simple: just do `li.cil.oc.api.Machine.add(PseudoArchitecture.class)`. This will allow CPUs to provide the registered architecture. If you do not wish OC CPUs to provide your architecture, you can either add your own `Processor` driver that can be used to get access to the architecture, or go one step further and add your own computer block, that will exclusively run your architecture, for example. | + | 这一步非常简单,只需调用`li.cil.oc.api.Machine.add(PseudoArchitecture.class)`即可。注册架构后CPU即可提供被注册的架构。如果你不想让OC模组的CPU提供你的架构,那么你可以添加自己的`Processor`驱动程序以用于访问架构。或者更进一步,添加你自己的电脑方块,专用于运行你的架构。 |
目录 | 目录 | ||
------------ | ------------ | ||
{{page>tutorial:contents:zh&noheader&noeditbutton&nouser&nofooter}} | {{page>tutorial:contents:zh&noheader&noeditbutton&nouser&nofooter}} |