ExoWest/Source/Exo/Public/Items/AmmoBoxBase.h
Kubson96 b7263615c0 feat: add collecting HP and ammo
Player automatically collect HP and ammo when standing on crates. Ammo is collected only for owned gun.
2025-04-18 01:53:08 +02:00

38 lines
723 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "AmmoBoxBase.generated.h"
UENUM()
enum class EAmmoType : uint8
{
Revolver UMETA(DisplayName = "Revolver"),
Shotgun UMETA(DisplayName = "Shotgun"),
Rifle UMETA(DisplayName = "Rifle")
};
UCLASS()
class EXO_API AAmmoBoxBase : public AActor
{
GENERATED_BODY()
public:
AAmmoBoxBase();
UPROPERTY(EditAnywhere, BlueprintReadWrite)
EAmmoType AmmoType = EAmmoType::Revolver;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
int AmmoValue = 30;
protected:
virtual void BeginPlay() override;
public:
virtual void Tick(float DeltaTime) override;
};