diff --git a/Source/OpenConflict/PlayerCharacter/Components/DDIHealth.cpp b/Source/OpenConflict/PlayerCharacter/Components/DDIHealth.cpp new file mode 100644 index 0000000..e18c527 --- /dev/null +++ b/Source/OpenConflict/PlayerCharacter/Components/DDIHealth.cpp @@ -0,0 +1,34 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "DDIHealth.h" + +// Sets default values for this component's properties +UDDIHealth::UDDIHealth() +{ + // Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features + // off to improve performance if you don't need them. + PrimaryComponentTick.bCanEverTick = true; + + // ... +} + + +// Called when the game starts +void UDDIHealth::BeginPlay() +{ + Super::BeginPlay(); + + // ... + +} + + +// Called every frame +void UDDIHealth::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) +{ + Super::TickComponent(DeltaTime, TickType, ThisTickFunction); + + // ... +} + diff --git a/Source/OpenConflict/PlayerCharacter/Components/DDIHealth.h b/Source/OpenConflict/PlayerCharacter/Components/DDIHealth.h new file mode 100644 index 0000000..17c1be2 --- /dev/null +++ b/Source/OpenConflict/PlayerCharacter/Components/DDIHealth.h @@ -0,0 +1,28 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "Components/ActorComponent.h" +#include "DDIHealth.generated.h" + + +UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) ) +class OPENCONFLICT_API UDDIHealth : public UActorComponent +{ + GENERATED_BODY() + +public: + // Sets default values for this component's properties + UDDIHealth(); + +protected: + // Called when the game starts + virtual void BeginPlay() override; + +public: + // Called every frame + virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override; + + +};