DRG-Femboy-Voice/Source/FSD/Public/PlayerRejoinState.h
2025-04-15 12:39:31 -07:00

28 lines
965 B
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "Components/ActorComponent.h"
#include "RejoinFloat.h"
#include "RejoinInt.h"
#include "PlayerRejoinState.generated.h"
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
class UPlayerRejoinState : public UActorComponent {
GENERATED_BODY()
public:
UPlayerRejoinState();
UFUNCTION(BlueprintCallable, Reliable, Server, WithValidation)
void Server_Reset();
protected:
UFUNCTION(BlueprintCallable, Reliable, Server)
void Server_AddIntValue_Internal(const FGuid& ItemKey, const FName& ValueKey, int32 Value);
UFUNCTION(BlueprintCallable, Reliable, Server)
void Server_AddFloatValue_Internal(const FGuid& ItemKey, const FName& ValueKey, float Value);
UFUNCTION(BlueprintCallable, Client, Reliable)
void Client_SetValues(const TArray<FRejoinFloat>& floatValues, const TArray<FRejoinInt>& intValues);
};