API ReferenceSandbox
ISceneEvent<T>class
A wrapper for scene event interfaces. Allows syntax sugar of something like `IPlayerEvents.Post( x => x.OnPlayerHurt( this, amount ) )` instead of using Scene.Run to call them manually.
object→ISceneEvent<T>
Methods2
Showing 2 methods
public static void Post(System.Action`1<T> action)
| Parameter | Type | Description |
|---|---|---|
| action | Action<T> | — |
Returns:
void—public static void PostToGameObject(Sandbox.GameObject go, System.Action`1<T> action, Sandbox.FindMode find = 69)
| Parameter | Type | Description |
|---|---|---|
| go | GameObject | — |
| action | Action<T> | — |
| find = 69 | FindMode | — |
Returns:
void—No results match this filter.