Added Class data table
Can select class from hud debug button
This commit is contained in:
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