LEAP Documentation 40220
Documentation for the LEAP project
GlobalEffectSystem.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"
6#include "GameFramework/Actor.h"
7#include "GlobalEffectSystem.generated.h"
8
9UCLASS()
10class PROJECTX_API AGlobalEffectSystem : public AActor
11{
12 GENERATED_BODY()
13
14public:
16
17 UFUNCTION(BlueprintCallable, BlueprintAuthorityOnly, Category="Global Effects", meta = (WorldContext = "WorldContextObject"))
18 static void PlaySoundAtLocationForAllPlayers(UObject* WorldContextObject, USoundBase* SoundToPlay, FVector Location);
19
20protected:
21 virtual void BeginPlay() override;
22 virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override;
23
24private:
25 static AGlobalEffectSystem* Singleton;
26 static AGlobalEffectSystem* Get(UObject* WorldContextObject);
27
28 UFUNCTION(NetMulticast, Unreliable)
29 void Multicast_PlaySoundAtLocation(USoundBase* SoundToPlay, FVector_NetQuantize Location);
30};
Definition: GlobalEffectSystem.h:11