blaster/Source/Blaster/Pickups/AmmoPickup.h

36 lines
648 B
C
Raw Normal View History

2022-05-22 20:56:28 +00:00
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Pickup.h"
#include "Blaster/Weapon/WeaponTypes.h"
#include "AmmoPickup.generated.h"
/**
*
*/
UCLASS()
class BLASTER_API AAmmoPickup : public APickup
{
GENERATED_BODY()
protected:
virtual void OnSphereOverlap(
UPrimitiveComponent* OverlappedComponent,
AActor* OtherActor,
UPrimitiveComponent* OtherComp,
int32 OtherBodyIndex,
bool bFromSweep,
const FHitResult& SweepResult
2022-05-22 21:48:23 +00:00
) override;
2022-05-22 20:56:28 +00:00
private:
UPROPERTY(EditAnywhere)
int32 AmmoAmount = 30;
UPROPERTY(EditAnywhere)
EWeaponType WeaponType;
};