deltacrafthub.Verbose
deltacrafthub.Verbose belongs to the DeltaCraft Hub runtime module.
Velit lorem excepteur magna dolore consequat dolore tempor esse enim sed excepteur cillum. Amet dolore magna excepteur ullamco tempor commodo sed adipiscing sint eiusmod. Eiusmod quis fugiat sint ut magna exercitation nostrud consectetur laboris. Ullamco occaecat aliqua do aliquip ut excepteur magna.
Declaration
1// Declare delegates for event-driven communication
2DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnStateChanged, EMyState, NewState);
3DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnProgressUpdated, float, Progress, FString, Message);
4
5UPROPERTY(BlueprintAssignable, Category = "Events")
6FOnStateChanged OnStateChanged;
7
8UPROPERTY(BlueprintAssignable, Category = "Events")
9FOnProgressUpdated OnProgressUpdated;
10
11// Broadcasting events
12void UMyManager::UpdateState(EMyState NewState)
13{
14 CurrentState = NewState;
15 OnStateChanged.Broadcast(NewState);
16 OnProgressUpdated.Broadcast(GetProgress(), GetStatusMessage());
17}
Members
| Parameter | Type | Default | Description |
|---|---|---|---|
| MaxPoolSize | int32 | 100 | Maximum number of pooled objects |
| TickRate | float | 60.0 | Update frequency in Hz |
| bAutoActivate | bool | true | Activate on BeginPlay |
| LogVerbosity | ELogVerbosity | Warning | Minimum log level |
| ReplicationMode | ERepMode | Reliable | Network replication strategy |
Example
1// Load configuration from data asset
2UMyConfigAsset* Config = LoadObject<UMyConfigAsset>(
3 nullptr,
4 TEXT("/Game/Config/DefaultPluginConfig.DefaultPluginConfig")
5);
6
7if (Config)
8{
9 Settings.MaxPoolSize = Config->MaxPoolSize;
10 Settings.TickRate = Config->TickRate;
11 Settings.bEnableDebugDraw = Config->bEnableDebugDraw;
12 Settings.LogVerbosity = Config->LogVerbosity;
13
14 UE_LOG(LogDeltaCraft Hub, Log, TEXT("Configuration loaded: PoolSize=%d, TickRate=%.2f"),
15 Settings.MaxPoolSize, Settings.TickRate);
16}