Untitled
implemented an easier solution: using class_name and _init(): Interface: class_name MyInterface (some members) within each script: implements = [MyInterface, MyOtherInterface] func _init(): for interface in implements: if interface != null: for interface_method in interface.get_script_method_list(): assert(interface_method in self.get_script().get_script_method_list(), "your error message") For each interface you need to define an extra script, which is more user friendly to me!
Leave a Comment