Files
UnrealEngineUWP/Engine/Source/Developer/GameplayDebugger/Classes/GameplayDebuggingControllerComponent.h
Billy Bramer 087e56e66a Merging using UE4-Fortnite-To-UE4 from CL 2261973
Includes the following engine-level changes (among others; biggest change is enabling world assets by default):

CL 2252857
added dynamic allocations for path finding, removed hardcoded limit of 128 polys in path corridor

CL 2256142
Added support for native arrays in JSON object converter.

- Permissive in treating arrays of size 1 and scalars as equivalent
- Excess elements in JSON are ignored. Serialization succeeds but a warning is logged

CL 2256073
Fixed a bug in ARecastNavMesh::BatchRaycast resulting in NaN hit locations

CL 2253797
#UE4 More aggressively setting RF_Public and RF_Standalone flags on maps and ensuring world names match package names. This is necessary because umaps are currently being managed outside of the content browser and it is causing a few issues. Also, packages containing maps now synthesize asset data when the package contains absolutely no asset data (probably because the UWorld in it was not RF_Public at the time it was saved due to a previous bug).

CL 2258142
#UE4 Added a GC during map load that reclaims memory allocated during load/init. This is needed to finish the load on low-memory devices in games that allocate more memory after load.

CL 2247003
Added homing to ProjectileMovementComponent

- Homing requires both a bool and a target component to be set, the strength is determined by a customizable variable
- Both homing and gravity are now applied in the new virtual function "CalculateAcceleration"

CL 2247249
Moved the homing modification to acceleration occur in a separate function specifically for homing

CL 2257043
- Guard net dormancy calls against executing on clients, based on thread with DaveR and JohnP; This particular case was the result of an intentionally client-authoritative actor calling the dormancy functions via inheritance

CL 2245629
#UE4 - fixed json TryGetNumber to round negatives appropriately

CL 2255312
#UE4 Enabling World Assets by default.

CL 2260956
Analytics ET now loads HTTP at StartupModule so the module will be available during ShutdownModule to flush events

CL 2245571
GenericTeamAgentInterface can now retrieve attitude of an agent towards a given actor #UE4

- Made PerceptionSystem's sight sense take advantage of that

CL 2246897
Fixed perception listeners not being removed from the PerceptionSystem on Owner's end play #UE4

- addresses TTP#343392

CL 2260634
added more debug data for NaN in crowd simulation

CL 2248387
Added possibility to debug multiple EQS queries with GameplayDebugger. #ue4
Fixed network replication from bandwidth point of view for data in GameplayDebugger. #ue4

CL 2253281
Added additional information to the visual logger for UBTCompositeNode::DoDecoratorsAllowExecution
- We now keep track of whether a decorator allows execution, in addition to the existing log for not allowing execution

CL 2255310
#UE4 The world browser module now listens to WorldAdded/WorldDestroyed events instead of WorldInit/WorldCleanup events. Worlds can be initialized without being the editor world and this handles that case.

CL 2258256
#UE4 Replacing the SOpenLevelDialog with a new generic SAssetDialog. This dialog will be used as a generic Open or Save As dialog for assets.

[CL 2266822 by Billy Bramer in Main branch]
2014-08-21 20:30:51 -04:00

85 lines
2.4 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
/**
* GameplayDebuggingComponent is used to replicate debug data from server to client(s).
*/
#pragma once
#include "GameplayDebuggingTypes.h"
#include "GameplayDebugger.h"
#include "GameplayDebuggingControllerComponent.generated.h"
class AGameplayDebuggingReplicator;
UCLASS(config = Engine)
class GAMEPLAYDEBUGGER_API UGameplayDebuggingControllerComponent : public UActorComponent
{
GENERATED_UCLASS_BODY()
virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override;
virtual void BeginDestroy() override;
virtual void OnRegister() override;
void SetPlayerOwner(APlayerController* PC) { PlayerOwner = PC; }
void BindActivationKeys();
void OnActivationKeyPressed();
void OnActivationKeyReleased();
void SetActiveViews(uint32 InActiveViews);
virtual uint32 GetActiveViews();
bool IsViewActive(EAIDebugDrawDataView::Type View) const;
void EnableActiveView(EAIDebugDrawDataView::Type View, bool bEnable);
void ToggleActiveView(EAIDebugDrawDataView::Type View)
{
EnableActiveView(View, IsViewActive(View) ? false : true);
}
/** periodic update of navmesh data */
void UpdateNavMeshTimer();
FOnChangeEQSQuery OnNextEQSQuery;
FOnChangeEQSQuery OnPreviousEQSQuery;
protected:
UPROPERTY(Transient)
class AGameplayDebuggingHUDComponent* OnDebugAIHUD;
UPROPERTY(Transient)
class AActor* DebugAITargetActor;
UPROPERTY(Transient)
class UInputComponent* AIDebugViewInputComponent;
void OpenDebugTool();
void CloseDebugTool();
void EnableTargetSelection(bool bEnable);
bool CanToggleView();
virtual void ToggleAIDebugView_SetView0();
virtual void ToggleAIDebugView_SetView1();
virtual void ToggleAIDebugView_SetView2();
virtual void ToggleAIDebugView_SetView3();
virtual void ToggleAIDebugView_SetView4();
virtual void ToggleAIDebugView_SetView5();
virtual void ToggleAIDebugView_SetView6();
virtual void ToggleAIDebugView_SetView7();
virtual void ToggleAIDebugView_SetView8();
virtual void ToggleAIDebugView_SetView9();
virtual void NextEQSQuery();
virtual void BindAIDebugViewKeys();
AGameplayDebuggingReplicator* GetDebuggingReplicator() const;
TWeakObjectPtr<APlayerController> PlayerOwner;
const float KeyPressActivationTime;
float ControlKeyPressedTime;
float PlayersComponentRequestTime;
uint32 bToolActivated : 1;
uint32 bWaitingForOwnersComponent : 1;
};