Register pipe.close() method

This commit is contained in:
Leroy Hopson 2022-04-30 18:31:24 +07:00
parent 42c9f284be
commit ded2ced89b
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
2 changed files with 4 additions and 0 deletions

View file

@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
### Fixed
- Registered `pipe.close()` method, so `kill()` can be called when using unix PTY node.
## [v2.0.0] - 2021-07-25 ## [v2.0.0] - 2021-07-25
### Added ### Added

View file

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