用户工具

站点工具


侧边栏

script:unityengine:classes:masterserver:masterserver

MasterServer 主服务器

class in UnityEngine

Description 描述

The Master Server is used to make matchmaking between servers and clients easy.

主网络服务器用于是服务器与客户端连接匹配更容易。

You can advertise game hosts or fetch host lists for you game type. The functions here are used to communicate with the Master Server itself which resides on a separate server. If necessary the server itself can be customized. For an overview of the Master Server as well as a technical description see the Master Server manual page.

你可以发布游戏主机或者为你读取游戏类型主机列表。该函数在这里的功能用来与单独分离的主服务器进行通信。如果必须的话该主服务器可以被自定义。主服务器的概述以及技术描述请参考主服务器手册页面。

Static Variables 静态变量

dedicatedServerReport this machine as a dedicated server.
报告这台机器作为专用服务器。
ipAddressThe IP address of the master server.
主服务器的IP地址。
portThe connection port of the master server.
主服务器的连接端口。
updateRateSet the minimum update rate for master server host information update.
为主服务器主机信息更新设置最小更新比率。

Static Functions 静态函数

ClearHostListClear the host list which was received by MasterServer.PollHostList.
清除被MasterServer.PollHostList接收的主机列表。
PollHostListCheck for the latest host list received by using MasterServer.RequestHostList.
检查通过MasterServer.RequestHostList接收的最新的主机列表。
RegisterHostRegister this server on the master server.
在主服务器上登记主机。
RequestHostListRequest a host list from the master server.
从主服务器中请求主机列表。
UnregisterHostUnregister this server from the master server.
从主服务器中移除该服务器注册。

Messages 消息

OnFailedToConnectToMasterServerCalled on clients or servers when there is a problem connecting to the master server.
当连接主服务器出现问题时在服务器或者客户端上调用。
OnMasterServerEventCalled on clients or servers when reporting events from the MasterServer.
当主服务器报告事件时在客户端或者服务器上调用。
script/unityengine/classes/masterserver/masterserver.txt · 最后更改: 2016/08/02 05:28 (外部编辑)