Photon——Receiver Groups 接收组

 

Receiver Groups 接收组

 
     Receiver groups are an alternative way to define who receives an event. It’s an option available with Lite’s operation RaiseEvent.
     接收组是一个替代的方法来定义接收到的事件,他是一个操作,可能是Lite的RaiseEvent操作
 
     Usually, Lite sends your events to everyone else in the same room. With the receiver group parameter for RaiseEvent, you can send an event to “All”, including yourself. If needed, you can also send to only the “MasterClient”.
     通常,Lite发送你的事件给同一个房间里的每个人。带有接收组的参数,你可以发送一个事件到 “All”,包括你自己。如果需要的话,你也可以仅仅发送到“MasterClient”。
 
     This is an alternative to listing all target players, which is still possible in RaiseEvent.
     这是代替的列出所有的目标玩家,这在RaiseEvent中仍然是可能的
 

MasterClient 主客户端

 
     The MasterClient is the one with the lowest actorNumber in the room and thus the one who’s there the longest time.
     这主客户端是一个编号最低以及在房间内时间最长的玩家。
 
     This doesn’t give the MasterClient any privileges. But it could. Example: The MasterClient is always the one to start a new round of your game (in the same room).
     这并没有给主客户端什么特权,但是它可能:主客户端总是房间内开始游戏的玩家。
 
     If the current MasterClient leaves, a new one is assigned immediately. This is done by convention, not explicitly by events.
     如果当前主客户端离开,立刻分配一个新的,这是通过约定的,不是通过事件。
 

Disclaimer 拒绝

 
     Receiver groups are a feature of the Lite and Lite Lobby Applications of Photon 3. They are not supported by the MMO Application or if you start from scratch.
     接收组是Photon3的Lite和Lite Lobby应用的一个功能。他们是不支持MMO应用或者你自己从头开始开发的应用。
posted @ 2013-05-15 14:07  M守护神  阅读(879)  评论(0编辑  收藏  举报