Skip to documentation
LITHIUM
Guide 19Experimental

Lithium.Core.EventCodeGenerator

Public compiler bridge used by generated addon code. Event dispatch logic remains internal to Event.

This page is generated from the public C# symbols in src/game/sandbox/Code.

EventCodeGenerator

Status: Experimental

Signature

C#
public static class EventCodeGenerator

Description

Public compiler bridge used by generated addon code. Event dispatch logic remains internal to Event.

Example

C#
EventCodeGenerator.Invoke(method, args);

View source

Members

Invoke (overload 1 of 2)

Status: Experimental

Signature

C#
public static void Invoke(WrappedMethod method, params object[] args)

Description

Resumes a wrapped void method and propagates its configured event.

Example

C#
EventCodeGenerator.Invoke(method, args);

View source

Invoke (overload 2 of 2)

Status: Experimental

Signature

C#
public static T Invoke<T>(WrappedMethod<T> method, params object[] args)

Description

Resumes a wrapped value-returning method, propagates its event and returns its result.

Example

C#
var result = EventCodeGenerator.Invoke<ExampleType>(method, args);

View source

Cette page vous a-t-elle aidé ?

N’indiquez aucune donnée personnelle dans votre commentaire.

0/1000