Ark Server API (ASA) - Wiki
|
#include <ScriptDelegates.h>
Public Member Functions | |
TScriptDelegate () | |
void | BindUFunction (UObject *InObject, const FName &InFunctionName) |
bool | IsBound () const |
bool | IsBoundToObject (void const *InUserObject) const |
bool | IsBoundToObjectEvenIfUnreachable (void const *InUserObject) const |
bool | IsCompactable () const |
void | Unbind () |
void | Clear () |
template<class UObjectTemplate > | |
FString | ToString () const |
FORCEINLINE bool | operator== (const TScriptDelegate &Other) const |
FORCEINLINE bool | operator!= (const TScriptDelegate &Other) const |
void | operator= (const TScriptDelegate &Other) |
UObject * | GetUObject () |
const UObject * | GetUObject () const |
UObject * | GetUObjectEvenIfUnreachable () |
const UObject * | GetUObjectEvenIfUnreachable () const |
FName | GetFunctionName () const |
template<class UObjectTemplate > | |
void | ProcessDelegate (void *Parameters) const |
Protected Member Functions | |
UE_DELEGATES_MT_ACCESS_DETECTOR (AccessDetector) | |
Protected Attributes | |
TWeakPtr | Object |
FName | FunctionName |
Private Member Functions | |
template<class UObjectTemplate > | |
bool | IsBound_Internal () const |
Script delegate base class.
Definition at line 21 of file ScriptDelegates.h.
|
inline |
Default constructor.
Definition at line 30 of file ScriptDelegates.h.
|
inline |
Binds a UFunction to this delegate.
InObject | The object to call the function on. |
InFunctionName | The name of the function to call. |
Definition at line 59 of file ScriptDelegates.h.
|
inline |
Unbinds this delegate (another name to provide a similar interface to TMulticastScriptDelegate)
Definition at line 129 of file ScriptDelegates.h.
|
inline |
Gets the name of the function to call on the bound object
Definition at line 249 of file ScriptDelegates.h.
|
inline |
Gets the object bound to this delegate
Definition at line 197 of file ScriptDelegates.h.
|
inline |
Gets the object bound to this delegate (const)
Definition at line 210 of file ScriptDelegates.h.
|
inline |
Gets the object bound to this delegate, even if the object is unreachable
Definition at line 223 of file ScriptDelegates.h.
|
inline |
Gets the object bound to this delegate (const), even if the object is unreachable
Definition at line 236 of file ScriptDelegates.h.
|
inline |
Checks to see if the user object bound to this delegate is still valid
Definition at line 72 of file ScriptDelegates.h.
|
inlineprivate |
Definition at line 38 of file ScriptDelegates.h.
|
inline |
Checks to see if this delegate is bound to the given user object.
Definition at line 84 of file ScriptDelegates.h.
|
inline |
Checks to see if this delegate is bound to the given user object, even if the object is unreachable.
Definition at line 96 of file ScriptDelegates.h.
|
inline |
Checks to see if the user object bound to this delegate will ever be valid again
Definition at line 108 of file ScriptDelegates.h.
|
inline |
Definition at line 177 of file ScriptDelegates.h.
|
inline |
Definition at line 184 of file ScriptDelegates.h.
|
inline |
Comparison operators
Definition at line 170 of file ScriptDelegates.h.
|
inline |
Executes a delegate by calling the named function on the object bound to the delegate. You should always first verify that the delegate is safe to execute by calling IsBound() before calling this function. In general, you should never call this function directly. Instead, call Execute() on a derived class.
Parameters | Parameter structure |
Definition at line 265 of file ScriptDelegates.h.
|
inline |
Converts this delegate to a string representation
Definition at line 140 of file ScriptDelegates.h.
|
protected |
|
inline |
Unbinds this delegate
Definition at line 118 of file ScriptDelegates.h.
Definition at line 310 of file ScriptDelegates.h.
|
friend |
Definition at line 292 of file ScriptDelegates.h.
|
friend |
Delegate serialization
Definition at line 152 of file ScriptDelegates.h.
|
friend |
Delegate serialization
Definition at line 161 of file ScriptDelegates.h.
|
protected |
Name of the function to call on the bound object
Definition at line 305 of file ScriptDelegates.h.
|
protected |
The object bound to this delegate, or nullptr if no object is bound
Definition at line 302 of file ScriptDelegates.h.