diff options
| author | Rémi Verschelde | 2016-07-15 00:34:56 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2016-07-18 00:54:56 +0200 |
| commit | b2953bc1ccc23089559f1216563032fabd6b929f (patch) | |
| tree | c44d41df8b7b6db91b5a6fff3bdcd277b7a6eb1e /core/bind/core_bind.cpp | |
| parent | 9ff7c5524f21d299380e68e600cd99133cf6a215 (diff) | |
| download | godot-b2953bc1ccc23089559f1216563032fabd6b929f.tar.gz godot-b2953bc1ccc23089559f1216563032fabd6b929f.tar.zst godot-b2953bc1ccc23089559f1216563032fabd6b929f.zip | |
Diffstat (limited to 'core/bind/core_bind.cpp')
| -rw-r--r-- | core/bind/core_bind.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index 9df31124f..66d3ef8a2 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -1016,6 +1016,11 @@ void _OS::alert(const String& p_alert,const String& p_title) { OS::get_singleton()->alert(p_alert,p_title); } +Dictionary _OS::get_engine_version() const { + + return OS::get_singleton()->get_engine_version(); +} + _OS *_OS::singleton=NULL; void _OS::_bind_methods() { @@ -1163,6 +1168,8 @@ void _OS::_bind_methods() { ObjectTypeDB::bind_method(_MD("set_use_vsync","enable"),&_OS::set_use_vsync); ObjectTypeDB::bind_method(_MD("is_vsnc_enabled"),&_OS::is_vsnc_enabled); + ObjectTypeDB::bind_method(_MD("get_engine_version"),&_OS::get_engine_version); + BIND_CONSTANT( DAY_SUNDAY ); BIND_CONSTANT( DAY_MONDAY ); BIND_CONSTANT( DAY_TUESDAY ); |
