LEAP Documentation 40220
Documentation for the LEAP project
WeaponSpreadDataAsset.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2018. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Engine/DataTable.h"
7#include "Engine/DataAsset.h"
8#include "WeaponSpreadDataAsset.generated.h"
9
10USTRUCT(Blueprintable)
11struct FBulletSpreadInfo : public FTableRowBase
12{
13 GENERATED_BODY()
14 UPROPERTY(EditAnywhere, BlueprintReadWrite)
15 uint8 BulletID;
16 UPROPERTY(EditAnywhere, BlueprintReadWrite)
17 float SpreadAngle;
18 UPROPERTY(EditAnywhere, BlueprintReadWrite)
19 float SpreadNoiseAngle;
20 // The position of the bullet on the conespread's base circle as an angle
21 UPROPERTY(EditAnywhere, BlueprintReadWrite)
22 float ConespreadBaseAngle;
23};
24
25UCLASS(BlueprintType)
26class PROJECTX_API UWeaponSpreadDataAsset : public UPrimaryDataAsset
27{
28 GENERATED_BODY()
29public:
30 UPROPERTY(EditAnywhere, BlueprintReadWrite)
31 TArray<FBulletSpreadInfo> SpreadData;
32
33 UFUNCTION(BlueprintCallable)
34 bool SaveDataToDisk(UObject* Outer, FString SaveName);
35};
Definition: WeaponSpreadDataAsset.h:27
Definition: WeaponSpreadDataAsset.h:12