Api Sandbox ISceneEvent<T>
interface

ISceneEvent<T>

public interface ISceneEvent<T>

A wrapper for scene event interfaces. Allows syntax sugar of something like `IPlayerEvents.Post( x =&gt; x.OnPlayerHurt( this, amount ) )` instead of using Scene.Run to call them manually.

Methods

static Void Post(Action<T> action)
static Void PostToGameObject(GameObject go, Action<T> action, FindMode find = 69)
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.ISceneEvent<T>