Skip to content

Commit

Permalink
#77 Cleanup includes
Browse files Browse the repository at this point in the history
  • Loading branch information
xthebat committed Dec 23, 2023
1 parent dacc220 commit 654f26b
Show file tree
Hide file tree
Showing 56 changed files with 156 additions and 68 deletions.
24 changes: 12 additions & 12 deletions Source/Cloud9/Character/Cloud9Character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@

#include "Cloud9Character.h"

#include "Engine/World.h"
#include "DrawDebugHelpers.h"
#include "UObject/ConstructorHelpers.h"
#include "Materials/Material.h"
#include "Camera/CameraComponent.h"
#include "Cloud9/Cloud9.h"
#include "Cloud9/Game/Cloud9DeveloperSettings.h"
#include "Cloud9/Game/Cloud9PlayerController.h"
#include "Components/DecalComponent.h"
#include "Components/CapsuleComponent.h"
#include "Components/Cloud9CharacterMovement.h"
#include "Components/Cloud9Inventory.h"
#include "Components/Cloud9SpringArmComponent.h"
#include "UObject/ConstructorHelpers.h"
#include "Kismet/KismetMathLibrary.h"
#include "GameFramework/CharacterMovementComponent.h"
#include "GameFramework/PlayerController.h"
#include "GameFramework/SpringArmComponent.h"
#include "Materials/Material.h"
#include "Engine/World.h"
#include "Kismet/KismetMathLibrary.h"
#include "Components/DecalComponent.h"
#include "Components/CapsuleComponent.h"

#include "Cloud9/Game/Cloud9DeveloperSettings.h"
#include "Cloud9/Game/Cloud9PlayerController.h"
#include "Cloud9/Character/Components/Cloud9CharacterMovement.h"
#include "Cloud9/Character/Components/Cloud9Inventory.h"
#include "Cloud9/Character/Components/Cloud9SpringArmComponent.h"

class UCloud9SpringArmComponent;
const FName ACloud9Character::SpringArmComponentName = TEXT("CameraBoom");
Expand Down
4 changes: 3 additions & 1 deletion Source/Cloud9/Character/Cloud9Character.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@
#include "CoreMinimal.h"
#include "GameFramework/Character.h"

#include "Components/Cloud9CharacterMovement.h"
#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"
#include "Components/Cloud9Inventory.h"
#include "Components/Cloud9CharacterMovement.h"

#include "Cloud9Character.generated.h"

Expand Down
4 changes: 4 additions & 0 deletions Source/Cloud9/Character/Components/Cloud9CharacterComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

#include "CoreMinimal.h"
#include "UObject/Interface.h"

#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"

#include "Cloud9CharacterComponent.generated.h"

class ACloud9Character;
Expand Down
6 changes: 4 additions & 2 deletions Source/Cloud9/Character/Components/Cloud9CharacterMovement.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
#include "CoreMinimal.h"
#include "GameFramework/CharacterMovementComponent.h"

#include "Cloud9CharacterComponent.h"
#include "Cloud9CharacterMovement.generated.h"
#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"
#include "Cloud9/Character/Components/Cloud9CharacterComponent.h"

#include "Cloud9CharacterMovement.generated.h"

class ACloud9Character;

Expand Down
3 changes: 1 addition & 2 deletions Source/Cloud9/Character/Components/Cloud9Inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@

#include "Cloud9Inventory.h"

#include "Cloud9/Cloud9.h"
#include "Cloud9/Character/Cloud9Character.h"
#include "Cloud9/Tools/Extensions/TContainer.h"
#include "Cloud9/Game/Cloud9GameInstance.h"
#include "Cloud9/Character/Cloud9Character.h"
#include "Cloud9/Weapon/Classes/Cloud9WeaponBase.h"
#include "Cloud9/Weapon/Enums/WeaponState.h"

Expand Down
7 changes: 5 additions & 2 deletions Source/Cloud9/Character/Components/Cloud9Inventory.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@
#pragma once

#include "CoreMinimal.h"
#include "Cloud9/Cloud9.h"
#include "Components/ActorComponent.h"
#include "Cloud9CharacterComponent.h"

#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"
#include "Cloud9/Character/Components/Cloud9CharacterComponent.h"
#include "Cloud9/Weapon/Enums/WeaponSlot.h"
#include "Cloud9/Weapon/Structures/WeaponConfig.h"

#include "Cloud9Inventory.generated.h"

class ACloud9WeaponBase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

#include "Cloud9SpringArmComponent.h"

#include "Cloud9/Cloud9.h"
#include "Cloud9/Game/Cloud9DeveloperSettings.h"
#include "Cloud9/Tools/Cloud9ToolsLibrary.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@

#include "CoreMinimal.h"
#include "GameFramework/SpringArmComponent.h"
#include "Cloud9SpringArmComponent.generated.h"

#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"

#include "Cloud9SpringArmComponent.generated.h"

UCLASS(ClassGroup=(Camera), meta=(BlueprintSpawnableComponent))
class CLOUD9_API UCloud9SpringArmComponent : public USpringArmComponent
Expand Down
4 changes: 4 additions & 0 deletions Source/Cloud9/Console/Cloud9Console.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"

#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"

#include "Cloud9Console.generated.h"

/**
Expand Down
7 changes: 4 additions & 3 deletions Source/Cloud9/Console/Cloud9ConsoleComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@

#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"

#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"

#include "Cloud9ConsoleComponent.generated.h"

class UCloud9Console;
class ACloud9GameMode;

/**
*
*/
UCLASS()
class CLOUD9_API UCloud9ConsoleComponent : public UActorComponent
{
Expand Down
2 changes: 0 additions & 2 deletions Source/Cloud9/Environment/Cloud9LinearDoor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

#include "Cloud9LinearDoor.h"

#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"
#include "Cloud9/Tools/Extensions/AActor.h"
#include "Cloud9/Tools/Extensions/FTransform.h"
#include "Cloud9/Tools/Extensions/FVector.h"
Expand Down
5 changes: 4 additions & 1 deletion Source/Cloud9/Environment/Cloud9LinearDoor.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@

#include "CoreMinimal.h"
#include "Engine/StaticMeshActor.h"

#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"
#include "Cloud9/Tools/Extensions/EDirection.h"
#include "Cloud9LinearDoor.generated.h"

#include "Cloud9LinearDoor.generated.h"

UCLASS()
class CLOUD9_API ACloud9LinearDoor : public AStaticMeshActor
Expand Down
1 change: 0 additions & 1 deletion Source/Cloud9/Game/Cloud9AssetManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
// OTHER DEALINGS IN THE SOFTWARE.

#include "Cloud9AssetManager.h"
#include "Cloud9/Cloud9.h"

UObject* UCloud9AssetManager::GetOrLoadAssetSync(FPrimaryAssetId PrimaryAssetId)
{
Expand Down
4 changes: 4 additions & 0 deletions Source/Cloud9/Game/Cloud9AssetManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

#include "CoreMinimal.h"
#include "Engine/AssetManager.h"

#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"

#include "Cloud9AssetManager.generated.h"

UCLASS()
Expand Down
3 changes: 1 addition & 2 deletions Source/Cloud9/Game/Cloud9ControllerComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@

#include "Cloud9ControllerComponent.h"

#include "Cloud9PlayerController.h"
#include "Cloud9/Cloud9.h"
#include "Cloud9/Game/Cloud9PlayerController.h"
#include "Cloud9/Character/Cloud9Character.h"

ACloud9Character* ICloud9ControllerComponent::GetCloud9Pawn() const
Expand Down
6 changes: 5 additions & 1 deletion Source/Cloud9/Game/Cloud9ControllerComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@

#include "CoreMinimal.h"
#include "UObject/Interface.h"

#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"
#include "Cloud9/Character/Cloud9Character.h"
#include "Cloud9ControllerComponent.generated.h"

#include "Cloud9ControllerComponent.generated.h"

UINTERFACE()
class UCloud9ControllerComponent : public UInterface
Expand All @@ -38,6 +41,7 @@ class UCloud9ControllerComponent : public UInterface
class CLOUD9_API ICloud9ControllerComponent
{
GENERATED_BODY()

public:
ACloud9Character* GetCloud9Pawn() const;

Expand Down
2 changes: 0 additions & 2 deletions Source/Cloud9/Game/Cloud9DeveloperSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@

#include "Cloud9DeveloperSettings.h"

#include "Cloud9/Cloud9.h"
#include "Cloud9/Tools/Extensions/FString.h"
#include "Cloud9/Tools/Extensions/UObject.h"
#include "Cloud9/Tools/Extensions/WhenOrNone.h"

// ReSharper disable once CppPossiblyUninitializedMember
UCloud9DeveloperSettings::UCloud9DeveloperSettings(const FObjectInitializer& ObjectInitializer)
Expand Down
4 changes: 4 additions & 0 deletions Source/Cloud9/Game/Cloud9DeveloperSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
#pragma once

#include "CoreMinimal.h"

#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"

#include "Cloud9DeveloperSettings.generated.h"

USTRUCT(BlueprintType)
Expand Down
5 changes: 5 additions & 0 deletions Source/Cloud9/Game/Cloud9GameInstance.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@

#include "CoreMinimal.h"
#include "Engine/GameInstance.h"

#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"

#include "Cloud9/Weapon/Enums/WeaponSlot.h"
#include "Cloud9/Weapon/Structures/WeaponConfig.h"

#include "Cloud9GameInstance.generated.h"

UCLASS()
Expand Down
4 changes: 2 additions & 2 deletions Source/Cloud9/Game/Cloud9GameMode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@

#include "Cloud9GameMode.h"

#include "UObject/ConstructorHelpers.h"

#include "Cloud9DeveloperSettings.h"
#include "Cloud9PlayerController.h"
#include "Cloud9/Cloud9.h"
#include "Cloud9/Character/Cloud9Character.h"
#include "UObject/ConstructorHelpers.h"

ACloud9GameMode::ACloud9GameMode()
{
Expand Down
4 changes: 4 additions & 0 deletions Source/Cloud9/Game/Cloud9GameMode.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

#include "CoreMinimal.h"
#include "GameFramework/GameModeBase.h"

#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"

#include "Cloud9GameMode.generated.h"

class UCloud9DeveloperSettings;
Expand Down
4 changes: 2 additions & 2 deletions Source/Cloud9/Game/Cloud9KeyboardController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@

#include "Cloud9KeyboardController.h"

#include "Cloud9/Cloud9.h"
#include "Cloud9/Weapon/Classes/Cloud9WeaponBase.h"
#include "GameFramework/SpringArmComponent.h"

#include "Cloud9/Weapon/Classes/Cloud9WeaponBase.h"

UCloud9KeyboardController::UCloud9KeyboardController()
{
PrimaryComponentTick.bCanEverTick = true;
Expand Down
4 changes: 4 additions & 0 deletions Source/Cloud9/Game/Cloud9KeyboardController.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

#include "CoreMinimal.h"
#include "Cloud9ControllerComponent.h"

#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"

#include "Cloud9KeyboardController.generated.h"

DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnMoveDelegate);
Expand Down
5 changes: 2 additions & 3 deletions Source/Cloud9/Game/Cloud9MouseController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.

#include "Cloud9MouseController.h"
#include "Cloud9PlayerController.h"
#include "Cloud9/Cloud9.h"
#include "Cloud9/Game/Cloud9MouseController.h"
#include "Cloud9/Game/Cloud9PlayerController.h"
#include "Cloud9/Tools/Cloud9ToolsLibrary.h"

UCloud9MouseController::UCloud9MouseController()
Expand Down
4 changes: 4 additions & 0 deletions Source/Cloud9/Game/Cloud9MouseController.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

#include "CoreMinimal.h"
#include "Cloud9ControllerComponent.h"

#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"

#include "Cloud9MouseController.generated.h"

class ACloud9Character;
Expand Down
10 changes: 5 additions & 5 deletions Source/Cloud9/Game/Cloud9PlayerController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@

#include "Cloud9PlayerController.h"

#include "Cloud9DeveloperSettings.h"
#include "Cloud9KeyboardController.h"
#include "Cloud9MouseController.h"
#include "Cloud9/Cloud9.h"
#include "Cloud9/Console/Cloud9ConsoleComponent.h"
#include "Engine/World.h"

#include "Cloud9/Game/Cloud9DeveloperSettings.h"
#include "Cloud9/Game/Cloud9KeyboardController.h"
#include "Cloud9/Game/Cloud9MouseController.h"
#include "Cloud9/Console/Cloud9ConsoleComponent.h"

const FName ACloud9PlayerController::ConsoleName = TEXT("Console");
const FName ACloud9PlayerController::KeyboardControllerName = TEXT("KeyboardController");
const FName ACloud9PlayerController::MouseControllerName = TEXT("MouseController");
Expand Down
4 changes: 4 additions & 0 deletions Source/Cloud9/Game/Cloud9PlayerController.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

#include "CoreMinimal.h"
#include "GameFramework/PlayerController.h"

#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tools/Macro/Logging.h"

#include "Cloud9PlayerController.generated.h"

class UCloud9KeyboardController;
Expand Down
2 changes: 0 additions & 2 deletions Source/Cloud9/Tests/Unit/Tools/TestContainer.spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.


#include "Cloud9/Cloud9.h"
#include "Cloud9/Tools/Extensions/TContainer.h"

BEGIN_DEFINE_SPEC(
Expand Down
2 changes: 0 additions & 2 deletions Source/Cloud9/Tests/Unit/Tools/TestOperator.spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.


#include "Cloud9/Cloud9.h"
#include "Cloud9/Tools/Extensions/TContainer.h"
#include "Cloud9/Tools/Macro/Operator.h"

Expand Down
2 changes: 1 addition & 1 deletion Source/Cloud9/Tests/Unit/Tools/TestWhenOrNone.spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.


#include "Cloud9/Tools/Macro/Common.h"
#include "Cloud9/Tests/Unit/Fake/UWhenOrNoneTestClassA.h"
#include "Cloud9/Tests/Unit/Fake/UWhenOrNoneTestClassB.h"
#include "Cloud9/Tools/Extensions/WhenOrNone.h"
Expand Down
1 change: 0 additions & 1 deletion Source/Cloud9/Tools/Cloud9ToolsLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

#include "Cloud9ToolsLibrary.h"

#include "Cloud9/Cloud9.h"
#include "Cloud9/Game/Cloud9GameMode.h"

void UCloud9ToolsLibrary::SetCollisionComplexity(UStaticMesh* StaticMesh, uint8 CollisionTraceFlag)
Expand Down
Loading

0 comments on commit 654f26b

Please sign in to comment.