Advertisement
orfeasel

Delegates declaration

Feb 4th, 2016
19,073
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. /*Single-cast delegate declaration. No parameters*/
  2. DECLARE_DELEGATE(MyDelegate)
  3.  
  4. /*Single-cast delegate declaration. One int32 parameter*/
  5. DECLARE_DELEGATE_OneParam(MyIntDelegate, int32)
  6.  
  7. /*Multi-cast delegate declartion. One int32 parameter*/
  8. DECLARE_MULTICAST_DELEGATE_OneParam(MyIntMulticastDelegate, int32)
  9.  
  10. /*Function with one int32 parameter*/
  11. UFUNCTION()
  12. void IntFunction(int32 x);
  13.  
  14. /*Function with one int32 parameter*/
  15. UFUNCTION()
  16. void SecondIntFunction(int32 x);
  17.  
  18. /*Function with one int32 parameter*/
  19. UFUNCTION()
  20. void ThirdIntFunction(int32 x);
  21.  
  22. /*Function with no parameters*/
  23. UFUNCTION()
  24. void SomeFunction();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement