KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UChatHistorySystem.h
이 파일의 문서화 페이지로 가기
1// Copyright (c) 2025 Doppleddiggong. All rights reserved. Unauthorized copying, modification, or distribution of this file, via any medium is strictly prohibited. Proprietary and confidential.
2
5
6#pragma once
7
8#include "CoreMinimal.h"
9#include "Components/ActorComponent.h"
10#include "FChatHistoryItem.h"
11#include "UChatHistorySystem.generated.h"
12
13
16UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
17class ONEPIECE_API UChatHistorySystem : public UActorComponent
18{
19 GENERATED_BODY()
20
21public:
25 UFUNCTION(BlueprintCallable, Category = "ChatHistory")
26 void SaveChatHistory(const FString& Question, const FString& Answer);
27
31 UFUNCTION(BlueprintCallable, Category = "ChatHistory")
32 int32 LoadAllChatHistory(TArray<FChatHistoryItem>& OutHistoryList);
33
35 UFUNCTION(BlueprintCallable, Category = "ChatHistory")
36 void ClearChatHistory();
37
39 UFUNCTION(BlueprintCallable, Category = "ChatHistory")
40 int32 GetHistoryCount() const;
41
42private:
44 int32 GetNextIndex() const;
45};
채팅 히스토리 한 항목을 보관하는 구조체입니다.