API ReferenceSandbox
public abstract interface Sandbox.ISceneEvent<T>
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.
Methods
Showing 2 methods
public static void Post(System.Action`1<T> action)
public static void PostToGameObject(Sandbox.GameObject go, System.Action`1<T> action, Sandbox.FindMode find = 69)
Parameters
find: Default: 69
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.ISceneEvent`1 |