Add convAI plugin

This commit is contained in:
2026-02-19 12:44:26 +01:00
parent 457cd803c1
commit 61710c9fde
3434 changed files with 955067 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "EditorUtilityWidget.h"
#include "ConvaiEUWBase.generated.h"
/**
*
*/
UCLASS(Abstract)
class CONVAIEDITOR_API UConvaiEUWBase : public UEditorUtilityWidget
{
GENERATED_BODY()
};

View File

@@ -0,0 +1,39 @@
// Copyright 2022 Convai Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Engine/DeveloperSettings.h"
#include "IDetailCustomization.h"
#include "Modules/ModuleManager.h"
class FToolBarBuilder;
class FMenuBuilder;
class FConvaiEditorModule : public IModuleInterface
{
public:
/** IModuleInterface implementation */
virtual void StartupModule() override;
virtual void ShutdownModule() override;
};
class FConvaiEditorSettingsCustomization : public IDetailCustomization
{
public:
static TSharedRef<IDetailCustomization> MakeInstance();
virtual void CustomizeDetails(IDetailLayoutBuilder& DetailBuilder) override;
private:
FReply OnSpawnTabClicked();
};

View File

@@ -0,0 +1,52 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "ConvaiDefinitions.h"
#include "ConvaiEditorUtils.generated.h"
/**
*
*/
UCLASS()
class CONVAIEDITOR_API UConvaiEditorUtils : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable, Category = "Convai|LTM")
static void ConvaiAddSpeakerID(const FConvaiSpeakerInfo& Speaker);
UFUNCTION(BlueprintCallable, Category = "Convai|LTM")
static void ConvaiRemoveSpeakerID(const FString& SpeakerID);
//UFUNCTION(BlueprintCallable, Category = "Convai|LTM")
static void RefreshConvaiSettings();
// ---------------------------------CCPack---------------------------------------------------------------------
/**
* Begins a transaction in the editor and retrieves the currently selected assets.
*
* @param Context A string describing the context of the transaction.
* @param Description A text description of the transaction.
* @return An array of selected assets as UObject references.
*/
UFUNCTION(BlueprintCallable, Category = "Convai|Editor")
static TArray<UObject*> BeginTransactionAndGetSelectedAssets(const FString& Context, const FText& Description);
/**
* Saves the loaded assets and ends the current transaction.
* @param LoadedAssets An array of assets to save.
*/
UFUNCTION(BlueprintCallable, Category = "Convai|Editor")
static void SaveLoadedAssetAndEndTransaction(const TArray<UObject*>& LoadedAssets);
// ---------------------------------END CCPack---------------------------------------------------------------------
};