Advertisement
Dieton

HitInterface.h

Dec 13th, 2023 (edited)
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | Gaming | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "CoreMinimal.h"
  6. #include "UObject/Interface.h"
  7. #include "HitInterface.generated.h"
  8.  
  9. // This class does not need to be modified.
  10. UINTERFACE(MinimalAPI)
  11. class UHitInterface : public UInterface
  12. {
  13.     GENERATED_BODY()
  14. };
  15.  
  16. /**
  17.  *
  18.  */
  19. class SLASH_API IHitInterface
  20. {
  21.     GENERATED_BODY()
  22.  
  23.     // Add interface functions to this class. This is the class that will be inherited to implement this interface.
  24. public:
  25.     UFUNCTION(BlueprintNativeEvent)
  26.     void GetHit(const FVector& ImpactPoint);
  27. };
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement