Life and Style Media - Delegate Event


Create, Bind, and Unbind Delegate Events. Uses a custom delegate to attach and detach events at will. Useful for whenever you need a specific set of events to occur in one call.

DELEGATE EVENT


Current Version: 1.0.1
Price: FREE
License: MIT
Type: Custom Units







API
SUMMARY
Delegates work just like the name says, they delegate behavior between multiple sources. In the context of events and Bolt, this means we can attach and detach events. Imagine having an internal list of events that can be added or removed. One trigger to the Binding Delegate will call all events that have been bound.

Imagine playing some sort of game where there is a spotlight moving around. If you are caught in it at the end of the buzzer, you are shocked. You could use a collider with the light, and everytime a player enters or leaves, you bind or unbind. When the time is up, Trigger the Binding Delegate. Any players who are bound from still being in the light, get shocked due to the events logic that is on each player object.



* Click the colored headers to access nested content. These are classes, structs, interfaces, enums, variables, and methods. *




Lasm.BoltExtensions.IO



RUNTIME


BindDelegate
A unit that binds a target EventDelegate to a source BindingDelegate.

6 items


BindingDelegate
A type which nests an EventDelegate. Used to seperate source trigger from events.

1 items


CreateDelegate
Create a new BindingDelegate.

3 items


DelegateEvent
An Event Unit with a EventDelegate output event.

8 items


TriggerDelegate
A unit that when triggered, triggers all bound events to the source.

8 items


UnbindDelegate
Unbinds the EventDelegate from the source BindingDelegate.

6 items




EDITOR


BindDelegateDescriptor
No Description

2 items


CreateDelegateDescriptor
No Description

2 items


DelegateEventDescriptor
No Description

3 items


DelegateEventWidget
No Description

1 items


TriggerDelegateDescriptor
No Description

2 items


UnbindDelegateDescriptor
No Description

2 items