C# Class TeaseAI_CE.Scripting.Variable

The base variable class, should be used for [bool, float, string] by-reference thread-safe
Inheritance: IKeyed
Afficher le fichier Open project: TeaseAI/TeaseAI-CE Class Usage Examples

Méthodes publiques

Свойство Type Description
Readonly bool

Protected Properties

Свойство Type Description
_value object

Méthodes publiques

Méthode Description
CanWriteValue ( ) : bool
Evaluate ( Context sender, Variable left, Operators op, Variable right ) : Variable
Get ( Key key, Logger log = null ) : Variable
ToString ( ) : string
Variable ( ) : System
Variable ( IVType value ) : System
Variable ( VM value ) : System
Variable ( Variable value ) : System
Variable ( bool value ) : System
Variable ( float value ) : System
Variable ( string value ) : System
WriteValue ( StringBuilder sb ) : void

Use to write a value as a string, when writing to files.

WriteValueUser ( Context sender, StringBuilder output ) : void

Méthodes protégées

Méthode Description
getObj ( ) : object
setObj ( object value ) : void

Private Methods

Méthode Description
getDefault ( Type type ) : object

Method Details

CanWriteValue() public méthode

public CanWriteValue ( ) : bool
Résultat bool

Evaluate() public static méthode

public static Evaluate ( Context sender, Variable left, Operators op, Variable right ) : Variable
sender Context
left Variable
op Operators
right Variable
Résultat Variable

Get() public méthode

public Get ( Key key, Logger log = null ) : Variable
key Key
log Logger
Résultat Variable

ToString() public méthode

public ToString ( ) : string
Résultat string

Variable() public méthode

public Variable ( ) : System
Résultat System

Variable() public méthode

public Variable ( IVType value ) : System
value IVType
Résultat System

Variable() public méthode

public Variable ( VM value ) : System
value VM
Résultat System

Variable() public méthode

public Variable ( Variable value ) : System
value Variable
Résultat System

Variable() public méthode

public Variable ( bool value ) : System
value bool
Résultat System

Variable() public méthode

public Variable ( float value ) : System
value float
Résultat System

Variable() public méthode

public Variable ( string value ) : System
value string
Résultat System

WriteValue() public méthode

Use to write a value as a string, when writing to files.
public WriteValue ( StringBuilder sb ) : void
sb StringBuilder
Résultat void

WriteValueUser() public méthode

public WriteValueUser ( Context sender, StringBuilder output ) : void
sender Context
output StringBuilder
Résultat void

getObj() protected méthode

protected getObj ( ) : object
Résultat object

setObj() protected méthode

protected setObj ( object value ) : void
value object
Résultat void

Property Details

Readonly public_oe property

If true scripts can only read.
public bool Readonly
Résultat bool

_value protected_oe property

protected object _value
Résultat object