Channel Identifiers For Large Scale Games
Use channel identifiers for large-scale game servers with Vivox.
阅读时间1 分钟最后更新于 13 天前
如果满足以下任何陈述,则构造频道标识符时需谨慎:
- 期望应用程序超过 100,000 PCU
- 期望使用多频道功能
- 使用哈希值标识比赛
- 在频道标识符的“shard”部分中包含区域和比赛标识符
- 在通道标识符的“shard”部分后包含 3D 和队伍标识符
d0634bad1ca5a9cdtundraNewChannelProps-
位置频道
string shard = "NA";string matchId = "d0634bad1ca5a9cd";string positionalSpaceId = "tundra";Channel3DProperties NewChannelProps = new Channel3DProperties(/* Add your own custom positional channel proprties here */);await VivoxService.Instance.JoinPositionalChannelAsync($"{shard}.{matchId}-{positionalSpaceId}", ChatCapability.AudioOnly, NewChannelProps);
-
队伍 1 的群组频道
string shard = "NA";string matchId = "d0634bad1ca5a9cd";int squadId = 1;await VivoxService.Instance.JoinGroupChannelAsync($"{shard}.{matchId}-{squadId}", ChatCapability.AudioOnly);
-
队伍 2 的群组频道
string shard = "NA";string matchId = "d0634bad1ca5a9cd";int squadId = 2;await VivoxService.Instance.JoinGroupChannelAsync($"{shard}.{matchId}-{squadId}", ChatCapability.AudioOnly);