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.

objectISceneEvent<T>
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public abstract interface Sandbox.ISceneEvent<T>

Methods2

Showing 2 methods

public static void Post(System.Action`1<T> action)PUBLICSTATIC

ParameterTypeDescription
actionAction<T>
Returns:void

public static void PostToGameObject(Sandbox.GameObject go, System.Action`1<T> action, Sandbox.FindMode find = 69)PUBLICSTATIC

ParameterTypeDescription
goGameObject
actionAction<T>
find = 69FindMode
Returns:void

On this page