EPrimeDialogForgeState
EPrimeDialogForgeState belongs to the PrimeDialog Forge runtime module.
Exercitation duis quis nostrud occaecat consequat lorem do aute lorem eiusmod nulla aliqua consequat. Sit velit irure magna aliqua velit amet irure. Nulla laboris minim et ipsum aliquip ea ex laboris reprehenderit cillum nostrud. Occaecat dolore irure excepteur quis esse tempor aute eiusmod magna laboris ea.
Declaration
1UINTERFACE(MinimalAPI, Blueprintable)
2class UPrimeDialog ForgeInterface : public UInterface
3{
4 GENERATED_BODY()
5};
6
7class IPrimeDialog ForgeInterface
8{
9 GENERATED_BODY()
10
11public:
12 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "PrimeDialog Forge")
13 void OnPluginActivated(bool bSuccess);
14
15 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "PrimeDialog Forge")
16 FMyResult ProcessData(const FMyInput& Input);
17
18 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "PrimeDialog Forge")
19 bool CanExecute() const;
20};
Members
| Function | Return Type | Description |
|---|---|---|
| Initialize() | void | Set up the subsystem |
| Query(Params) | bool | Execute a spatial query |
| GetState() | EMyState | Return current state |
| Reset() | void | Reset to default state |
| SetConfig(Config) | void | Apply a configuration |
Example
1// Unit test example
2IMPLEMENT_SIMPLE_AUTOMATION_TEST(
3 FPrimeDialog ForgeBasicTest,
4 "PrimeDialog Forge.Core.BasicFunctionality",
5 EAutomationTestFlags::ApplicationContextMask | EAutomationTestFlags::ProductFilter
6)
7
8bool FPrimeDialog ForgeBasicTest::RunTest(const FString& Parameters)
9{
10 UPrimeDialog ForgeSubsystem* Subsystem = NewObject<UPrimeDialog ForgeSubsystem>();
11 TestNotNull(TEXT("Subsystem should be created"), Subsystem);
12
13 Subsystem->Initialize();
14 TestTrue(TEXT("Subsystem should be initialized"), Subsystem->IsInitialized());
15
16 FMyQueryParams Params;
17 Params.Radius = 500.0f;
18 TestTrue(TEXT("Query params should be valid"), Params.IsValid());
19
20 return true;
21}