All translations

From Vintage Story Wiki

Enter a message name below to show all available translations.

Message

Found 2 translations.

NameCurrent message text
 h English (en)As described in the API docs ([https://apidocs.vintagestory.at/api/Vintagestory.API.Common.ModSystem.html VintageStory.API.Common.ModSystem]), <code>ModSystem</code> includes a number of virtual methods which your mod may override. Perhaps the most commonly used method is <code>ModSystem.Start(ICoreAPI)</code>. You can use this method to define initialization code that should run when the game first loads. However, it is important to realize that, by default, the game creates one instance of your ModSystem on the server, and one additional ModSystem instance on each client. In the case of a single-player game, there will be one server and one client running on the same machine. As a result, any code that you put in <code>ModSystem.Start</code> will be run two or more times - once on the server thread and once on each client thread.
 h Russian (ru)Как описано в документации по API ([https://apidocs.vintagestory.at/api/Vintagestory.API.Common.ModSystem.html VintageStory.API.Common.ModSystem]), <code>ModSystem</code> включает номер виртуальных методов, которые ваш мод может переопределить. Возможно, чаще всего используется метод <code>ModSystem.Start(ICoreAPI)</code>. Вы можете использовать этот метод для определения кода инициализации, который должен запускаться при первой загрузке игры. Однако важно понимать, что по умолчанию игра создает один экземпляр вашей ModSystem на сервере и один дополнительный экземпляр ModSystem на каждом клиенте. В случае однопользовательской игры на одном компьютере будут работать один сервер и один клиент. В результате любой код, который вы поместите в <code>ModSystem.Start</code>, будет выполняться два или более раз — один раз в потоке сервера и один раз в каждом потоке клиента.