From 729b959a33a1781e854cbdaf631453ff8fec6c67 Mon Sep 17 00:00:00 2001 From: jyelon Date: Mon, 28 Aug 2023 19:57:23 -0400 Subject: [PATCH] Created LpxTangible component --- Content/LpxTangible.uasset | 3 +++ Source/Integration/LpxTangibleBase.cpp | 34 ++++++++++++++++++++++++++ Source/Integration/LpxTangibleBase.h | 28 +++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 Content/LpxTangible.uasset create mode 100644 Source/Integration/LpxTangibleBase.cpp create mode 100644 Source/Integration/LpxTangibleBase.h diff --git a/Content/LpxTangible.uasset b/Content/LpxTangible.uasset new file mode 100644 index 00000000..0ee9bf2c --- /dev/null +++ b/Content/LpxTangible.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67764aee750ef0c005a3ee69b9a5d412822f996eab8caa70f1cbea6ee094c6da +size 13358 diff --git a/Source/Integration/LpxTangibleBase.cpp b/Source/Integration/LpxTangibleBase.cpp new file mode 100644 index 00000000..a7c3f22e --- /dev/null +++ b/Source/Integration/LpxTangibleBase.cpp @@ -0,0 +1,34 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "LpxTangibleBase.h" + +// Sets default values for this component's properties +ULpxTangibleBase::ULpxTangibleBase() +{ + // 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 ULpxTangibleBase::BeginPlay() +{ + Super::BeginPlay(); + + // ... + +} + + +// Called every frame +void ULpxTangibleBase::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) +{ + Super::TickComponent(DeltaTime, TickType, ThisTickFunction); + + // ... +} + diff --git a/Source/Integration/LpxTangibleBase.h b/Source/Integration/LpxTangibleBase.h new file mode 100644 index 00000000..2113bc2a --- /dev/null +++ b/Source/Integration/LpxTangibleBase.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 "LpxTangibleBase.generated.h" + + +UCLASS(Blueprintable, BlueprintType, ClassGroup = (Custom), meta = (BlueprintSpawnableComponent), ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) ) +class INTEGRATION_API ULpxTangibleBase : public UActorComponent +{ + GENERATED_BODY() + +public: + // Sets default values for this component's properties + ULpxTangibleBase(); + +protected: + // Called when the game starts + virtual void BeginPlay() override; + +public: + // Called every frame + virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override; + + +};