import
keywordYou can use import
to load definitions from another file.
File: foo.gdnpublic fun defined_in_foo() {}
Example 1import "./foo.gdn" as f
fun bar() {
f::defined_in_foo()
}
You can also load all the definitions into the current file.
Example 2import "./foo.gdn"
fun bar() {
defined_in_foo()
}