Modding:Network API/ru: Difference between revisions

From Vintage Story Wiki
(Created page with "== Введение ==")
(Created page with "В этом примере мы покажем вам, как отправлять пользовательские данные туда и обратно между серв...")
Line 7: Line 7:
== Введение ==
== Введение ==


In this example mod we will show you how to send custom data back and forth between the Server and the Client. To do this, we will set up a network channel through which string messages will be sent in a network channel.
В этом примере мы покажем вам, как отправлять пользовательские данные туда и обратно между сервером и клиентом. Для этого настроим сетевой канал, по которому в сетевом канале будут отправляться строковые сообщения.


We will create a server command that will send out a message to all clients, and if a client receives this, it will send a response back to the server; upon receiving this response, the server will display it along with the responding client's player name.
We will create a server command that will send out a message to all clients, and if a client receives this, it will send a response back to the server; upon receiving this response, the server will display it along with the responding client's player name.