123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- #pragma once
- #include "AkAudioDevice.h"
- #include "AkAcousticTexture.h"
- #include "GameFramework/Actor.h"
- #include "AkSpotReflector.generated.h"
- UCLASS(config = Engine)
- class AKAUDIO_API AAkSpotReflector : public AActor
- {
- GENERATED_BODY()
- public:
- AAkSpotReflector(const FObjectInitializer& ObjectInitializer);
-
- UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = AkSpotReflector)
- class UAkAuxBus * EarlyReflectionAuxBus = nullptr;
-
- UPROPERTY(EditAnywhere, BlueprintReadWrite, AdvancedDisplay, Category = AkSpotReflector)
- FString EarlyReflectionAuxBusName;
-
- UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = AkSpotReflector)
- UAkAcousticTexture* AcousticTexture = nullptr;
-
- UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = AkSpotReflector, meta = (ClampMin = "0.0"))
- float DistanceScalingFactor = .0f;
-
- UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = AkSpotReflector, meta = (ClampMin = "0.0", ClampMax = "4.0"))
- float Level = .0f;
-
- UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = AkSpotReflector)
- bool SameRoomOnly = false;
-
- UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = AkSpotReflector, meta = (EditCondition = "SameRoomOnly"))
- bool EnableRoomOverride = false;
-
- UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = AkSpotReflector, meta = (EditCondition = "EnableRoomOverride"))
- class AActor* RoomOverride = nullptr;
- AkImageSourceID GetImageSourceID() const;
- AkAuxBusID GetAuxBusID() const;
- virtual void PostInitializeComponents() override;
- virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override;
-
- static void UpdateSpotReflectors(UAkComponent* AkComponent);
- const FString GetSpotReflectorName() const;
- private:
- void SetImageSource(UAkComponent* AkComponent);
- void AddToWorld();
- void RemoveFromWorld();
- #if WITH_EDITORONLY_DATA
-
- class UBillboardComponent* SpriteComponent;
- #endif
- typedef TSet<AAkSpotReflector*> SpotReflectorSet;
- typedef TMap<UWorld*, SpotReflectorSet> WorldToSpotReflectorsMap;
- static WorldToSpotReflectorsMap sWorldToSpotReflectors;
- };
|