Advertisement
Guest User

UE4 Structures with arrays, error

a guest
Jan 9th, 2016
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.63 KB | None | 0 0
  1. USTRUCT(BlueprintType)
  2. struct FStartVoiceInfo
  3. {
  4.     GENERATED_BODY()
  5.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  6.     bool InstigatorIsPlayer;
  7.        
  8.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  9.     FString SoundPath;
  10.  
  11.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  12.     FString Subtitle;
  13. };
  14. USTRUCT(BlueprintType)
  15. struct FEndVoiceInfo
  16. {
  17.     GENERATED_BODY()
  18.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  19.     bool InstigatorIsPlayer;
  20.  
  21.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  22.     FString SoundPath;
  23.  
  24.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  25.     FString Subtitle;
  26. };
  27. USTRUCT(BlueprintType)
  28. struct FTalkVoiceInfo
  29. {
  30.     GENERATED_BODY()
  31.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  32.     int32 ID;
  33.  
  34.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  35.     bool InstigatorIsPlayer;
  36.  
  37.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  38.     FString SoundPath;
  39.  
  40.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  41.     FString Subtitle;
  42. };
  43. USTRUCT(BlueprintType)
  44. struct FSubOptionInfo
  45. {
  46.     GENERATED_BODY()
  47.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  48.     FString OptionText;
  49.  
  50.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  51.     TArray<FTalkVoiceInfo> Talks;
  52.  
  53.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  54.     TArray<FSubOptionInfo> SubOptions;
  55. };
  56. USTRUCT(BlueprintType)
  57. struct FOptionInfo
  58. {
  59.     GENERATED_BODY()
  60.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  61.     FString OptionText;
  62.  
  63.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  64.     bool SODOC;
  65.  
  66.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  67.     TArray<FTalkVoiceInfo> Talks;
  68.  
  69.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  70.     TArray<FSubOptionInfo> SubOptions;
  71. };
  72. USTRUCT(BlueprintType)
  73. struct FConversation
  74. {
  75.     GENERATED_BODY()
  76.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  77.     bool HasStart;
  78.  
  79.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  80.     StartVoiceInfo StartInfo;
  81.  
  82.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  83.     bool HasEnd;
  84.  
  85.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  86.     FEndVoiceInfo EndInfo;
  87.  
  88.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "XML-Conversation")
  89.     TArray<FOptionInfo> Options;
  90.        
  91. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement