5#include "CoreMinimal.h"
7#include "ProjectXGameStateVIP.generated.h"
14 GENERATED_USTRUCT_BODY()
17 FVIP(TWeakObjectPtr<AProjectXPlayerState> NewVIPPlayerState, uint8 NewVIPID) {
18 VIPPlayerState = NewVIPPlayerState;
25 if (VIPPlayerState ==
VIP.VIPPlayerState && VIPID ==
VIP.VIPID)
32 UPROPERTY(BlueprintReadOnly)
34 UPROPERTY(BlueprintReadOnly)
36 UPROPERTY(BlueprintReadOnly)
43 GENERATED_USTRUCT_BODY()
49 VIPS = TArray<FVIP>();
52 UPROPERTY(BlueprintReadOnly)
54 UPROPERTY(BlueprintReadOnly)
73 UFUNCTION(BlueprintCallable)
75 UFUNCTION(BlueprintCallable)
76 void GetVIPS(TArray<
FTeamVIP>& FoundVIPs)
const { FoundVIPs = VIPS; }
77 UFUNCTION(BlueprintCallable)
78 bool GetVIPsByTeam(uint8 Team,TArray<FVIP>& FoundPlayerStates)
const;
79 UFUNCTION(BlueprintCallable,BlueprintPure)
80 int32 GetNumberOfVIPS()
const;
82 bool GetVIP(uint8 Team, uint8 ID,
FVIP& FoundVIP);
84 virtual void HandleMatchWarmupEnded()
override;
89 UPROPERTY(BlueprintAssignable)
90 FVIPSEventSignature OnVipsUpdatedEvent;
92 UPROPERTY(BlueprintAssignable)
93 FVIPEventSignature VIPEvent;
96 UPROPERTY(ReplicatedUsing = OnRep_VIPInfo)
99 FString MatchStartVIP = "VO_MatchStart_VIP";
EVIPEvent
Definition: ProjectXGameModeVIP.h:11
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FVIPSEventSignature, const TArray< FTeamVIP > &, VIPsList)
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FVIPEventSignature, const AProjectXPlayerState *, VIP, EVIPEvent, Event)
Definition: ProjectXGameState.h:158
Definition: ProjectXGameStateVIP.h:63
Definition: ProjectXPlayerState.h:238
Definition: ProjectXGameStateVIP.h:42
FTeamVIP(uint8 NewTeam)
Definition: ProjectXGameStateVIP.h:46
Definition: ProjectXGameStateVIP.h:13
FVIP(TWeakObjectPtr< AProjectXPlayerState > NewVIPPlayerState, uint8 NewVIPID)
Definition: ProjectXGameStateVIP.h:17
bool operator==(const FVIP &VIP)
Definition: ProjectXGameStateVIP.h:23