UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Player.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
7#pragma once
8
9#include "CoreMinimal.h"
11#include "UObject/Object.h"
12#include "Player.generated.h"
13
15
16UCLASS(MinimalAPI, transient, config=Engine)
18{
20
21
24
25 // Net variables.
27 UPROPERTY()
28 int32 CurrentNetSpeed;
29
32 int32 ConfiguredInternetSpeed;
33
36 int32 ConfiguredLanSpeed;
37
38public:
39 //~ Begin FExec Interface.
40#if UE_ALLOW_EXEC_COMMANDS
41 ENGINE_API virtual bool Exec( UWorld* InWorld, const TCHAR* Cmd,FOutputDevice& Ar) override;
42#endif
43 //~ End FExec Interface.
44
50 ENGINE_API virtual void SwitchController( class APlayerController* PC );
51
58 ENGINE_API FString ConsoleCommand(const FString& Cmd, bool bWriteToLog = true);
59
67 ENGINE_API APlayerController* GetPlayerController(const UWorld* const InWorld) const;
68
72 ENGINE_API virtual void ReceivedPlayerController(APlayerController* NewController);
73};
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
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 UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition PlayerController.h:261
virtual ENGINE_API FString ConsoleCommand(const FString &Command, bool bWriteToLog=true)
Definition PlayerController.cpp:536
Definition Engine.Build.cs:7
Definition Exec.h:29
Definition OutputDevice.h:133
Definition Object.h:95
Definition Player.h:18
Definition World.h:918
Definition ObjectPtr.h:488