LEAP Documentation 40220
Documentation for the LEAP project
BroadcastMessageComponent.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2018. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "BroadcastMessageComponent.generated.h"
8
12UCLASS()
14{
15 GENERATED_UCLASS_BODY()
16
17public:
18 virtual void ReceiveMessage(AProjectXPlayerController* PlayerController, int32 Data, APlayerState* PlayerStateA, APlayerState* PlayerStateB, UObject* Object) const override;
19
20protected:
21 void AddComponentToActor(UObject* Object) const;
22 void RemoveComponentFromActor(UObject* Object) const;
23
24protected:
25 UPROPERTY(EditDefaultsOnly, Category = Message)
26 TSubclassOf<UActorComponent> ComponentClass;
27};
Definition: ProjectXPlayerController.h:83
Definition: BroadcastMessageComponent.h:14
Definition: BroadcastMessage.h:17