Add Decal Actor to Weapons
This commit is contained in:
parent
12c8d7b6f0
commit
589592927f
|
@ -101,6 +101,9 @@ public:
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Random Weapon Parameters|Field System Actor")
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Random Weapon Parameters|Field System Actor")
|
||||||
TArray<TSubclassOf<class ANakatomiFieldSystemActor>> FieldSystemActor;
|
TArray<TSubclassOf<class ANakatomiFieldSystemActor>> FieldSystemActor;
|
||||||
|
|
||||||
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Random Weapon Parameters|Decal Actor")
|
||||||
|
TArray<TSubclassOf<class ADecalActor>> DecalActor;
|
||||||
|
|
||||||
FWeaponProperties GenerateRandomWeaponProperties();
|
FWeaponProperties GenerateRandomWeaponProperties();
|
||||||
|
|
||||||
USkeletalMesh* PickRandomMesh();
|
USkeletalMesh* PickRandomMesh();
|
||||||
|
|
|
@ -120,6 +120,11 @@ TSubclassOf<AWeaponThrowable> AWeapon::GetWeaponThrowableTemplate()
|
||||||
return WeaponThrowableTemplate;
|
return WeaponThrowableTemplate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TSubclassOf<ADecalActor> AWeapon::GetDecalActor()
|
||||||
|
{
|
||||||
|
return DecalActor;
|
||||||
|
}
|
||||||
|
|
||||||
TSubclassOf<class ANakatomiFieldSystemActor> AWeapon::GetFieldSystemActor()
|
TSubclassOf<class ANakatomiFieldSystemActor> AWeapon::GetFieldSystemActor()
|
||||||
{
|
{
|
||||||
return FieldSystemActor;
|
return FieldSystemActor;
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "CoreMinimal.h"
|
#include "CoreMinimal.h"
|
||||||
|
#include "Engine/DecalActor.h"
|
||||||
#include "GameFramework/Actor.h"
|
#include "GameFramework/Actor.h"
|
||||||
#include "NakatomiFieldSystemActor.h"
|
#include "NakatomiFieldSystemActor.h"
|
||||||
#include "WeaponProperties.h"
|
#include "WeaponProperties.h"
|
||||||
|
@ -51,6 +52,9 @@ protected:
|
||||||
UPROPERTY(EditDefaultsOnly)
|
UPROPERTY(EditDefaultsOnly)
|
||||||
TSubclassOf<class AWeaponThrowable> WeaponThrowableTemplate;
|
TSubclassOf<class AWeaponThrowable> WeaponThrowableTemplate;
|
||||||
|
|
||||||
|
UPROPERTY(EditDefaultsOnly)
|
||||||
|
TSubclassOf<class ADecalActor> DecalActor;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// Sets default values for this actor's properties
|
// Sets default values for this actor's properties
|
||||||
AWeapon();
|
AWeapon();
|
||||||
|
@ -95,4 +99,6 @@ public:
|
||||||
TSubclassOf<class ANakatomiFieldSystemActor> GetFieldSystemActor();
|
TSubclassOf<class ANakatomiFieldSystemActor> GetFieldSystemActor();
|
||||||
|
|
||||||
TSubclassOf<AWeaponThrowable> GetWeaponThrowableTemplate();
|
TSubclassOf<AWeaponThrowable> GetWeaponThrowableTemplate();
|
||||||
|
|
||||||
|
TSubclassOf<class ADecalActor> GetDecalActor();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue