Add WeaponThrowable Template to Weapon
This commit is contained in:
parent
9abe8e1697
commit
7c803eb3ff
|
@ -115,6 +115,11 @@ void AWeapon::DecrementAmmoCount(int ammoCount)
|
|||
}
|
||||
}
|
||||
|
||||
TSubclassOf<AWeaponThrowable> AWeapon::GetWeaponThrowableTemplate()
|
||||
{
|
||||
return WeaponThrowableTemplate;
|
||||
}
|
||||
|
||||
TSubclassOf<class ANakatomiFieldSystemActor> AWeapon::GetFieldSystemActor()
|
||||
{
|
||||
return FieldSystemActor;
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue