gdnative_python/tests/work_with_gdscript/gdnode.gd

27 lines
348 B
GDScript

extends Node
var ready_called = false
export(int) var prop
export var overloaded_by_child_prop = "default"
func _ready():
ready_called = true
func is_ready_called():
return ready_called
func meth(attr):
return attr
func overloaded_by_child_meth(attr):
return attr
static func static_meth(attr):
return 'static:' + attr