ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.

All usages of "type" to refer to classes were renamed to "class"
ClassDB has been exposed to GDScript.
OBJ_TYPE() macro is now GDCLASS()
This commit is contained in:
Juan Linietsky 2017-01-02 23:03:46 -03:00
parent ce26eb74bc
commit 118eed485e
751 changed files with 8046 additions and 7810 deletions

View file

@ -338,12 +338,12 @@ void ScriptCreateDialog::_update_controls() {
void ScriptCreateDialog::_bind_methods() {
ObjectTypeDB::bind_method("_class_name_changed",&ScriptCreateDialog::_class_name_changed);
ObjectTypeDB::bind_method("_lang_changed",&ScriptCreateDialog::_lang_changed);
ObjectTypeDB::bind_method("_built_in_pressed",&ScriptCreateDialog::_built_in_pressed);
ObjectTypeDB::bind_method("_browse_path",&ScriptCreateDialog::_browse_path);
ObjectTypeDB::bind_method("_file_selected",&ScriptCreateDialog::_file_selected);
ObjectTypeDB::bind_method("_path_changed",&ScriptCreateDialog::_path_changed);
ClassDB::bind_method("_class_name_changed",&ScriptCreateDialog::_class_name_changed);
ClassDB::bind_method("_lang_changed",&ScriptCreateDialog::_lang_changed);
ClassDB::bind_method("_built_in_pressed",&ScriptCreateDialog::_built_in_pressed);
ClassDB::bind_method("_browse_path",&ScriptCreateDialog::_browse_path);
ClassDB::bind_method("_file_selected",&ScriptCreateDialog::_file_selected);
ClassDB::bind_method("_path_changed",&ScriptCreateDialog::_path_changed);
ADD_SIGNAL(MethodInfo("script_created",PropertyInfo(Variant::OBJECT,"script",PROPERTY_HINT_RESOURCE_TYPE,"Script")));
}