diff --git a/Blaster.uproject b/Blaster.uproject index 1886afc..b39c44d 100644 --- a/Blaster.uproject +++ b/Blaster.uproject @@ -7,7 +7,10 @@ { "Name": "Blaster", "Type": "Runtime", - "LoadingPhase": "Default" + "LoadingPhase": "Default", + "AdditionalDependencies": [ + "Engine" + ] } ], "Plugins": [ diff --git a/Source/Blaster/Character/BlasterCharacter.cpp b/Source/Blaster/Character/BlasterCharacter.cpp new file mode 100644 index 0000000..94ad34a --- /dev/null +++ b/Source/Blaster/Character/BlasterCharacter.cpp @@ -0,0 +1,34 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "BlasterCharacter.h" + +// Sets default values +ABlasterCharacter::ABlasterCharacter() +{ + // 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 ABlasterCharacter::BeginPlay() +{ + Super::BeginPlay(); + +} + +// Called every frame +void ABlasterCharacter::Tick(float DeltaTime) +{ + Super::Tick(DeltaTime); + +} + +// Called to bind functionality to input +void ABlasterCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) +{ + Super::SetupPlayerInputComponent(PlayerInputComponent); + +} + diff --git a/Source/Blaster/Character/BlasterCharacter.h b/Source/Blaster/Character/BlasterCharacter.h new file mode 100644 index 0000000..b3928d8 --- /dev/null +++ b/Source/Blaster/Character/BlasterCharacter.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 "BlasterCharacter.generated.h" + +UCLASS() +class BLASTER_API ABlasterCharacter : public ACharacter +{ + GENERATED_BODY() + +public: + // Sets default values for this character's properties + ABlasterCharacter(); + +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; + +};