mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-07 16:18:50 +00:00
Fix includes
This commit is contained in:
@@ -6,21 +6,10 @@ public class CogDebug : ModuleRules
|
|||||||
{
|
{
|
||||||
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
|
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
|
||||||
|
|
||||||
PublicIncludePaths.AddRange(
|
|
||||||
new string[] {
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
PrivateIncludePaths.AddRange(
|
|
||||||
new string[] {
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
PublicDependencyModuleNames.AddRange(
|
PublicDependencyModuleNames.AddRange(
|
||||||
new string[]
|
new string[]
|
||||||
{
|
{
|
||||||
|
"Engine",
|
||||||
"Core",
|
"Core",
|
||||||
"CogImgui",
|
"CogImgui",
|
||||||
"CogCommon",
|
"CogCommon",
|
||||||
@@ -32,18 +21,10 @@ public class CogDebug : ModuleRules
|
|||||||
new string[]
|
new string[]
|
||||||
{
|
{
|
||||||
"CoreUObject",
|
"CoreUObject",
|
||||||
"Engine",
|
|
||||||
"Slate",
|
"Slate",
|
||||||
"SlateCore",
|
"SlateCore",
|
||||||
"NetCore",
|
"NetCore",
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
DynamicallyLoadedModuleNames.AddRange(
|
|
||||||
new string[]
|
|
||||||
{
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
#include "CogImGuiHelper.h"
|
#include "CogImGuiHelper.h"
|
||||||
#include "Components/PrimitiveComponent.h"
|
#include "Components/PrimitiveComponent.h"
|
||||||
#include "Components/SceneComponent.h"
|
#include "Components/SceneComponent.h"
|
||||||
|
#include "DrawDebugHelpers.h"
|
||||||
|
#include "Engine/World.h"
|
||||||
#include "GameFramework/PlayerController.h"
|
#include "GameFramework/PlayerController.h"
|
||||||
#include "imgui.h"
|
#include "imgui.h"
|
||||||
#include "Kismet/GameplayStatics.h"
|
#include "Kismet/GameplayStatics.h"
|
||||||
@@ -244,7 +246,7 @@ bool FCogDebug_Gizmo::Draw(const char* Id, const APlayerController& InPlayerCont
|
|||||||
const FColor GizmoAxisColorsZHigh[] = { Settings.GizmoAxisColorsZHighX, Settings.GizmoAxisColorsZHighY, Settings.GizmoAxisColorsZHighZ, Settings.GizmoAxisColorsZHighW };
|
const FColor GizmoAxisColorsZHigh[] = { Settings.GizmoAxisColorsZHighX, Settings.GizmoAxisColorsZHighY, Settings.GizmoAxisColorsZHighZ, Settings.GizmoAxisColorsZHighW };
|
||||||
const FColor GizmoAxisColorsSelection[] = { Settings.GizmoAxisColorsSelectionX, Settings.GizmoAxisColorsSelectionY, Settings.GizmoAxisColorsSelectionZ, Settings.GizmoAxisColorsSelectionW };
|
const FColor GizmoAxisColorsSelection[] = { Settings.GizmoAxisColorsSelectionX, Settings.GizmoAxisColorsSelectionY, Settings.GizmoAxisColorsSelectionZ, Settings.GizmoAxisColorsSelectionW };
|
||||||
|
|
||||||
FCogDebug_GizmoElement GizmoElements[ECogDebug_GizmoElementType::MAX];
|
FCogDebug_GizmoElement GizmoElements[(uint8)ECogDebug_GizmoElementType::MAX];
|
||||||
for (FCogDebug_GizmoElement& GizmoElement : GizmoElements)
|
for (FCogDebug_GizmoElement& GizmoElement : GizmoElements)
|
||||||
{
|
{
|
||||||
GizmoElement.Type = ECogDebug_GizmoType::MAX;
|
GizmoElement.Type = ECogDebug_GizmoType::MAX;
|
||||||
|
|||||||
@@ -1,15 +1,16 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "CoreMinimal.h"
|
#include "CoreMinimal.h"
|
||||||
|
#include "Engine/EngineTypes.h"
|
||||||
#include "UObject/WeakObjectPtrTemplates.h"
|
#include "UObject/WeakObjectPtrTemplates.h"
|
||||||
#include "CogDebug.generated.h"
|
#include "CogDebug.generated.h"
|
||||||
|
|
||||||
struct FCogDebugDrawSweepParams;
|
class AActor;
|
||||||
|
class UObject;
|
||||||
|
class UWorld;
|
||||||
struct FCogDebugDrawLineTraceParams;
|
struct FCogDebugDrawLineTraceParams;
|
||||||
struct FCogDebugDrawOverlapParams;
|
struct FCogDebugDrawOverlapParams;
|
||||||
class UObject;
|
struct FCogDebugDrawSweepParams;
|
||||||
class AActor;
|
|
||||||
class UWorld;
|
|
||||||
|
|
||||||
USTRUCT()
|
USTRUCT()
|
||||||
struct FCogDebugSettings
|
struct FCogDebugSettings
|
||||||
|
|||||||
@@ -1,12 +1,15 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "CoreMinimal.h"
|
#include "CoreMinimal.h"
|
||||||
|
#include "Engine/EngineTypes.h"
|
||||||
|
|
||||||
namespace EDrawDebugTrace { enum Type : int; }
|
|
||||||
|
|
||||||
class UWorld;
|
|
||||||
struct FHitResult;
|
|
||||||
class AActor;
|
class AActor;
|
||||||
|
class UPrimitiveComponent;
|
||||||
|
class UWorld;
|
||||||
|
namespace EDrawDebugTrace { enum Type : int; }
|
||||||
|
struct FCollisionShape;
|
||||||
|
struct FHitResult;
|
||||||
|
struct FOverlapResult;
|
||||||
|
|
||||||
struct FCogDebugDrawOverlapParams
|
struct FCogDebugDrawOverlapParams
|
||||||
{
|
{
|
||||||
@@ -43,9 +46,9 @@ class COGDEBUG_API FCogDebugDrawHelper
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
static void DrawArc(const UWorld* World, const FMatrix& Matrix, const float InnterRadius, const float OuterRadius, const float AngleStart, const float AngleEnd, const int32 Segments, const FColor& Color, const bool bPersistentLines = false, const float LifeTime = -1.f, const uint8 DepthPriority = 0U, const float Thickness = 0.0f);
|
static void DrawArc(const UWorld* World, const FMatrix& Matrix, const float InnerRadius, const float OuterRadius, const float AngleStart, const float AngleEnd, const int32 Segments, const FColor& Color, const bool bPersistentLines = false, const float LifeTime = -1.f, const uint8 DepthPriority = 0U, const float Thickness = 0.0f);
|
||||||
|
|
||||||
static void DrawArc(const UWorld* World, const FMatrix& Matrix, const float InnterRadius, const float OuterRadius, const float ArcAngle, const int32 Segments, const FColor& Color, const bool bPersistentLines = false, const float LifeTime = -1.f, const uint8 DepthPriority = 0U, const float Thickness = 0.0f);
|
static void DrawArc(const UWorld* World, const FMatrix& Matrix, const float InnerRadius, const float OuterRadius, const float ArcAngle, const int32 Segments, const FColor& Color, const bool bPersistentLines = false, const float LifeTime = -1.f, const uint8 DepthPriority = 0U, const float Thickness = 0.0f);
|
||||||
|
|
||||||
static void DrawSphere(const UWorld* World, const FVector& Center, const float Radius, const int32 Segments, const FColor& Color, const bool bPersistentLines = false, const float LifeTime = -1.f, const uint8 DepthPriority = 0U, const float Thickness = 0.0f);
|
static void DrawSphere(const UWorld* World, const FVector& Center, const float Radius, const int32 Segments, const FColor& Color, const bool bPersistentLines = false, const float LifeTime = -1.f, const uint8 DepthPriority = 0U, const float Thickness = 0.0f);
|
||||||
|
|
||||||
@@ -70,5 +73,4 @@ public:
|
|||||||
static void DrawLineTrace(const UWorld* World, const FVector& Start, const FVector& End, const bool HasHits, TArray<FHitResult>& HitResults, const FCogDebugDrawLineTraceParams& Settings);
|
static void DrawLineTrace(const UWorld* World, const FVector& Start, const FVector& End, const bool HasHits, TArray<FHitResult>& HitResults, const FCogDebugDrawLineTraceParams& Settings);
|
||||||
|
|
||||||
static void DrawSweep(const UWorld* World, const FCollisionShape& Shape, const FVector& Start, const FVector& End, const FQuat& Rotation, const bool HasHits, TArray<FHitResult>& HitResults, const FCogDebugDrawSweepParams& Settings);
|
static void DrawSweep(const UWorld* World, const FCollisionShape& Shape, const FVector& Start, const FVector& End, const FQuat& Rotation, const bool HasHits, TArray<FHitResult>& HitResults, const FCogDebugDrawSweepParams& Settings);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
#include "CoreMinimal.h"
|
#include "CoreMinimal.h"
|
||||||
#include "CogDebugGizmo.generated.h"
|
#include "CogDebugGizmo.generated.h"
|
||||||
|
|
||||||
|
class APlayerController;
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------------------------------
|
||||||
UENUM(Flags)
|
UENUM(Flags)
|
||||||
enum class ECogDebug_GizmoFlags : uint8
|
enum class ECogDebug_GizmoFlags : uint8
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
#include "CogDebug.h"
|
#include "CogDebug.h"
|
||||||
#include "Components/PrimitiveComponent.h"
|
#include "Components/PrimitiveComponent.h"
|
||||||
#include "Components/SceneComponent.h"
|
#include "Components/SceneComponent.h"
|
||||||
|
#include "Engine/World.h"
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------------------------------
|
||||||
ACogEngineCollisionTester::ACogEngineCollisionTester(const FObjectInitializer& ObjectInitializer)
|
ACogEngineCollisionTester::ACogEngineCollisionTester(const FObjectInitializer& ObjectInitializer)
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
#include "CogWindowHelper.h"
|
#include "CogWindowHelper.h"
|
||||||
#include "CogWindowWidgets.h"
|
#include "CogWindowWidgets.h"
|
||||||
#include "imgui.h"
|
#include "imgui.h"
|
||||||
|
#include "GameFramework/Actor.h"
|
||||||
|
#include "GameFramework/Pawn.h"
|
||||||
|
|
||||||
#if WITH_EDITOR
|
#if WITH_EDITOR
|
||||||
#include "IAssetTools.h"
|
#include "IAssetTools.h"
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
#include "CogWindowWidgets.h"
|
#include "CogWindowWidgets.h"
|
||||||
#include "Components/PrimitiveComponent.h"
|
#include "Components/PrimitiveComponent.h"
|
||||||
#include "Components/SceneComponent.h"
|
#include "Components/SceneComponent.h"
|
||||||
|
#include "Engine/CollisionProfile.h"
|
||||||
|
#include "Engine/World.h"
|
||||||
#include "imgui.h"
|
#include "imgui.h"
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
#include "CogDebug.h"
|
#include "CogDebug.h"
|
||||||
#include "CogImGuiHelper.h"
|
#include "CogImGuiHelper.h"
|
||||||
#include "CogWindowWidgets.h"
|
#include "CogWindowWidgets.h"
|
||||||
#include "imgui_internal.h"
|
#include "Engine/CollisionProfile.h"
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------------------------------
|
||||||
void FCogEngineWindow_DebugSettings::RenderHelp()
|
void FCogEngineWindow_DebugSettings::RenderHelp()
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
#include "CogDebug.h"
|
#include "CogDebug.h"
|
||||||
#include "CogImGuiHelper.h"
|
#include "CogImGuiHelper.h"
|
||||||
#include "CogWindowWidgets.h"
|
#include "CogWindowWidgets.h"
|
||||||
|
#include "GameFramework/Actor.h"
|
||||||
#include "imgui.h"
|
#include "imgui.h"
|
||||||
#include "imgui_internal.h"
|
#include "imgui_internal.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "CoreMinimal.h"
|
#include "CoreMinimal.h"
|
||||||
|
#include "Engine/EngineTypes.h"
|
||||||
#include "Engine/HitResult.h"
|
#include "Engine/HitResult.h"
|
||||||
|
#include "GameFramework/Actor.h"
|
||||||
#include "CogEngineCollisionTester.generated.h"
|
#include "CogEngineCollisionTester.generated.h"
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#include "CoreMinimal.h"
|
#include "CoreMinimal.h"
|
||||||
|
|
||||||
|
class AActor;
|
||||||
|
|
||||||
class COGENGINE_API FCogEngineHelper
|
class COGENGINE_API FCogEngineHelper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
#include "AssetRegistry/AssetRegistryModule.h"
|
#include "AssetRegistry/AssetRegistryModule.h"
|
||||||
#include "AssetRegistry/IAssetRegistry.h"
|
#include "AssetRegistry/IAssetRegistry.h"
|
||||||
#include "CogDebug.h"
|
#include "CogDebug.h"
|
||||||
|
#include "GameFramework/PlayerController.h"
|
||||||
|
#include "imgui.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------------------------
|
||||||
const UObject* FCogWindowHelper::GetFirstAssetByClass(const TSubclassOf<UObject> AssetClass)
|
const UObject* FCogWindowHelper::GetFirstAssetByClass(const TSubclassOf<UObject> AssetClass)
|
||||||
|
|||||||
@@ -5,7 +5,9 @@
|
|||||||
#include "CogImguiInputHelper.h"
|
#include "CogImguiInputHelper.h"
|
||||||
#include "CogImguiKeyInfo.h"
|
#include "CogImguiKeyInfo.h"
|
||||||
#include "CogWindowHelper.h"
|
#include "CogWindowHelper.h"
|
||||||
|
#include "Components/PrimitiveComponent.h"
|
||||||
#include "EngineUtils.h"
|
#include "EngineUtils.h"
|
||||||
|
#include "GameFramework/Pawn.h"
|
||||||
#include "GameFramework/PlayerInput.h"
|
#include "GameFramework/PlayerInput.h"
|
||||||
#include "imgui.h"
|
#include "imgui.h"
|
||||||
#include "imgui_internal.h"
|
#include "imgui_internal.h"
|
||||||
|
|||||||
@@ -5,12 +5,13 @@
|
|||||||
#include "UObject/ReflectedTypeAccessors.h"
|
#include "UObject/ReflectedTypeAccessors.h"
|
||||||
|
|
||||||
class FEnumProperty;
|
class FEnumProperty;
|
||||||
|
class UCollisionProfile;
|
||||||
class UEnum;
|
class UEnum;
|
||||||
class UObject;
|
class UObject;
|
||||||
enum class ECheckBoxState : uint8;
|
enum class ECheckBoxState : uint8;
|
||||||
|
enum ECollisionChannel : int;
|
||||||
struct FCogImGuiKeyInfo;
|
struct FCogImGuiKeyInfo;
|
||||||
struct FKeyBind;
|
struct FKeyBind;
|
||||||
struct FKeyBind;
|
|
||||||
|
|
||||||
using FCogWindowActorContextMenuFunction = TFunction<void(AActor& Actor)>;
|
using FCogWindowActorContextMenuFunction = TFunction<void(AActor& Actor)>;
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
#include "CogAbilityHelper.h"
|
#include "CogAbilityHelper.h"
|
||||||
#include "CogImguiHelper.h"
|
#include "CogImguiHelper.h"
|
||||||
#include "CogWindowWidgets.h"
|
#include "CogWindowWidgets.h"
|
||||||
|
#include "Engine/World.h"
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------------------------------
|
||||||
void FCogAbilityWindow_Effects::Initialize()
|
void FCogAbilityWindow_Effects::Initialize()
|
||||||
|
|||||||
Reference in New Issue
Block a user