Built in types
This chapter contains a list of built in types visible from scripts.
Simple
- Byte - signed one byte integer
- Short - signed two byte integer
- Int - signed four byte integer
- UByte - unsigned one byte integer
- UShort - unsigned two byte integer
- UInt - unsigned four byte integer
- Float - 4 byte floating point number
- Double - 8 byte floating point number
- Char - 1 byte character
Classes
- ISCVMScript interface to a loaded script from other script.
- void Execute() - executes the script
- Int GetExitCode() const - returns the exit code of the last execution
- ISCType represents a type
- PCStr GetName() - returns the name of the type
- ISCSymbol represents a symbol - variable or function, you can access ISCSymbol object by placing $ operator before some symbol.
- PCStr GetName() - returns the name of the symbol
- ISCType* GetType() - returns the type of the symbol
- Int GetLength() - returns the numbers of elements in the array, 1 if the variable is not an array
- SCSymbolInfo Used to hold information about a variable when a script is loaded from other.
- void SetSymbol(ISCSymbol &sym) - sets variable to keep information about
- SCScriptCtrl Represents an executed script during its execution. Every script has a builin variable
of SCScriptCtrl - _scScript.
- void Sleep()) - Suspends execution of the script - see also microthreading
- void Exit(Int code) - Exits from the script with the given return code
- ISCVMScript^ LoadScript(PCStr _path, PCStr _lang, SCSymbolInfo ^_userVars, PCStr _opt)
- Allows to load a script from other script at runtime. The script is loaded from a file.
- ISCVMScript^ CompileScript(PCStr _script, PCStr _lang, SCSymbolInfo ^_userVars, PCStr _opt)
- Allows to compile a script from other script at runtime. The script code is passed as a null terminated string.
Aliases
- PCStr - null terminated string (const Char*)
- Bool - logical value (Int)