Table of Contents

Interface IExpressionEvaluator

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public interface IExpressionEvaluator
Extension Methods

Methods

ParseExpression<T>(Entity, string)

Parses an expression.

T? ParseExpression<T>(Entity entity, string expression) where T : unmanaged

Parameters

entity Entity

The source entity to use for variable lookups.

expression string

The expression to parse.

Returns

T?

Returns the resolved attribute value of type T, or null.

Type Parameters

T

The expected type of the attribute, if found.