From 5dbee0a35488a6020114dfa23531f14aea18c189 Mon Sep 17 00:00:00 2001 From: Cody Larkin Date: Mon, 18 May 2026 01:52:12 -0400 Subject: [PATCH] forgotten updates? --- .../Weapons/MagazineComponenet.cpp | 34 +++++++++++++++++++ .../OpenConflict/Weapons/MagazineComponenet.h | 28 +++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 Source/OpenConflict/Weapons/MagazineComponenet.cpp create mode 100644 Source/OpenConflict/Weapons/MagazineComponenet.h diff --git a/Source/OpenConflict/Weapons/MagazineComponenet.cpp b/Source/OpenConflict/Weapons/MagazineComponenet.cpp new file mode 100644 index 0000000..ab43113 --- /dev/null +++ b/Source/OpenConflict/Weapons/MagazineComponenet.cpp @@ -0,0 +1,34 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "MagazineComponenet.h" + +// Sets default values for this component's properties +UMagazineComponenet::UMagazineComponenet() +{ + // 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 UMagazineComponenet::BeginPlay() +{ + Super::BeginPlay(); + + // ... + +} + + +// Called every frame +void UMagazineComponenet::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) +{ + Super::TickComponent(DeltaTime, TickType, ThisTickFunction); + + // ... +} + diff --git a/Source/OpenConflict/Weapons/MagazineComponenet.h b/Source/OpenConflict/Weapons/MagazineComponenet.h new file mode 100644 index 0000000..d1c8ac1 --- /dev/null +++ b/Source/OpenConflict/Weapons/MagazineComponenet.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 "MagazineComponenet.generated.h" + + +UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) ) +class OPENCONFLICT_API UMagazineComponenet : public UActorComponent +{ + GENERATED_BODY() + +public: + // Sets default values for this component's properties + UMagazineComponenet(); + +protected: + // Called when the game starts + virtual void BeginPlay() override; + +public: + // Called every frame + virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override; + + +};