WeaponBase #8

Open
Kukukakhew wants to merge 4 commits from WeaponBase into main
2 changed files with 62 additions and 0 deletions
Showing only changes of commit 5dbee0a354 - Show all commits

View File

@@ -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);
// ...
}

View File

@@ -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;
};