New generic attribute set codegen from table implemented

This commit is contained in:
2024-10-22 13:07:50 -04:00
parent d4bf7cfaec
commit 8ba9170794
11 changed files with 499 additions and 40 deletions

View File

@ -13,8 +13,8 @@ struct GASA_API FAttributeSetField : public FTableRowBase
FAttributeSetField()
: Name("Provide_Name")
, Description("Provide Description")
, Category("Optional Category")
, Description("Provide Description")
, BaseValue(0)
, bUseMinAttribute(false)
, bUseMaxAttribute(false)
@ -27,14 +27,14 @@ struct GASA_API FAttributeSetField : public FTableRowBase
{}
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Gameplay Attribute")
FString Name;
FName Name;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Gameplay Attribute")
FName Category;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Gameplay Attribute")
FString Description;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Gameplay Attribute")
FString Category;
// UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Gameplay Attribute")
// FGameplayTag Tag;
@ -59,4 +59,3 @@ struct GASA_API FAttributeSetField : public FTableRowBase
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Gameplay Attribute", meta =( EditCondition="bUseMaxAttribute==false", EditConditionHides))
float MaxValue;
};

View File

@ -16,9 +16,6 @@ public:
// NOTE(Ed): Any Soft-References must have their includes defined in GasaDevOptions.cpp
// They are used by GasaGen for the GasaDevOptionsCache
UPROPERTY(Config)
TSoftObjectPtr<UDataTable> RandomBullshit;
UPROPERTY(Config, EditAnywhere, BlueprintReadOnly, Category="GAS")
TArray< TSoftObjectPtr<UDataTable>> AttributeSets;

View File

@ -11,9 +11,6 @@ void FGasaDevOptionsCache::CachedDevOptions()
{
UGasaDevOptions* DevOpts = GetMutDevOptions();
RandomBullshit = DevOpts->RandomBullshit.LoadSynchronous();
ensureMsgf( RandomBullshit != nullptr, TEXT( "RandomBullshit is null, DO NOT RUN PIE or else you may get a crash if not handled in BP or C++" ) );
for ( auto& entry : DevOpts->AttributeSets )
{
AttributeSets.Push( entry.LoadSynchronous() );

View File

@ -8,8 +8,6 @@ struct GASA_API FGasaDevOptionsCache
{
GENERATED_BODY()
UPROPERTY()
UObject* RandomBullshit;
UPROPERTY()
TArray<UObject*> AttributeSets;
UPROPERTY()