Register pipe.close() method

Allows kill() method of unix PTY node to be called without error.
This commit is contained in:
Leroy Hopson 2022-04-30 18:31:24 +07:00
parent 28521b9d7a
commit 1d51acb38d
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
2 changed files with 6 additions and 0 deletions

View file

@ -25,6 +25,7 @@ void Pipe::_register_methods() {
register_method("poll", &Pipe::_poll_connection);
register_method("open", &Pipe::open);
register_method("write", &Pipe::write);
register_method("close", &Pipe::close);
register_signal<Pipe>("data_received", "data",
GODOT_VARIANT_TYPE_POOL_BYTE_ARRAY);