ClassDB: Provide the enum name of integer constants
This commit is contained in:
@@ -55,10 +55,11 @@ void StreamPeerSSL::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("connect_to_stream", "stream", "validate_certs", "for_hostname"), &StreamPeerSSL::connect_to_stream, DEFVAL(false), DEFVAL(String()));
|
||||
ClassDB::bind_method(D_METHOD("get_status"), &StreamPeerSSL::get_status);
|
||||
ClassDB::bind_method(D_METHOD("disconnect_from_stream"), &StreamPeerSSL::disconnect_from_stream);
|
||||
BIND_CONSTANT(STATUS_DISCONNECTED);
|
||||
BIND_CONSTANT(STATUS_CONNECTED);
|
||||
BIND_CONSTANT(STATUS_ERROR_NO_CERTIFICATE);
|
||||
BIND_CONSTANT(STATUS_ERROR_HOSTNAME_MISMATCH);
|
||||
|
||||
BIND_ENUM_CONSTANT(STATUS_DISCONNECTED);
|
||||
BIND_ENUM_CONSTANT(STATUS_CONNECTED);
|
||||
BIND_ENUM_CONSTANT(STATUS_ERROR_NO_CERTIFICATE);
|
||||
BIND_ENUM_CONSTANT(STATUS_ERROR_HOSTNAME_MISMATCH);
|
||||
}
|
||||
|
||||
StreamPeerSSL::StreamPeerSSL() {
|
||||
|
||||
Reference in New Issue
Block a user