Space Plunder
Loading...
Searching...
No Matches
PhysicsPickupComponent.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"
6#include "Components/ActorComponent.h"
8#include "PhysicsPickupComponent.generated.h"
9
10
11UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent))
12class INTERACTION_API UPhysicsPickupComponent : public UActorComponent, public IPhysicsPickup
13{
14 GENERATED_BODY()
15
16public:
17 UPhysicsPickupComponent();
18
19 virtual FPhysicsPickupData GetPhysicsPickupData() const override {return PhysicsPickupData;};
20
21 virtual void SetSnapped(const bool bValue) override;
22 virtual bool GetIsSnapped() const override {return bSnapped;};
23 virtual void SetInteracting(const bool bValue) override;
24
25 virtual TArray<UArrowComponent*> GetSnapComponents() override;
26
27 virtual UPrimitiveComponent* GetGrabComponent() const override;
28
29 UFUNCTION(BlueprintNativeEvent)
30 UPrimitiveComponent* GetGrabComponentBP() const;
31
32
33protected:
34 virtual void BeginPlay() override;
35
36 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Physics")
37 FPhysicsPickupData PhysicsPickupData;
38 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Physics")
39 bool bSnapped = false;
40 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Physics")
41 bool bInteractMode = false;
42
43
44
45
46};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition PhysicsPickup.h:21
virtual TArray< UArrowComponent * > GetSnapComponents()=0
virtual void SetSnapped(const bool bValue)=0
virtual void SetInteracting(const bool bValue)=0
virtual UPrimitiveComponent * GetGrabComponent() const =0
virtual bool GetIsSnapped() const =0
Definition InteractionData.h:73