C# Class EventDelegate, TheUnseen

Afficher le fichier Open project: henryj41043/TheUnseen Class Usage Examples

Méthodes publiques

Свойство Type Description
oneShot bool

Méthodes publiques

Méthode Description
Add ( List list, Callback, callback ) : void

Append a new event delegate to the list.

Add ( List list, Callback, callback, bool oneShot ) : void

Append a new event delegate to the list.

Add ( List list, EventDelegate, ev ) : void

Append a new event delegate to the list.

Add ( List list, EventDelegate, ev, bool oneShot ) : void

Append a new event delegate to the list.

Clear ( ) : void

Clear the event delegate.

Equals ( object obj ) : bool

Equality operator.

EventDelegate ( ) : System.Reflection
EventDelegate ( Callback, call ) : System.Reflection
EventDelegate ( MonoBehaviour target, string methodName ) : System.Reflection
Execute ( ) : bool

Execute the delegate, if possible. This will only be used when the application is playing in order to prevent unintentional state changes.

Execute ( List list ) : void

Execute an entire list of delegates.

GetHashCode ( ) : int

Used in equality operators.

IsValid ( List list ) : bool

Convenience function to check if the specified list of delegates can be executed.

Remove ( List list, Callback, callback ) : bool

Remove an existing event delegate from the list.

Set ( List list, Callback, callback ) : void

Assign a new event delegate.

Set ( MonoBehaviour target, string methodName ) : void

Set the delegate callback using the target and method names.

ToString ( ) : string

Convert the delegate to its string representation.

Private Methods

Méthode Description
Get ( ) : Callback,

Convert the saved target and method name into an actual delegate.

GetMethodName ( Callback, callback ) : string

GetMethodName is not supported on some platforms.

IsValid ( Callback, callback ) : bool
Set ( Callback, call ) : void

Set the delegate callback directly.

Method Details

Add() static public méthode

Append a new event delegate to the list.
static public Add ( List list, Callback, callback ) : void
list List
callback Callback,
Résultat void

Add() static public méthode

Append a new event delegate to the list.
static public Add ( List list, Callback, callback, bool oneShot ) : void
list List
callback Callback,
oneShot bool
Résultat void

Add() static public méthode

Append a new event delegate to the list.
static public Add ( List list, EventDelegate, ev ) : void
list List
ev EventDelegate,
Résultat void

Add() static public méthode

Append a new event delegate to the list.
static public Add ( List list, EventDelegate, ev, bool oneShot ) : void
list List
ev EventDelegate,
oneShot bool
Résultat void

Clear() public méthode

Clear the event delegate.
public Clear ( ) : void
Résultat void

Equals() public méthode

Equality operator.
public Equals ( object obj ) : bool
obj object
Résultat bool

EventDelegate() public méthode

public EventDelegate ( ) : System.Reflection
Résultat System.Reflection

EventDelegate() public méthode

public EventDelegate ( Callback, call ) : System.Reflection
call Callback,
Résultat System.Reflection

EventDelegate() public méthode

public EventDelegate ( MonoBehaviour target, string methodName ) : System.Reflection
target MonoBehaviour
methodName string
Résultat System.Reflection

Execute() public méthode

Execute the delegate, if possible. This will only be used when the application is playing in order to prevent unintentional state changes.
public Execute ( ) : bool
Résultat bool

Execute() static public méthode

Execute an entire list of delegates.
static public Execute ( List list ) : void
list List
Résultat void

GetHashCode() public méthode

Used in equality operators.
public GetHashCode ( ) : int
Résultat int

IsValid() static public méthode

Convenience function to check if the specified list of delegates can be executed.
static public IsValid ( List list ) : bool
list List
Résultat bool

Remove() static public méthode

Remove an existing event delegate from the list.
static public Remove ( List list, Callback, callback ) : bool
list List
callback Callback,
Résultat bool

Set() static public méthode

Assign a new event delegate.
static public Set ( List list, Callback, callback ) : void
list List
callback Callback,
Résultat void

Set() public méthode

Set the delegate callback using the target and method names.
public Set ( MonoBehaviour target, string methodName ) : void
target MonoBehaviour
methodName string
Résultat void

ToString() public méthode

Convert the delegate to its string representation.
public ToString ( ) : string
Résultat string

Property Details

oneShot public_oe property

Whether the event delegate will be removed after execution.
public bool oneShot
Résultat bool