KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
CityName.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
3#pragma once
4
5#include "CoreMinimal.h"
6#include "GameFramework/Actor.h"
7#include "CityName.generated.h"
8
9UCLASS()
10class ONEPIECE_API ACityName : public AActor
11{
12 GENERATED_BODY()
13
14public:
15 // Sets default values for this actor's properties
16 ACityName();
17
18protected:
19 // Called when the game starts or when spawned
20 virtual void BeginPlay() override;
21
22public:
23 // Called every frame
24 virtual void Tick(float DeltaTime) override;
25 virtual void GetLifetimeReplicatedProps(TArray<class FLifetimeProperty>& OutLifetimeProps) const override;
26 UPROPERTY(EditAnywhere)
27 class UWidgetComponent* WidgetComp;
28
29 UPROPERTY(EditAnywhere, Category = "Name")
30 int32 Index = 0;
31
32 UPROPERTY(EditAnywhere, ReplicatedUsing = OnRep_CityName)
33 FString CityName;
34
35 void SetDefaultText();
36 void SetChecked();
37
38
39 UFUNCTION()
40 void OnRep_CityName();
41};