20 virtual void GetLifetimeReplicatedProps(TArray<class FLifetimeProperty>& OutLifetimeProps)
const override;
24 void SetToken(FString InToken) { this->AccessToken = InToken; }
30 FString GetChatContext()
const;
32 void RefreshQuestState();
43 UFUNCTION(Server, Reliable, WithValidation)
44 void Server_SetSelectedWord1(const FString& Word1);
47 UFUNCTION(Server, Reliable, WithValidation)
48 void Server_SetSelectedWord2(const FString& Word2);
51 void OnRep_QuestRole();
55 void OnRep_SelectedWord1();
59 void OnRep_SelectedWord2();
63 void OnRep_WrongWord1();
67 void OnRep_WrongWord2();
73 UPROPERTY(Transient, BlueprintReadOnly, Category = "WriteQuest")
76 UPROPERTY(Transient, BlueprintReadOnly, Category = "WriteQuest")
79 UPROPERTY(Transient, BlueprintReadOnly, Category = "WriteQuest")
87 UFUNCTION(Server, Reliable)
88 void Server_NotifySpeakDataReady();
95 UFUNCTION(BlueprintCallable, Category = "SpeakQuest")
96 void SetSpeakQuestCompleted();
99 UFUNCTION(BlueprintPure, Category = "SpeakQuest")
100 bool IsSpeakQuestCompleted()
const {
return bSpeakQuestCompleted; }
103 UFUNCTION(BlueprintCallable, Category =
"ReadQuest")
104 void SetReadQuestCompleted();
107 UFUNCTION(BlueprintPure, Category = "ReadQuest")
108 bool IsReadQuestCompleted()
const {
return bReadQuestCompleted; }
111 UFUNCTION(BlueprintCallable, Category =
"ListenQuest")
112 void SetListenQuestCompleted();
115 UFUNCTION(BlueprintPure, Category = "ListenQuest")
116 bool IsListenQuestCompleted()
const {
return bListenQuestCompleted; }
119 UFUNCTION(BlueprintCallable, Category =
"WriteQuest")
120 void SetWriteQuestCompleted();
123 UFUNCTION(BlueprintPure, Category = "WriteQuest")
124 bool IsWriteQuestCompleted()
const {
return bWriteQuestCompleted; }
127 UFUNCTION(BlueprintCallable, Category =
"ReadQuest")
128 void SetReadQuestIng(
bool bInProgress);
131 UFUNCTION(BlueprintCallable, Category = "ListenQuest")
132 void SetListenQuestIng(
bool bInProgress);
135 UFUNCTION(BlueprintCallable, Category = "SpeakQuest")
136 void SetSpeakQuestIng(
bool bInProgress);
139 UFUNCTION(BlueprintCallable, Category = "WriteQuest")
140 void SetWriteQuestIng(
bool bInProgress);
144 void OnRep_SpeakScenarioData();
148 UPROPERTY(ReplicatedUsing = OnRep_QuestRole, BlueprintReadOnly, Category = "Quest")
152 UPROPERTY(Replicated, BlueprintReadOnly, Category = "Quest")
153 int32 AttemptCount = 0;
156 UPROPERTY(ReplicatedUsing = OnRep_SelectedWord1, BlueprintReadOnly, Category = "Quest")
157 FString SelectedWord1;
159 UPROPERTY(ReplicatedUsing = OnRep_WrongWord1, BlueprintReadOnly, Category = "Quest")
160 bool bWrongWord1 = false;
163 UPROPERTY(ReplicatedUsing = OnRep_SelectedWord2, BlueprintReadOnly, Category = "Quest")
164 FString SelectedWord2;
166 UPROPERTY(ReplicatedUsing = OnRep_WrongWord2, BlueprintReadOnly, Category = "Quest")
167 bool bWrongWord2 = false;
178 void OnUpdateSpeakScenarioData();
180 UPROPERTY(Transient, ReplicatedUsing = OnRep_SpeakScenarioData, BlueprintReadOnly, Category = "SpeakQuest")
187 UPROPERTY(Transient, Replicated, BlueprintReadOnly, Category = "SpeakQuest")
193 void OnRep_QuestState();
196 UPROPERTY(ReplicatedUsing = OnRep_QuestState, BlueprintReadOnly, Category = "ReadQuest")
197 bool bReadQuestCompleted = false;
200 UPROPERTY(ReplicatedUsing = OnRep_QuestState, BlueprintReadOnly, Category = "ListenQuest")
201 bool bListenQuestCompleted = false;
204 UPROPERTY(ReplicatedUsing = OnRep_QuestState, BlueprintReadOnly, Category = "SpeakQuest")
205 bool bSpeakQuestCompleted = false;
208 UPROPERTY(ReplicatedUsing = OnRep_QuestState, BlueprintReadOnly, Category = "WriteQuest")
209 bool bWriteQuestCompleted = false;
213 UPROPERTY(ReplicatedUsing = OnRep_QuestState, BlueprintReadOnly, Category = "ReadQuest")
214 bool bReadQuestIng = false;
217 UPROPERTY(ReplicatedUsing = OnRep_QuestState, BlueprintReadOnly, Category = "ListenQuest")
218 bool bListenQuestIng = false;
221 UPROPERTY(ReplicatedUsing = OnRep_QuestState, BlueprintReadOnly, Category = "SpeakQuest")
222 bool bSpeakQuestIng = false;
225 UPROPERTY(ReplicatedUsing = OnRep_QuestState, BlueprintReadOnly, Category = "WriteQuest")
226 bool bWriteQuestIng = false;