2022-11-09 21:57:46 +01:00
|
|
|
@tool
|
2022-06-29 17:58:48 +02:00
|
|
|
extends Node
|
|
|
|
|
|
|
|
signal data_received(data)
|
|
|
|
signal exited(exit_code, signum)
|
|
|
|
|
|
|
|
|
|
|
|
func open(cols: int, rows: int):
|
|
|
|
return _not_implemented()
|
|
|
|
|
|
|
|
|
|
|
|
func resize(cols: int, rows: int):
|
|
|
|
return _not_implemented()
|
|
|
|
|
|
|
|
|
|
|
|
func _not_implemented() -> int:
|
|
|
|
var method := ""
|
|
|
|
|
|
|
|
var stack = get_stack()
|
|
|
|
if stack.size() >= 2 and "function" in stack[1]:
|
|
|
|
method = "%s()" % stack[1].function
|
|
|
|
|
2022-11-09 22:52:54 +01:00
|
|
|
push_error("Method %s not implemented on the current platform (%s)." % [method, OS.get_name()])
|
2022-06-29 17:58:48 +02:00
|
|
|
return ERR_METHOD_NOT_FOUND
|