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应用或者你自己从头开始开发的应用。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】