Space Plunder
Loading...
Searching...
No Matches
InteractableSwitch.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "InteractableSwitch.generated.h"
8
9UCLASS()
10class INTERACTION_API AInteractableSwitch : public AInteractableActor
11{
12 GENERATED_BODY()
13
14public:
15 explicit AInteractableSwitch();
16
17 virtual void ReceiveToggleSwitch(AActor* Caller, const bool bOn) override;
18 // virtual void ToggleSwitch(AActor* Caller, bool bOn) override;
19 virtual void ReceiveOnInteract(AActor* Caller, const EInteractionType InteractionType) override;
20 // virtual void OnInteract(AActor* Caller, const int32 SelectedInteraction) override;
21
22 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Interaction|Switch")
23 bool bSwitchOn = false;
24
25protected:
26 virtual void BeginPlay() override;
27
28
29 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Interaction|Switch")
30 TArray<AActor*> ActorsControlledBySwitch;
31
32
33};
EInteractionType
Definition BaseData.h:149
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition InteractableActor.h:15
Definition InteractableSwitch.h:11
Definition Interaction.Build.cs:6