Hello. I try to make mission table using json.
So, I made event sturct below
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "EventStruct.generated.h"
/**
*
*/
USTRUCT(BlueprintType)
struct FEventBase
{
GENERATED_BODY()
public:
void ToString(){}
};
USTRUCT(BlueprintType)
struct FEventConversation : public FEventBase
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "EventParser")
int conversation;
};
USTRUCT(BlueprintType)
struct FEventReward : public FEventBase
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "EventParser")
int Reward;
};
USTRUCT(BlueprintType)
struct FEventRoot
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "EventParser")
TArray<FEventBase*> contentsArray;
};
But when I build it. Compile error show like
Error: Inappropriate ‘*’ on variable
of type ‘FEventBase’, cannot have an
exposed pointer to this type.
What am I miss?