find_node   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/core/godot_test1.xtm

Implementation

(bind-func find_node
  (lambda (instance:godot_object* name:i8*)
    (println "FIND NODE!")
    (let ((method:godot_method_bind* (godot_method_bind_get_method "Node" "find_node"))
           (arg1 (godot_string_var name))
           (arg2 (godot_bool_var 1))
           (arg3 (godot_bool_var 1))
           (args:godot_variant** (salloc 3)) ;; find_node is a 3 arg funtion
           (error:godot_variant_call_error* (salloc)))
      (println "ok to here in find node!")
      ;; find_node is (string, bool, bool)
      (pfill! args (ref arg1) (ref arg2) (ref arg3)) ;; true and true
      (println "filled args!")
      (godot_method_bind_call method instance args 3 error))))


Back to Index

Similar Entries