ModScriptParser
See the code atutils/script_parser.gdDescription
Inherits Object
This class contains utility functions to parse GDScript source code.
Signals
None
Properties
None
Methods
get_extended_class
static func get_extended_class(script: GDScript) -> StringName
Parses the extends class name from the provided script's source code.
Note: This is a static method, intended to be called directly on ModScriptParser.
Parameters
| Name | Type | Description |
|---|---|---|
script | GDScript | The script to parse. |
Returns
| Type | StringName |
|---|---|
| Description | The parsed extends class name. |
get_class_name
static func get_class_name(script: GDScript) -> StringName
Parses the class_name from the provided script's source code.
Note: This is a static method, intended to be called directly on ModScriptParser.
Parameters
| Name | Type | Description |
|---|---|---|
script | GDScript | The script to parse. |
Returns
| Type | StringName |
|---|---|
| Description | The parsed class_name. |