GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Public Member Functions | Public Attributes | List of all members
gd::ObjectFunctionNameNode Struct Reference

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< ExpressionParserDiagnosticdiagnostic
 
ExpressionParserLocation location
 
ExpressionNodeparent
 

Detailed Description

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.

See also
gd::IdentifierNode

Member Data Documentation

◆ behaviorFunctionName

gd::String gd::ObjectFunctionNameNode::behaviorFunctionName

If empty, then

◆ behaviorFunctionNameLocation

ExpressionParserLocation gd::ObjectFunctionNameNode::behaviorFunctionNameLocation

Location of the behavior function name, if any.

◆ behaviorNameNamespaceSeparatorLocation

ExpressionParserLocation gd::ObjectFunctionNameNode::behaviorNameNamespaceSeparatorLocation

Location of the "::" separator, if any.

◆ objectFunctionOrBehaviorName

gd::String gd::ObjectFunctionNameNode::objectFunctionOrBehaviorName

Behavior name if behaviorFunctionName is not empty.

◆ objectFunctionOrBehaviorNameLocation

ExpressionParserLocation gd::ObjectFunctionNameNode::objectFunctionOrBehaviorNameLocation

Location of object function name or behavior name.

◆ objectNameLocation

ExpressionParserLocation gd::ObjectFunctionNameNode::objectNameLocation

Location of the object name.

objectFunctionOrBehaviorName is filled with the behavior name.


The documentation for this struct was generated from the following file: