diff --git a/project/the_gates/scripts/resources/command_events.gd b/project/the_gates/scripts/resources/command_events.gd index 4cfd738..178c630 100644 --- a/project/the_gates/scripts/resources/command_events.gd +++ b/project/the_gates/scripts/resources/command_events.gd @@ -1,12 +1,12 @@ extends Resource class_name CommandEvents -signal send_fd +signal send_filehandle signal set_mouse_mode(mode: int) -func send_fd_emit() -> void: - send_fd.emit() +func send_filehandle_emit() -> void: + send_filehandle.emit() func set_mouse_mode_emit(mode: int) -> void: diff --git a/project/the_gates/scripts/sandbox/command_sync.gd b/project/the_gates/scripts/sandbox/command_sync.gd index e4e30d6..c4e356f 100644 --- a/project/the_gates/scripts/sandbox/command_sync.gd +++ b/project/the_gates/scripts/sandbox/command_sync.gd @@ -16,8 +16,8 @@ func _physics_process(_delta: float) -> void: func _execute_function(command: Command) -> Variant: print("Recieved command: " + command.name) match command.name: - "send_fd": - command_events.send_fd_emit() + "send_filehandle": + command_events.send_filehandle_emit() "set_mouse_mode": if command.args.size() != 1: push_error("Arg count should be 1"); return "" command_events.set_mouse_mode_emit(command.args[0]) diff --git a/project/the_gates/scripts/sandbox/render_result.gd b/project/the_gates/scripts/sandbox/render_result.gd index ce0a700..75117ad 100644 --- a/project/the_gates/scripts/sandbox/render_result.gd +++ b/project/the_gates/scripts/sandbox/render_result.gd @@ -16,7 +16,7 @@ var texture_rid: RID func _ready() -> void: gate_events.gate_entered.connect(create_external_texture) - command_events.send_fd.connect(send_fd) + command_events.send_filehandle.connect(send_filehandle) initialize() @@ -47,14 +47,14 @@ func create_external_texture() -> void: ext_texure = ExternalTexture.new() var err = ext_texure.create(t_format, t_view, [image.get_data()]) if err: Debug.logerr("Cannot create external texture"); return - else: Debug.logclr("External texture created " + str(ext_texure.get_fd()), Color.AQUAMARINE) + else: Debug.logclr("External texture created", Color.AQUAMARINE) -func send_fd() -> void: - print("Sending fd...") +func send_filehandle() -> void: + print("Sending send_filehandle...") var sent = false while not sent: - sent = ext_texure.send_fd(fd_path) + sent = ext_texure.send_filehandle(fd_path) await get_tree().create_timer(0.1).timeout print("fd was sent")