UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PlayerMuteList.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "Online/CoreOnline.h"
7#include "Misc/EnumRange.h"
8#include "PlayerMuteList.generated.h"
9
10struct FUniqueNetIdRepl;
11
12UENUM(meta = (Bitflags))
14{
15 None = 0, // Communication with this client has no filter reasons
16 Muted = 1 << 0, // The owning player controller has explicitly muted the player
17 Gameplay = 1 << 1, // The player was muted for gameplay reasons
18 Blocked = 1 << 2, // The owning player controller has blocked the player
19 BlockedBy = 1 << 3, // The owning player controller was blocked by the player
20};
23
28USTRUCT()
30{
32
33public:
34
36 bHasVoiceHandshakeCompleted(false),
37 VoiceChannelIdx(0)
38 {
39 }
40
43
45 UPROPERTY()
46 bool bHasVoiceHandshakeCompleted;
47 UPROPERTY()
48 int32 VoiceChannelIdx;
49
50public:
51
60 bool AddVoiceBlockReason(const FUniqueNetIdPtr& PlayerId, EVoiceBlockReasons VoiceBlockReason);
61
70 bool RemoveVoiceBlockReason(const FUniqueNetIdPtr& PlayerId, EVoiceBlockReasons VoiceBlockReason);
71
78 void ServerMutePlayer(class APlayerController* OwningPC, const FUniqueNetIdRepl& MuteId);
79
86 void ServerUnmutePlayer(class APlayerController* OwningPC, const FUniqueNetIdRepl& UnmuteId);
87
94 void GameplayMutePlayer(class APlayerController* OwningPC, const FUniqueNetIdRepl& MuteId);
95
102 void GameplayUnmutePlayer(class APlayerController* OwningPC, const FUniqueNetIdRepl& UnmuteId);
103
109 void GameplayUnmuteAllPlayers(class APlayerController* OwningPC);
110
117 void ServerBlockPlayer(class APlayerController* OwningPC, const FUniqueNetIdRepl& BlockId);
118
124 void ServerUnblockPlayer(class APlayerController* OwningPC, const FUniqueNetIdRepl& UnblockId);
125
133 bool IsPlayerMuted(const class FUniqueNetId& PlayerId);
134};
135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define ENUM_CLASS_FLAGS(Enum)
Definition EnumClassFlags.h:6
#define ENUM_RANGE_BY_VALUES(EnumType,...)
Definition EnumRange.h:74
const bool
Definition NetworkReplayStreaming.h:178
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UENUM(...)
Definition ObjectMacros.h:749
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
EVoiceBlockReasons
Definition PlayerMuteList.h:14
ENGINE_API FString DumpMutelistState(UWorld *World)
Definition PlayerMuteList.cpp:183
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition PlayerController.h:261
Definition CoreOnline.h:102
Definition UnrealString.h.inl:34
Definition SharedPointer.h:692
Definition World.h:918
@ false
Definition radaudio_common.h:23
Definition PlayerMuteList.h:30
TUniqueNetIdMap< EVoiceBlockReasons > VoicePacketFilterMap
Definition PlayerMuteList.h:42
FPlayerMuteList()
Definition PlayerMuteList.h:35
Definition OnlineReplStructs.h:26