Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.54 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "Object.h"
  6. #include "Usable.generated.h"
  7.  
  8. /**
  9.  *
  10.  */
  11.  /** Class needed to support InterfaceCast<IToStringInterface>(Object) */
  12. UINTERFACE(MinimalAPI, Blueprintable, meta = (CannotImplementInterfaceInBlueprint))
  13. class UUsable : public UInterface
  14. {
  15.     GENERATED_UINTERFACE_BODY()
  16. };
  17.  
  18. class IUsable
  19. {
  20.     GENERATED_IINTERFACE_BODY()
  21.  
  22.  
  23.     UFUNCTION()
  24.     virtual void InitializeUsable();
  25.  
  26.     //Primary Press/Release
  27.     UFUNCTION(BlueprintCallable, Category = "UsableInterface")
  28.     virtual void UsePrimaryPress();
  29.     UFUNCTION(BlueprintCallable, Category = "UsableInterface")
  30.     virtual void UsePrimaryRelease();
  31.  
  32.  
  33.     //Secondary Press/Release
  34.     UFUNCTION(BlueprintCallable, Category = "UsableInterface")
  35.     virtual void UseSecondaryPress();
  36.     UFUNCTION(BlueprintCallable, Category = "UsableInterface")
  37.     virtual void UseSecondaryRelease();
  38.  
  39.     //Canceled
  40.     UFUNCTION(BlueprintCallable, Category = "UsableInterface")
  41.     virtual void OnCanceled();
  42.  
  43.     //functions
  44.     UFUNCTION(BlueprintCallable, Category = "UsableInterface")
  45.     virtual void DestroyUsable();
  46.  
  47.     UFUNCTION(BlueprintCallable, Category = "UsableInterface")
  48.     virtual FName GetUsableName();
  49.  
  50.     UFUNCTION(BlueprintCallable, Category = "UsableInterface")
  51.     virtual UTexture2D* GetUsableThumbnail();
  52.  
  53.     UFUNCTION(BlueprintCallable, Category = "UsableInterface")
  54.     virtual float GetCurrentCooldown();
  55.  
  56.     UFUNCTION(BlueprintCallable, Category = "UsableInterface")
  57.     virtual float GetFullCooldown();
  58.  
  59.  
  60. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement