38 lines
1.0 KiB
C++
38 lines
1.0 KiB
C++
// Copyright 2019 ayumax. All Rights Reserved.
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/NoExportTypes.h"
|
|
#include "EasyXMLObject.generated.h"
|
|
|
|
|
|
UCLASS(BlueprintType, Blueprintable)
|
|
class EASYXMLPARSER_API UEasyXMLObject : public UObject
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
UFUNCTION(BlueprintPure, Category = "EasyXMLParser|GetValue")
|
|
int32 GetIntValue(int32 DefaultValue = 0);
|
|
|
|
UFUNCTION(BlueprintPure, Category = "EasyXMLParser|GetValue")
|
|
float GetFloatValue(float DefaultValue = 0.0f);
|
|
|
|
UFUNCTION(BlueprintPure, Category = "EasyXMLParser|GetValue")
|
|
FString GetStringValue(FString DefaultValue = TEXT(""));
|
|
|
|
UFUNCTION(BlueprintPure, Category = "EasyXMLParser|GetValue")
|
|
bool GetBoolValue(bool DefaultValue = false);
|
|
|
|
public:
|
|
UPROPERTY(BlueprintReadOnly, Category = "EasyXMLParser|Object")
|
|
FString Name = TEXT("");
|
|
|
|
UPROPERTY(BlueprintReadOnly, Category = "EasyXMLParser|Object")
|
|
FString Value = TEXT("");
|
|
|
|
UPROPERTY(BlueprintReadOnly, Category = "EasyXMLParser|Object")
|
|
UEasyXMLObject* Parent = nullptr;
|
|
|
|
};
|