KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
FResponseUserMe 구조체 참조

#include <NetworkData.h>

+ FResponseUserMe에 대한 협력 다이어그램:

Public 멤버 함수

FLinearColor GetChatProfileBg (int player_index) const
 
EResourceTextureType GetChatProfileTextureType (int player_index) const
 
void PrintData () const
 디버그 로그에 응답 내용을 출력합니다.
 
void SetFromHttpResponse (const TSharedPtr< class IHttpResponse, ESPMode::ThreadSafe > &Response)
 HTTP 응답을 파싱해 상태 정보를 갱신합니다.
 

Public 속성

FString fullname
 
int id
 
bool is_active
 
FString my_avatar
 
FString my_color
 
FString username
 

상세한 설명

NetworkData.h 파일의 496 번째 라인에서 정의되었습니다.

멤버 함수 문서화

◆ GetChatProfileBg()

FLinearColor FResponseUserMe::GetChatProfileBg ( int  player_index) const

NetworkData.cpp 파일의 236 번째 라인에서 정의되었습니다.

237{
238 if ( id == DefineData::BotID)
239 {
240 return FColor::FromHex(TEXT("007BE8FF"));
241 }
242
243 if ( player_index == 0)
244 return FColor::FromHex(TEXT("FFFFFF"));
245 if ( player_index == 1)
246 return FColor::FromHex(TEXT("FFFFFF"));
247 else
248 return FColor::FromHex(TEXT("E94C4CFF"));
249}
static const int32 BotID
Definition Onepiece.h:56

다음을 참조함 : DefineData::BotID.

다음에 의해서 참조됨 : UChatWidget::SendMessage().

+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ GetChatProfileTextureType()

EResourceTextureType FResponseUserMe::GetChatProfileTextureType ( int  player_index) const

NetworkData.cpp 파일의 222 번째 라인에서 정의되었습니다.

223{
224 if ( id == DefineData::BotID)
225 {
227 }
228
229 if ( player_index == 0)
231 else if ( player_index == 1)
234}

다음을 참조함 : Bot, DefineData::BotID, GreenOwl, RedOwl.

다음에 의해서 참조됨 : UChatWidget::SendMessage().

+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ PrintData()

void FResponseUserMe::PrintData ( ) const

디버그 로그에 응답 내용을 출력합니다.

NetworkData.cpp 파일의 210 번째 라인에서 정의되었습니다.

211{
212 FString OutputString;
213 FJsonObjectConverter::UStructToJsonObjectString(
214 *this,
215 OutputString,
216 0,
217 0
218 );
219 NETWORK_LOG( TEXT("[RES] %s"), *OutputString);
220}
#define NETWORK_LOG(fmt,...)

다음을 참조함 : NETWORK_LOG.

다음에 의해서 참조됨 : UKLingoNetworkSystem::RequestUserMe().

+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ SetFromHttpResponse()

void FResponseUserMe::SetFromHttpResponse ( const TSharedPtr< class IHttpResponse, ESPMode::ThreadSafe > &  Response)

HTTP 응답을 파싱해 상태 정보를 갱신합니다.

NetworkData.cpp 파일의 188 번째 라인에서 정의되었습니다.

189{
190 if (!Response.IsValid())
191 {
192 return;
193 }
194
195 FString JsonString = Response->GetContentAsString();
196 TSharedPtr<FJsonObject> JsonObject;
197 TSharedRef<TJsonReader<>> Reader = TJsonReaderFactory<>::Create(JsonString);
198
199 if (FJsonSerializer::Deserialize(Reader, JsonObject) && JsonObject.IsValid())
200 {
201 id = JsonObject->GetIntegerField(TEXT("id"));
202 username = JsonObject->GetStringField(TEXT("username"));
203 fullname = JsonObject->GetStringField(TEXT("fullname"));
204 is_active = JsonObject->GetBoolField(TEXT("is_active"));
205 my_avatar = JsonObject->GetStringField(TEXT("my_avatar"));
206 my_color = JsonObject->GetStringField(TEXT("my_color"));
207 }
208}

다음을 참조함 : fullname, is_active, my_avatar, my_color, username.

다음에 의해서 참조됨 : UKLingoNetworkSystem::RequestUserMe().

+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

멤버 데이터 문서화

◆ fullname

FString FResponseUserMe::fullname

NetworkData.h 파일의 507 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : ALingoGameState::ALingoGameState(), SetFromHttpResponse().

◆ id

int FResponseUserMe::id

NetworkData.h 파일의 501 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : ALingoGameState::ALingoGameState(), UChatWidget::SendMessage().

◆ is_active

bool FResponseUserMe::is_active

NetworkData.h 파일의 510 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : ALingoGameState::ALingoGameState(), SetFromHttpResponse().

◆ my_avatar

FString FResponseUserMe::my_avatar

NetworkData.h 파일의 513 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : ALingoGameState::ALingoGameState(), SetFromHttpResponse().

◆ my_color

FString FResponseUserMe::my_color

NetworkData.h 파일의 516 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : ALingoGameState::ALingoGameState(), SetFromHttpResponse().

◆ username

FString FResponseUserMe::username

NetworkData.h 파일의 504 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : ALingoGameState::ALingoGameState(), UChatWidget::SendMessage(), SetFromHttpResponse().


이 구조체에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: