Add `NakatomiFieldSystemActor` to `Weapon`
This commit is contained in:
parent
934055d0ed
commit
97c937d212
|
@ -116,3 +116,8 @@ void AWeapon::DecrementAmmoCount(int ammoCount)
|
|||
AmmoCount = 0;
|
||||
}
|
||||
}
|
||||
|
||||
TSubclassOf<class ANakatomiFieldSystemActor> AWeapon::GetFieldSystemActor()
|
||||
{
|
||||
return FieldSystemActor;
|
||||
}
|
||||
|
|
|
@ -4,9 +4,11 @@
|
|||
|
||||
#include "CoreMinimal.h"
|
||||
#include "GameFramework/Actor.h"
|
||||
#include "NakatomiFieldSystemActor.h"
|
||||
#include "Weapon.generated.h"
|
||||
|
||||
class ANakatomiCharacter;
|
||||
class ANakatomiFieldSystemActor;
|
||||
|
||||
UENUM()
|
||||
enum WeaponState
|
||||
|
@ -75,6 +77,9 @@ protected:
|
|||
UPROPERTY(VisibleAnywhere)
|
||||
int AmmoCount;
|
||||
|
||||
UPROPERTY(EditDefaultsOnly)
|
||||
TSubclassOf<class ANakatomiFieldSystemActor> FieldSystemActor;
|
||||
|
||||
public:
|
||||
// Sets default values for this actor's properties
|
||||
AWeapon();
|
||||
|
@ -115,4 +120,6 @@ public:
|
|||
void IncrementAmmoCount(int ammoCount);
|
||||
|
||||
void DecrementAmmoCount(int ammoCount);
|
||||
|
||||
TSubclassOf<class ANakatomiFieldSystemActor> GetFieldSystemActor();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue