Added Class data table
Can select class from hud debug button
This commit is contained in:
BIN
Content/ProofOfConcept/ClassHealthSegments.uasset
Normal file
BIN
Content/ProofOfConcept/ClassHealthSegments.uasset
Normal file
Binary file not shown.
Binary file not shown.
13
Source/OpenConflict/PlayerCharacter/Components/ClassEnums.h
Normal file
13
Source/OpenConflict/PlayerCharacter/Components/ClassEnums.h
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "CoreMinimal.h"
|
||||||
|
#include "ClassEnums.generated.h"
|
||||||
|
|
||||||
|
UENUM(BlueprintType)
|
||||||
|
enum class ClassNames : uint8
|
||||||
|
{
|
||||||
|
Basic = 0 UMETA(DisplayName = "Basic"),
|
||||||
|
Scout = 1 UMETA(DisplayName = "Scout"),
|
||||||
|
Assault = 2 UMETA(DisplayName = "Assault"),
|
||||||
|
Heavy = 3 UMETA(DisplayName = "Heavy")
|
||||||
|
};
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "ClassEnums.h"
|
||||||
|
|
||||||
|
#include "HealthSegmentStruct.generated.h"
|
||||||
|
|
||||||
|
USTRUCT(BlueprintType)
|
||||||
|
struct FHealthSegment : public FTableRowBase
|
||||||
|
{
|
||||||
|
GENERATED_BODY()
|
||||||
|
|
||||||
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Health Segments")
|
||||||
|
ClassNames Class;
|
||||||
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Health Segments")
|
||||||
|
TArray<int> SegmentList;
|
||||||
|
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user