Add WeaponThrowable Template to Weapon

This commit is contained in:
baz 2023-09-18 01:09:08 +01:00
parent 9abe8e1697
commit 7c803eb3ff
2 changed files with 11 additions and 0 deletions

View File

@ -115,6 +115,11 @@ void AWeapon::DecrementAmmoCount(int ammoCount)
}
}
TSubclassOf<AWeaponThrowable> AWeapon::GetWeaponThrowableTemplate()
{
return WeaponThrowableTemplate;
}
TSubclassOf<class ANakatomiFieldSystemActor> AWeapon::GetFieldSystemActor()
{
return FieldSystemActor;

View File

@ -6,6 +6,7 @@
#include "GameFramework/Actor.h"
#include "NakatomiFieldSystemActor.h"
#include "WeaponProperties.h"
#include "WeaponThrowable.h"
#include "Weapon.generated.h"
class ANakatomiCharacter;
@ -47,6 +48,9 @@ protected:
UPROPERTY(EditDefaultsOnly)
TSubclassOf<class ANakatomiFieldSystemActor> FieldSystemActor;
UPROPERTY(EditDefaultsOnly)
TSubclassOf<AWeaponThrowable> WeaponThrowableTemplate;
public:
// Sets default values for this actor's properties
AWeapon();
@ -89,4 +93,6 @@ public:
void DecrementAmmoCount(int ammoCount);
TSubclassOf<class ANakatomiFieldSystemActor> GetFieldSystemActor();
TSubclassOf<AWeaponThrowable> GetWeaponThrowableTemplate();
};