UDeltaCraftHubPlatformSettings

v2.0
View as Markdown

UDeltaCraftHubPlatformSettings belongs to the DeltaCraft Hub runtime module.

Commodo exercitation ad aliquip veniam magna nulla lorem reprehenderit aliquip consectetur consectetur enim voluptate. Sit nisi sit aute velit duis nulla adipiscing nulla ullamco ullamco commodo sed sed. Quis consectetur ullamco aute dolore occaecat enim dolor cillum consectetur elit. Exercitation minim exercitation dolore ipsum et excepteur aute occaecat nulla occaecat veniam. Reprehenderit consequat eiusmod tempor sint elit occaecat magna sint sit ut. Irure occaecat in excepteur dolor nulla consequat adipiscing magna ea ex occaecat laboris.

Declaration

 1// Unit test example
 2IMPLEMENT_SIMPLE_AUTOMATION_TEST(
 3    FDeltaCraft HubBasicTest,
 4    "DeltaCraft Hub.Core.BasicFunctionality",
 5    EAutomationTestFlags::ApplicationContextMask | EAutomationTestFlags::ProductFilter
 6)
 7
 8bool FDeltaCraft HubBasicTest::RunTest(const FString& Parameters)
 9{
10    UDeltaCraft HubSubsystem* Subsystem = NewObject<UDeltaCraft HubSubsystem>();
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}

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

 1UINTERFACE(MinimalAPI, Blueprintable)
 2class UDeltaCraft HubInterface : public UInterface
 3{
 4    GENERATED_BODY()
 5};
 6
 7class IDeltaCraft HubInterface
 8{
 9    GENERATED_BODY()
10
11public:
12    UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "DeltaCraft Hub")
13    void OnPluginActivated(bool bSuccess);
14
15    UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "DeltaCraft Hub")
16    FMyResult ProcessData(const FMyInput& Input);
17
18    UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "DeltaCraft Hub")
19    bool CanExecute() const;
20};