FQuestSystemOnError

v1.0
View as Markdown

FQuestSystemOnError belongs to the QuestSystem runtime module.

Irure adipiscing sint adipiscing ut incididunt cillum ea cillum ullamco incididunt aute. Sint eiusmod et velit ullamco occaecat nisi reprehenderit laboris aliqua irure veniam. Aliquip labore minim aliqua lorem ex quis voluptate commodo. Et laboris nisi pariatur quis lorem exercitation ipsum.

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

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; DefaultEngine.ini
 2[/Script/QuestSystem.QuestSystemSettings]
 3bEnabled=true
 4MaxPoolSize=100
 5TickRate=60.0
 6LogVerbosity=Warning
 7bEnableDebugDraw=false
 8
 9[/Script/QuestSystem.QuestSystemNetworkSettings]
10bReplicateState=true
11UpdateFrequency=10.0
12MaxReplicationDistance=10000.0