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