GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
The name of a function to call on an object or the behavior For example: "MyObject.Physics::LinearVelocity". More...
#include <ExpressionParser2Node.h>
Inherits gd::FunctionCallOrObjectFunctionNameOrEmptyNode.
Public Member Functions | |
ObjectFunctionNameNode (const gd::String &objectName_, const gd::String &objectFunctionOrBehaviorName_) | |
ObjectFunctionNameNode (const gd::String &objectName_, const gd::String &behaviorName_, const gd::String &behaviorFunctionName_) | |
virtual void | Visit (ExpressionParser2NodeWorker &worker) |
Public Attributes | |
gd::String | objectName |
gd::String | objectFunctionOrBehaviorName |
gd::String | behaviorFunctionName |
ExpressionParserLocation | objectNameLocation |
Location of the object name. More... | |
ExpressionParserLocation | objectNameDotLocation |
Location of the "." after the object name. | |
ExpressionParserLocation | objectFunctionOrBehaviorNameLocation |
ExpressionParserLocation | behaviorNameNamespaceSeparatorLocation |
ExpressionParserLocation | behaviorFunctionNameLocation |
Public Attributes inherited from gd::ExpressionNode | |
std::unique_ptr< ExpressionParserError > | diagnostic |
ExpressionParserLocation | location |
ExpressionNode * | parent |
The name of a function to call on an object or the behavior For example: "MyObject.Physics::LinearVelocity".
Other cases like "MyObject.Function" or "MyObject.Physics" are IdentifierNode to allow handling ambiguities.
gd::String gd::ObjectFunctionNameNode::behaviorFunctionName |
If empty, then
ExpressionParserLocation gd::ObjectFunctionNameNode::behaviorFunctionNameLocation |
Location of the behavior function name, if any.
ExpressionParserLocation gd::ObjectFunctionNameNode::behaviorNameNamespaceSeparatorLocation |
Location of the "::" separator, if any.
gd::String gd::ObjectFunctionNameNode::objectFunctionOrBehaviorName |
Behavior name if behaviorFunctionName
is not empty.
ExpressionParserLocation gd::ObjectFunctionNameNode::objectFunctionOrBehaviorNameLocation |
Location of object function name or behavior name.
ExpressionParserLocation gd::ObjectFunctionNameNode::objectNameLocation |
Location of the object name.
objectFunctionOrBehaviorName is filled with the behavior name.