GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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.Function" or "MyObject.Physics" or "MyObject.Physics::LinearVelocity". More...

#include <ExpressionParser2Node.h>

Inherits gd::FunctionCallOrObjectFunctionNameOrEmptyNode.

Public Member Functions

 ObjectFunctionNameNode (const gd::String &type_, const gd::String &objectName_, const gd::String &objectFunctionOrBehaviorName_)
 
 ObjectFunctionNameNode (const gd::String &type_, const gd::String &objectName_, const gd::String &behaviorName_, const gd::String &behaviorFunctionName_)
 
virtual void Visit (ExpressionParser2NodeWorker &worker)
 

Public Attributes

gd::String type
 
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
< ExpressionParserDiagnostic
diagnostic
 
ExpressionParserLocation location
 

Detailed Description

The name of a function to call on an object or the behavior For example: "MyObject.Function" or "MyObject.Physics" or "MyObject.Physics::LinearVelocity".

Member Data Documentation

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.


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