extends Node

func report(key: String, value) -> void:
	print("CONTROL %s=%s" % [key, JSON.stringify(value)])

func _ready() -> void:
	report("engine_version", Engine.get_version_info())
	report("extension_file_exists", FileAccess.file_exists("res://example.gdextension"))
	report("example_exists", ClassDB.class_exists("Example"))
	report("example_runtime_exists", ClassDB.class_exists("ExampleRuntime"))
	if ClassDB.class_exists("Example"):
		var e = ClassDB.instantiate("Example")
		report("example_instantiated", e != null)
	get_tree().quit()
