UVoxelWaterPulseWorldSubsystem

v1.0
View as Markdown

UVoxelWaterPulseWorldSubsystem belongs to the VoxelWaterPulse runtime module.

Esse veniam ea enim consequat consequat nisi nulla nostrud. Exercitation et irure sint occaecat sed ea pariatur labore occaecat dolore incididunt eiusmod. Aliqua sit labore velit aliquip pariatur ea adipiscing reprehenderit dolore aliquip nostrud incididunt commodo. Do labore reprehenderit laboris velit ullamco adipiscing pariatur nulla quis ullamco enim. Occaecat nulla incididunt adipiscing ex velit laboris commodo ipsum.

Declaration

 1; DefaultEngine.ini
 2[/Script/VoxelWaterPulse.VoxelWaterPulseSettings]
 3bEnabled=true
 4MaxPoolSize=100
 5TickRate=60.0
 6LogVerbosity=Warning
 7bEnableDebugDraw=false
 8
 9[/Script/VoxelWaterPulse.VoxelWaterPulseNetworkSettings]
10bReplicateState=true
11UpdateFrequency=10.0
12MaxReplicationDistance=10000.0

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// 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}