4#include "Commandlets/Commandlet.h"
6#include "DlgStatsCommandlet.generated.h"
40 int32 Main(const FString& Params) override;
43 int32 GetNodeWordCount(const
UDlgNode& Node) const;
45 int32 GetStringWordCount(const FString&
String) const;
46 int32 GetFNameWordCount(const FName
Name)
const {
return GetStringWordCount(
Name.ToString()); }
47 int32 GetTextWordCount(
const FText& Text)
const {
return GetStringWordCount(Text.ToString()); }
DECLARE_LOG_CATEGORY_EXTERN(LogDlgStatsCommandlet, All, All)
UCLASS(BlueprintType, Meta = (DisplayThumbnail = "true"))
UCLASS(BlueprintType, Abstract, EditInlineNew, ClassGroup = "Dialogue")
int32 GetFNameWordCount(const FName Name) const
int32 GetTextWordCount(const FText &Text) const
int32 GetStringWordCount(const FString &String) const
int32 Main(const FString &Params) override
int32 GetNodeWordCount(const UDlgNode &Node) const
bool GetStatsForDialogue(const UDlgDialogue &Dialogue, FDlgStatsDialogue &OutStats)
FDlgStatsDialogue & operator+=(const FDlgStatsDialogue &Other)