Optimize some gameinstance codes

This commit is contained in:
martinluckyrobots
2025-04-03 10:13:55 +08:00
parent 7fa3ec0926
commit b7ed84f353
33 changed files with 118 additions and 4 deletions

View File

@ -8,6 +8,7 @@
#include "LuckyRobotsGameInstance.generated.h"
class USIOJsonValue;
class UGameUserWidget;
/**
*
*/
@ -39,10 +40,20 @@ public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
FGoalsTaskData TempTask;
public:
UFUNCTION(BlueprintImplementableEvent)
void DoGetDispatch(const FString& EventName, USIOJsonValue* EventData);
UPROPERTY(EditAnywhere, BlueprintReadWrite)
UGameUserWidget* GameUserWidget;
public:
UFUNCTION(BlueprintCallable)
void DoSendMessage(FString SendValue);
UFUNCTION(BlueprintCallable)
void DoLogItemAdd(FString Topic, FString MsgText, int Type);
UFUNCTION(BlueprintCallable)
void SwitchGamePaused();
public:
UFUNCTION(BlueprintCallable)
void ClearTaskList();
@ -69,4 +80,11 @@ public:
UFUNCTION(BlueprintPure)
TArray<FGoalsTaskData> GetTaskList();
UFUNCTION(BlueprintCallable)
void DoSetTempTaskValueChange(bool IsClear);
public:
UFUNCTION(BlueprintImplementableEvent)
void DoGetDispatch(const FString& EventName, USIOJsonValue* EventData);
};