Variable

Abstract base class for action variable storage, providing the common interface for both field-backed and dynamic variables.

Definition

Namespace: Paragon.Core.ActionSystem Assembly: Paragon.dll Access: internal

[Serializable]
internal abstract class Variable

Description

Variable is the internal base class for storing named, typed values within the action system. It provides the foundation for two concrete implementations:

  • FieldVariable — Backed by a reflected field on an object

  • DynamicVariable — Stores values directly in memory

circle-info

This is an internal class used by ActionVariables. For public API, see ActionVariable.

Properties

Type

Gets the System.Type of the stored value.

public Type Type { get; }

Name

Gets the name identifier of the variable.

Methods

SetValue(object)

Sets the variable's value.

Parameter
Type
Description

value

object

The value to store

GetValue()

Gets the variable's current value.

Returns: object — The stored value

Constructor

Variable(Type, string)

Creates a new variable with the specified type and name.

Parameter
Type
Description

type

Type

The value type

name

string

The variable name

See Also

Last updated

Was this helpful?