From 08cf00374e557d60308ea6d519f625d18acf498a Mon Sep 17 00:00:00 2001 From: Jonathan Rampersad Date: Sun, 17 Nov 2024 18:04:45 -0400 Subject: [PATCH] Added starter Source Folder --- Source/Aura.Target.cs | 15 ++++++++++ Source/Aura/Aura.Build.cs | 23 +++++++++++++++ Source/Aura/Aura.cpp | 6 ++++ Source/Aura/Aura.h | 6 ++++ Source/Aura/Private/AuraCharacterBase.cpp | 34 +++++++++++++++++++++++ Source/Aura/Public/AuraCharacterBase.h | 29 +++++++++++++++++++ Source/AuraEditor.Target.cs | 15 ++++++++++ 7 files changed, 128 insertions(+) create mode 100644 Source/Aura.Target.cs create mode 100644 Source/Aura/Aura.Build.cs create mode 100644 Source/Aura/Aura.cpp create mode 100644 Source/Aura/Aura.h create mode 100644 Source/Aura/Private/AuraCharacterBase.cpp create mode 100644 Source/Aura/Public/AuraCharacterBase.h create mode 100644 Source/AuraEditor.Target.cs diff --git a/Source/Aura.Target.cs b/Source/Aura.Target.cs new file mode 100644 index 0000000..1320f75 --- /dev/null +++ b/Source/Aura.Target.cs @@ -0,0 +1,15 @@ +// Assets provided by DruidMechanics. Copyright Jonathan Rampersad 2024 + +using UnrealBuildTool; +using System.Collections.Generic; + +public class AuraTarget : TargetRules +{ + public AuraTarget(TargetInfo Target) : base(Target) + { + Type = TargetType.Game; + DefaultBuildSettings = BuildSettingsVersion.V2; + + ExtraModuleNames.AddRange( new string[] { "Aura" } ); + } +} diff --git a/Source/Aura/Aura.Build.cs b/Source/Aura/Aura.Build.cs new file mode 100644 index 0000000..6fb614f --- /dev/null +++ b/Source/Aura/Aura.Build.cs @@ -0,0 +1,23 @@ +// Assets provided by DruidMechanics. Copyright Jonathan Rampersad 2024 + +using UnrealBuildTool; + +public class Aura : ModuleRules +{ + public Aura(ReadOnlyTargetRules Target) : base(Target) + { + PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; + + PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" }); + + PrivateDependencyModuleNames.AddRange(new string[] { }); + + // Uncomment if you are using Slate UI + // PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" }); + + // Uncomment if you are using online features + // PrivateDependencyModuleNames.Add("OnlineSubsystem"); + + // To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true + } +} diff --git a/Source/Aura/Aura.cpp b/Source/Aura/Aura.cpp new file mode 100644 index 0000000..3f69b27 --- /dev/null +++ b/Source/Aura/Aura.cpp @@ -0,0 +1,6 @@ +// Assets provided by DruidMechanics. Copyright Jonathan Rampersad 2024 + +#include "Aura.h" +#include "Modules/ModuleManager.h" + +IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, Aura, "Aura" ); diff --git a/Source/Aura/Aura.h b/Source/Aura/Aura.h new file mode 100644 index 0000000..636b14a --- /dev/null +++ b/Source/Aura/Aura.h @@ -0,0 +1,6 @@ +// Assets provided by DruidMechanics. Copyright Jonathan Rampersad 2024 + +#pragma once + +#include "CoreMinimal.h" + diff --git a/Source/Aura/Private/AuraCharacterBase.cpp b/Source/Aura/Private/AuraCharacterBase.cpp new file mode 100644 index 0000000..f5faf2e --- /dev/null +++ b/Source/Aura/Private/AuraCharacterBase.cpp @@ -0,0 +1,34 @@ +// Assets provided by DruidMechanics. Copyright Jonathan Rampersad 2024 + + +#include "AuraCharacterBase.h" + +// Sets default values +AAuraCharacterBase::AAuraCharacterBase() +{ + // Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it. + PrimaryActorTick.bCanEverTick = true; + +} + +// Called when the game starts or when spawned +void AAuraCharacterBase::BeginPlay() +{ + Super::BeginPlay(); + +} + +// Called every frame +void AAuraCharacterBase::Tick(float DeltaTime) +{ + Super::Tick(DeltaTime); + +} + +// Called to bind functionality to input +void AAuraCharacterBase::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) +{ + Super::SetupPlayerInputComponent(PlayerInputComponent); + +} + diff --git a/Source/Aura/Public/AuraCharacterBase.h b/Source/Aura/Public/AuraCharacterBase.h new file mode 100644 index 0000000..d9f8fed --- /dev/null +++ b/Source/Aura/Public/AuraCharacterBase.h @@ -0,0 +1,29 @@ +// Assets provided by DruidMechanics. Copyright Jonathan Rampersad 2024 + +#pragma once + +#include "CoreMinimal.h" +#include "GameFramework/Character.h" +#include "AuraCharacterBase.generated.h" + +UCLASS() +class AURA_API AAuraCharacterBase : public ACharacter +{ + GENERATED_BODY() + +public: + // Sets default values for this character's properties + AAuraCharacterBase(); + +protected: + // Called when the game starts or when spawned + virtual void BeginPlay() override; + +public: + // Called every frame + virtual void Tick(float DeltaTime) override; + + // Called to bind functionality to input + virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override; + +}; diff --git a/Source/AuraEditor.Target.cs b/Source/AuraEditor.Target.cs new file mode 100644 index 0000000..6074eac --- /dev/null +++ b/Source/AuraEditor.Target.cs @@ -0,0 +1,15 @@ +// Assets provided by DruidMechanics. Copyright Jonathan Rampersad 2024 + +using UnrealBuildTool; +using System.Collections.Generic; + +public class AuraEditorTarget : TargetRules +{ + public AuraEditorTarget(TargetInfo Target) : base(Target) + { + Type = TargetType.Editor; + DefaultBuildSettings = BuildSettingsVersion.V2; + + ExtraModuleNames.AddRange( new string[] { "Aura" } ); + } +}