Interface IVariablesScriptingApi
Defines an API for scripting interactions that involve accessing and manipulating variables within a scriptable environment. This interface extends the basic variable access capabilities with script-focused functionalities, allowing for strongly-typed variable interactions.
Inherited Members
Namespace: EyeAuras.Scripting.Api
Assembly: EyeAuras.Scripting.dll
Syntax
public interface IVariablesScriptingApi : IScriptingApi, IDisposable, IVariablesAccessor, IEnumerable<AuraVariable>, IEnumerable, ICanSetVariables
Remarks
Working with ScriptVariable<T> provides a strongly-typed approach to accessing variables, ensuring type safety at compile time and reducing runtime errors. It simplifies the process of manipulating variables within scripts, offering both readability and maintainability benefits.
Methods
Name | Description |
---|---|
Get<T>(IHasVariables, string) | Retrieves a strongly-typed ScriptVariable<T> from a specific source that implements IHasVariables. |
Get<T>(string, string) | Retrieves a strongly-typed ScriptVariable<T> associated with a given aura and variable name. |