24 template <
typename ...Args>
28 inline FSlot(std::function<
void(Args...)>
function) :
29 init(
true),
function(
function) { };
30 inline FSlot() : init(
false) { };
33 inline void Call(Args... args)
const
35 if (this->init) this->
function(args...);
41 this->
function =
function;
44 inline const type_info&
GetType()
override {
return typeid(
FSlot); }
47 return typeid(
FSlot).name();
52 std::function<void(Args...)>
function;
const type_info & GetType() override
Returns the type info over object.
Definition: FSlot.h:44
FString GetName() const override
< Returns the name of object
Definition: FSlot.h:45
virtual ~FSlot()=default
Constructor of slot object.
void Call(Args... args) const
< Execute call
Definition: FSlot.h:33
void SetSlotFunction(std::function< void(Args...)> function)
Definition: FSlot.h:38