chat_user_local::get_effective_communication_relationship

获取游戏聊天强制的本地用户和目标用户之间的通信关系。

语法

void get_effective_communication_relationship(  
    chat_user* targetUser,  
    game_chat_communication_relationship_flags* effectiveCommunicationRelationship,  
    game_chat_communication_relationship_adjuster* communicationRelationshipAdjuster  
)  

参数

targetUser _In_
类型:chat_user*

目标用户。

effectiveCommunicationRelationship _Out_
类型:game_chat_communication_relationship_flags*

游戏聊天强制的通信关系。

communicationRelationshipAdjuster _Out_
类型:game_chat_communication_relationship_adjuster*

应用于游戏设置的通信关系的调节器。 如果 effectiveCommunicationRelationship 与进行的设置不同,将指示原因。

返回值

类型:void

备注

关系的方向是,可以将其描述为“本地用户可以执行 communicationRelationship 定义的与 targetUser 相关的操作”。例如,如果receive_only communicationRelationship,则表示“此本地用户可以接收 targetUser 的通信,但本地用户无法向 targetUser 发送通信”。 游戏聊天对一对用户强制实施的通信关系可能与游戏设置的不同,因为游戏聊天会根据权限、隐私和信誉执行额外的调整。

要求

头文件:GameChat2.h

支持平台:Windows、Xbox One 系列主机和 Xbox Series 主机

另请参阅

chat_user_local
game_chat_communication_relationship_flags
chat_user::chat_user_local::set_communication_relationship