# UDeltaCraftHubSpawnComponent

`UDeltaCraftHubSpawnComponent` belongs to the DeltaCraft Hub runtime module.

Consequat et aute reprehenderit nisi ea sed excepteur aute do aliquip dolore amet ut et. Dolore veniam incididunt pariatur adipiscing ullamco incididunt nisi aliquip eiusmod commodo aute quis. Ullamco cillum elit sint dolor et magna irure.

## Declaration

```cpp
// Unit test example
IMPLEMENT_SIMPLE_AUTOMATION_TEST(
    FDeltaCraft HubBasicTest,
    "DeltaCraft Hub.Core.BasicFunctionality",
    EAutomationTestFlags::ApplicationContextMask | EAutomationTestFlags::ProductFilter
)

bool FDeltaCraft HubBasicTest::RunTest(const FString& Parameters)
{
    UDeltaCraft HubSubsystem* Subsystem = NewObject<UDeltaCraft HubSubsystem>();
    TestNotNull(TEXT("Subsystem should be created"), Subsystem);

    Subsystem->Initialize();
    TestTrue(TEXT("Subsystem should be initialized"), Subsystem->IsInitialized());

    FMyQueryParams Params;
    Params.Radius = 500.0f;
    TestTrue(TEXT("Query params should be valid"), Params.IsValid());

    return true;
}
```

## 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

```yaml
# Plugin configuration (DeltaCraft Hub.yaml)
plugin:
  name: DeltaCraft Hub
  version: 2.0
  settings:
    max_pool_size: 100
    tick_rate: 60.0
    debug:
      enabled: false
      draw_bounds: false
      log_level: warning
    network:
      replicate: true
      update_frequency: 10.0
```

> **Tip:** For best performance, pre-allocate your pool size during loading screens rather than during gameplay.