Files
UnrealEngine/Engine/Source/Runtime/EngineSettings/Classes/GameSessionSettings.h
2025-05-18 13:04:45 +08:00

29 lines
776 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "UObject/Object.h"
#include "GameSessionSettings.generated.h"
UCLASS(config=Game, MinimalAPI)
class UGameSessionSettings
: public UObject
{
GENERATED_UCLASS_BODY()
/** Maximum number of spectators allowed by this server. */
UPROPERTY(globalconfig, EditAnywhere, Category=GameSessionSettings)
int32 MaxSpectators;
/** Maximum number of players allowed by this server. */
UPROPERTY(globalconfig, EditAnywhere, Category=GameSessionSettings)
int32 MaxPlayers;
/** Is voice enabled always or via a push to talk key binding. */
UPROPERTY(globalconfig, EditAnywhere, Category=GameSessionSettings)
uint32 bRequiresPushToTalk:1;
};