Castle Game Engine: CastleScript: Class TCasScriptUserFunction

# Class TCasScriptUserFunction
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleScript ## Declaration `type TCasScriptUserFunction = class(TObject)` ## Description CastleScript user function definition. Not to be confused with TCasScriptFunction: TCasScriptFunction is an internal, built-in function or operator. This class represents functions defined by user. ## Hierarchy TObject TCasScriptUserFunction ## Overview ### Methods
| `constructor Create;`
| `destructor Destroy; override;`
### Properties
| `property Name: string read FName write FName;`
| `property Parameters: TCasScriptValueList read FParameters;`
| `property Body: TCasScriptExpression read FBody write FBody;`
## Description ### Methods
| `constructor Create;`
| `destructor Destroy; override;`
### Properties
| `property Name: string read FName write FName;`
| `property Parameters: TCasScriptValueList read FParameters;`
List of function parameters. Note that they are also referenced inside function Expression, so you simply change them to set value of this parameter within whole function body. These are always fresh variables, not referenced anywhere outside of Body. This means that they are owned (always, regardless of OwnedByParentExpression) by this class. They must always be of TCasScriptParameterValue class.
| `property Body: TCasScriptExpression read FBody write FBody;`
Function body.
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:11