Advertisement
BeneFager

Untitled

Jan 11th, 2022
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.84 KB | None | 0 0
  1. class RATSIMULATOR_API AInteractableBase : public AActor, public IInteractInterface
  2. {
  3.     GENERATED_BODY()
  4.  
  5. public:
  6.     // Sets default values for this actor's properties
  7.     AInteractableBase();
  8.    
  9.     UPROPERTY(EditAnywhere, BlueprintReadWrite)
  10.     UStaticMeshComponent* Mesh;
  11.  
  12. protected:
  13.    
  14.     virtual void BeginPlay() override;
  15.  
  16. public:
  17.    
  18.     virtual void Tick(float DeltaTime) override;
  19.  
  20.     UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category=Interact)
  21.     void OnFocus();
  22.     virtual void OnFocus_Implementation() override;
  23.  
  24.     UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category=Interact)
  25.     void OnFocusLost();
  26.     virtual void OnFocusLost_Implementation() override;
  27.  
  28.     UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category=Interact)
  29.     void OnInteract(AActor* Caller);
  30.     virtual void OnInteract_Implementation(AActor* Caller) override;
  31.    
  32. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement