| // Copyright Epic Games, Inc. All Rights Reserved. | |
| namespace EEndPlayReason { enum Type : int; } | |
| class UObject; | |
| /** | |
| * UGameplayMessageProcessor | |
| * | |
| * Base class for any message processor which observes other gameplay messages | |
| * and potentially re-emits updates (e.g., when a chain or combo is detected) | |
| * | |
| * Note that these processors are spawned on the server once (not per player) | |
| * and should do their own internal filtering if only relevant for some players. | |
| */ | |
| UCLASS(MinimalAPI, BlueprintType, Blueprintable, meta=(BlueprintSpawnableComponent)) | |
| class UGameplayMessageProcessor : public UActorComponent | |
| { | |
| GENERATED_BODY() | |
| public: | |
| //~UActorComponent interface | |
| UE_API virtual void BeginPlay() override; | |
| UE_API virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override; | |
| //~End of UActorComponent interface | |
| UE_API virtual void StartListening(); | |
| UE_API virtual void StopListening(); | |
| protected: | |
| UE_API void AddListenerHandle(FGameplayMessageListenerHandle&& Handle); | |
| UE_API double GetServerTime() const; | |
| private: | |
| TArray<FGameplayMessageListenerHandle> ListenerHandles; | |
| }; | |