From 90a0a4c515bd015990ba8ff8e6267e0ca5bdd219 Mon Sep 17 00:00:00 2001 From: baz Date: Wed, 12 Jun 2024 00:34:11 +0100 Subject: [PATCH] Update Project settings --- Content/Gamemode/BP_DefaultGamemode.uasset | 3 ++ Content/Player/BP_PlayerCharacter.uasset | 3 ++ Content/Player/BP_PlayerController.uasset | 3 ++ Source/vampires.Target.cs | 15 +++++++++ Source/vampires/PlayerCharacter.cpp | 5 +++ Source/vampires/PlayerCharacter.h | 17 +++++++++++ Source/vampires/VampireCharacter.cpp | 34 +++++++++++++++++++++ Source/vampires/VampireCharacter.h | 29 ++++++++++++++++++ Source/vampires/VampirePlayerController.cpp | 5 +++ Source/vampires/VampirePlayerController.h | 17 +++++++++++ Source/vampiresEditor.Target.cs | 15 +++++++++ vampires.uproject | 10 ++++++ 12 files changed, 156 insertions(+) create mode 100644 Content/Gamemode/BP_DefaultGamemode.uasset create mode 100644 Content/Player/BP_PlayerCharacter.uasset create mode 100644 Content/Player/BP_PlayerController.uasset create mode 100644 Source/vampires.Target.cs create mode 100644 Source/vampires/PlayerCharacter.cpp create mode 100644 Source/vampires/PlayerCharacter.h create mode 100644 Source/vampires/VampireCharacter.cpp create mode 100644 Source/vampires/VampireCharacter.h create mode 100644 Source/vampires/VampirePlayerController.cpp create mode 100644 Source/vampires/VampirePlayerController.h create mode 100644 Source/vampiresEditor.Target.cs diff --git a/Content/Gamemode/BP_DefaultGamemode.uasset b/Content/Gamemode/BP_DefaultGamemode.uasset new file mode 100644 index 0000000..ac85e62 --- /dev/null +++ b/Content/Gamemode/BP_DefaultGamemode.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:88e3e3207b0f1b3c1444a2d232dbf2c320a94fa3c97733c3eec6fd9712229814 +size 21126 diff --git a/Content/Player/BP_PlayerCharacter.uasset b/Content/Player/BP_PlayerCharacter.uasset new file mode 100644 index 0000000..74441af --- /dev/null +++ b/Content/Player/BP_PlayerCharacter.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1da5849d936804c06c8ab769fb20e7027bfd82571a467e25a306c455bf8602da +size 24374 diff --git a/Content/Player/BP_PlayerController.uasset b/Content/Player/BP_PlayerController.uasset new file mode 100644 index 0000000..6a0aef6 --- /dev/null +++ b/Content/Player/BP_PlayerController.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90c5d083c153bc87a9aa35bf43e295c3cb0c7a543a6f0df01d6520e19d7b513e +size 20100 diff --git a/Source/vampires.Target.cs b/Source/vampires.Target.cs new file mode 100644 index 0000000..9f3f5e4 --- /dev/null +++ b/Source/vampires.Target.cs @@ -0,0 +1,15 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +using UnrealBuildTool; +using System.Collections.Generic; + +public class vampiresTarget : TargetRules +{ + public vampiresTarget(TargetInfo Target) : base(Target) + { + Type = TargetType.Game; + DefaultBuildSettings = BuildSettingsVersion.V5; + IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_4; + ExtraModuleNames.AddRange( new string[] { "vampires" } ); + } +} diff --git a/Source/vampires/PlayerCharacter.cpp b/Source/vampires/PlayerCharacter.cpp new file mode 100644 index 0000000..0540dd3 --- /dev/null +++ b/Source/vampires/PlayerCharacter.cpp @@ -0,0 +1,5 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "PlayerCharacter.h" + diff --git a/Source/vampires/PlayerCharacter.h b/Source/vampires/PlayerCharacter.h new file mode 100644 index 0000000..109a9d7 --- /dev/null +++ b/Source/vampires/PlayerCharacter.h @@ -0,0 +1,17 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "VampireCharacter.h" +#include "PlayerCharacter.generated.h" + +/** + * + */ +UCLASS() +class VAMPIRES_API APlayerCharacter : public AVampireCharacter +{ + GENERATED_BODY() + +}; diff --git a/Source/vampires/VampireCharacter.cpp b/Source/vampires/VampireCharacter.cpp new file mode 100644 index 0000000..219bd69 --- /dev/null +++ b/Source/vampires/VampireCharacter.cpp @@ -0,0 +1,34 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "VampireCharacter.h" + +// Sets default values +AVampireCharacter::AVampireCharacter() +{ + // 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 AVampireCharacter::BeginPlay() +{ + Super::BeginPlay(); + +} + +// Called every frame +void AVampireCharacter::Tick(float DeltaTime) +{ + Super::Tick(DeltaTime); + +} + +// Called to bind functionality to input +void AVampireCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) +{ + Super::SetupPlayerInputComponent(PlayerInputComponent); + +} + diff --git a/Source/vampires/VampireCharacter.h b/Source/vampires/VampireCharacter.h new file mode 100644 index 0000000..55ed825 --- /dev/null +++ b/Source/vampires/VampireCharacter.h @@ -0,0 +1,29 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "GameFramework/Character.h" +#include "VampireCharacter.generated.h" + +UCLASS() +class VAMPIRES_API AVampireCharacter : public ACharacter +{ + GENERATED_BODY() + +public: + // Sets default values for this character's properties + AVampireCharacter(); + +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/vampires/VampirePlayerController.cpp b/Source/vampires/VampirePlayerController.cpp new file mode 100644 index 0000000..d0ccaee --- /dev/null +++ b/Source/vampires/VampirePlayerController.cpp @@ -0,0 +1,5 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "VampirePlayerController.h" + diff --git a/Source/vampires/VampirePlayerController.h b/Source/vampires/VampirePlayerController.h new file mode 100644 index 0000000..756dfc2 --- /dev/null +++ b/Source/vampires/VampirePlayerController.h @@ -0,0 +1,17 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "GameFramework/PlayerController.h" +#include "VampirePlayerController.generated.h" + +/** + * + */ +UCLASS() +class VAMPIRES_API AVampirePlayerController : public APlayerController +{ + GENERATED_BODY() + +}; diff --git a/Source/vampiresEditor.Target.cs b/Source/vampiresEditor.Target.cs new file mode 100644 index 0000000..c35aa03 --- /dev/null +++ b/Source/vampiresEditor.Target.cs @@ -0,0 +1,15 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +using UnrealBuildTool; +using System.Collections.Generic; + +public class vampiresEditorTarget : TargetRules +{ + public vampiresEditorTarget(TargetInfo Target) : base(Target) + { + Type = TargetType.Editor; + DefaultBuildSettings = BuildSettingsVersion.V5; + IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_4; + ExtraModuleNames.AddRange( new string[] { "vampires" } ); + } +} diff --git a/vampires.uproject b/vampires.uproject index b1ff77b..8f7c464 100644 --- a/vampires.uproject +++ b/vampires.uproject @@ -3,6 +3,16 @@ "EngineAssociation": "5.4", "Category": "", "Description": "", + "Modules": [ + { + "Name": "vampires", + "Type": "Runtime", + "LoadingPhase": "Default", + "AdditionalDependencies": [ + "Engine" + ] + } + ], "Plugins": [ { "Name": "ModelingToolsEditorMode",