38 lines
723 B
C
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;
|
||
|
|
|
||
|
|
};
|