Skip to documentation
LITHIUM
Guide 16Experimental

Lithium.Core.Event.CallableAttribute

Marks a component or static method as callable by another addon through Call(string, object[]).

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

CallableAttribute

Status: Experimental

Signature

C#
public sealed class CallableAttribute(string name) : Attribute

Description

Marks a component or static method as callable by another addon through Call(string, object[]).

Example

C#
[Event.Callable("name")]
public sealed class Example { }

View source

Members

Name

Status: Experimental

Signature

C#
public string Name { get; }

Description

The event name exposed by the decorated method.

Example

C#
var value = instance.Name;

View source

Cette page vous a-t-elle aidé ?

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

0/1000