Rename the _MD macro to D_METHOD

This new name also makes its purpose a little clearer

This is a step towards fixing #56
This commit is contained in:
Hein-Pieter van Braam 2017-02-13 12:47:24 +01:00
parent bf64df4427
commit 411ee71b4d
297 changed files with 5445 additions and 5443 deletions

View file

@ -110,12 +110,12 @@ bool _ResourceLoader::has(const String &p_path) {
void _ResourceLoader::_bind_methods() {
ClassDB::bind_method(_MD("load_interactive:ResourceInteractiveLoader","path","type_hint"),&_ResourceLoader::load_interactive,DEFVAL(""));
ClassDB::bind_method(_MD("load:Resource","path","type_hint", "p_no_cache"),&_ResourceLoader::load,DEFVAL(""), DEFVAL(false));
ClassDB::bind_method(_MD("get_recognized_extensions_for_type","type"),&_ResourceLoader::get_recognized_extensions_for_type);
ClassDB::bind_method(_MD("set_abort_on_missing_resources","abort"),&_ResourceLoader::set_abort_on_missing_resources);
ClassDB::bind_method(_MD("get_dependencies","path"),&_ResourceLoader::get_dependencies);
ClassDB::bind_method(_MD("has","path"),&_ResourceLoader::has);
ClassDB::bind_method(D_METHOD("load_interactive:ResourceInteractiveLoader","path","type_hint"),&_ResourceLoader::load_interactive,DEFVAL(""));
ClassDB::bind_method(D_METHOD("load:Resource","path","type_hint", "p_no_cache"),&_ResourceLoader::load,DEFVAL(""), DEFVAL(false));
ClassDB::bind_method(D_METHOD("get_recognized_extensions_for_type","type"),&_ResourceLoader::get_recognized_extensions_for_type);
ClassDB::bind_method(D_METHOD("set_abort_on_missing_resources","abort"),&_ResourceLoader::set_abort_on_missing_resources);
ClassDB::bind_method(D_METHOD("get_dependencies","path"),&_ResourceLoader::get_dependencies);
ClassDB::bind_method(D_METHOD("has","path"),&_ResourceLoader::has);
}
_ResourceLoader::_ResourceLoader() {
@ -148,8 +148,8 @@ _ResourceSaver *_ResourceSaver::singleton=NULL;
void _ResourceSaver::_bind_methods() {
ClassDB::bind_method(_MD("save","path","resource:Resource","flags"),&_ResourceSaver::save,DEFVAL(0));
ClassDB::bind_method(_MD("get_recognized_extensions","type"),&_ResourceSaver::get_recognized_extensions);
ClassDB::bind_method(D_METHOD("save","path","resource:Resource","flags"),&_ResourceSaver::save,DEFVAL(0));
ClassDB::bind_method(D_METHOD("get_recognized_extensions","type"),&_ResourceSaver::get_recognized_extensions);
BIND_CONSTANT(FLAG_RELATIVE_PATHS);
BIND_CONSTANT(FLAG_BUNDLE_RESOURCES);
@ -973,145 +973,145 @@ _OS *_OS::singleton=NULL;
void _OS::_bind_methods() {
//ClassDB::bind_method(_MD("get_mouse_pos"),&_OS::get_mouse_pos);
//ClassDB::bind_method(_MD("is_mouse_grab_enabled"),&_OS::is_mouse_grab_enabled);
//ClassDB::bind_method(D_METHOD("get_mouse_pos"),&_OS::get_mouse_pos);
//ClassDB::bind_method(D_METHOD("is_mouse_grab_enabled"),&_OS::is_mouse_grab_enabled);
ClassDB::bind_method(_MD("set_clipboard","clipboard"),&_OS::set_clipboard);
ClassDB::bind_method(_MD("get_clipboard"),&_OS::get_clipboard);
ClassDB::bind_method(D_METHOD("set_clipboard","clipboard"),&_OS::set_clipboard);
ClassDB::bind_method(D_METHOD("get_clipboard"),&_OS::get_clipboard);
//will not delete for now, just unexpose
//ClassDB::bind_method(_MD("set_video_mode","size","fullscreen","resizable","screen"),&_OS::set_video_mode,DEFVAL(0));
//ClassDB::bind_method(_MD("get_video_mode_size","screen"),&_OS::get_video_mode,DEFVAL(0));
//ClassDB::bind_method(_MD("is_video_mode_fullscreen","screen"),&_OS::is_video_mode_fullscreen,DEFVAL(0));
//ClassDB::bind_method(_MD("is_video_mode_resizable","screen"),&_OS::is_video_mode_resizable,DEFVAL(0));
//ClassDB::bind_method(_MD("get_fullscreen_mode_list","screen"),&_OS::get_fullscreen_mode_list,DEFVAL(0));
//ClassDB::bind_method(D_METHOD("set_video_mode","size","fullscreen","resizable","screen"),&_OS::set_video_mode,DEFVAL(0));
//ClassDB::bind_method(D_METHOD("get_video_mode_size","screen"),&_OS::get_video_mode,DEFVAL(0));
//ClassDB::bind_method(D_METHOD("is_video_mode_fullscreen","screen"),&_OS::is_video_mode_fullscreen,DEFVAL(0));
//ClassDB::bind_method(D_METHOD("is_video_mode_resizable","screen"),&_OS::is_video_mode_resizable,DEFVAL(0));
//ClassDB::bind_method(D_METHOD("get_fullscreen_mode_list","screen"),&_OS::get_fullscreen_mode_list,DEFVAL(0));
ClassDB::bind_method(_MD("get_screen_count"),&_OS::get_screen_count);
ClassDB::bind_method(_MD("get_current_screen"),&_OS::get_current_screen);
ClassDB::bind_method(_MD("set_current_screen","screen"),&_OS::set_current_screen);
ClassDB::bind_method(_MD("get_screen_position","screen"),&_OS::get_screen_position,DEFVAL(0));
ClassDB::bind_method(_MD("get_screen_size","screen"),&_OS::get_screen_size,DEFVAL(0));
ClassDB::bind_method(_MD("get_screen_dpi","screen"),&_OS::get_screen_dpi,DEFVAL(0));
ClassDB::bind_method(_MD("get_window_position"),&_OS::get_window_position);
ClassDB::bind_method(_MD("set_window_position","position"),&_OS::set_window_position);
ClassDB::bind_method(_MD("get_window_size"),&_OS::get_window_size);
ClassDB::bind_method(_MD("set_window_size","size"),&_OS::set_window_size);
ClassDB::bind_method(_MD("set_window_fullscreen","enabled"),&_OS::set_window_fullscreen);
ClassDB::bind_method(_MD("is_window_fullscreen"),&_OS::is_window_fullscreen);
ClassDB::bind_method(_MD("set_window_resizable","enabled"),&_OS::set_window_resizable);
ClassDB::bind_method(_MD("is_window_resizable"),&_OS::is_window_resizable);
ClassDB::bind_method(_MD("set_window_minimized", "enabled"),&_OS::set_window_minimized);
ClassDB::bind_method(_MD("is_window_minimized"),&_OS::is_window_minimized);
ClassDB::bind_method(_MD("set_window_maximized", "enabled"),&_OS::set_window_maximized);
ClassDB::bind_method(_MD("is_window_maximized"),&_OS::is_window_maximized);
ClassDB::bind_method(_MD("request_attention"), &_OS::request_attention);
ClassDB::bind_method(D_METHOD("get_screen_count"),&_OS::get_screen_count);
ClassDB::bind_method(D_METHOD("get_current_screen"),&_OS::get_current_screen);
ClassDB::bind_method(D_METHOD("set_current_screen","screen"),&_OS::set_current_screen);
ClassDB::bind_method(D_METHOD("get_screen_position","screen"),&_OS::get_screen_position,DEFVAL(0));
ClassDB::bind_method(D_METHOD("get_screen_size","screen"),&_OS::get_screen_size,DEFVAL(0));
ClassDB::bind_method(D_METHOD("get_screen_dpi","screen"),&_OS::get_screen_dpi,DEFVAL(0));
ClassDB::bind_method(D_METHOD("get_window_position"),&_OS::get_window_position);
ClassDB::bind_method(D_METHOD("set_window_position","position"),&_OS::set_window_position);
ClassDB::bind_method(D_METHOD("get_window_size"),&_OS::get_window_size);
ClassDB::bind_method(D_METHOD("set_window_size","size"),&_OS::set_window_size);
ClassDB::bind_method(D_METHOD("set_window_fullscreen","enabled"),&_OS::set_window_fullscreen);
ClassDB::bind_method(D_METHOD("is_window_fullscreen"),&_OS::is_window_fullscreen);
ClassDB::bind_method(D_METHOD("set_window_resizable","enabled"),&_OS::set_window_resizable);
ClassDB::bind_method(D_METHOD("is_window_resizable"),&_OS::is_window_resizable);
ClassDB::bind_method(D_METHOD("set_window_minimized", "enabled"),&_OS::set_window_minimized);
ClassDB::bind_method(D_METHOD("is_window_minimized"),&_OS::is_window_minimized);
ClassDB::bind_method(D_METHOD("set_window_maximized", "enabled"),&_OS::set_window_maximized);
ClassDB::bind_method(D_METHOD("is_window_maximized"),&_OS::is_window_maximized);
ClassDB::bind_method(D_METHOD("request_attention"), &_OS::request_attention);
ClassDB::bind_method(_MD("set_borderless_window", "borderless"), &_OS::set_borderless_window);
ClassDB::bind_method(_MD("get_borderless_window"), &_OS::get_borderless_window);
ClassDB::bind_method(D_METHOD("set_borderless_window", "borderless"), &_OS::set_borderless_window);
ClassDB::bind_method(D_METHOD("get_borderless_window"), &_OS::get_borderless_window);
ClassDB::bind_method(_MD("set_screen_orientation","orientation"),&_OS::set_screen_orientation);
ClassDB::bind_method(_MD("get_screen_orientation"),&_OS::get_screen_orientation);
ClassDB::bind_method(D_METHOD("set_screen_orientation","orientation"),&_OS::set_screen_orientation);
ClassDB::bind_method(D_METHOD("get_screen_orientation"),&_OS::get_screen_orientation);
ClassDB::bind_method(_MD("set_keep_screen_on","enabled"),&_OS::set_keep_screen_on);
ClassDB::bind_method(_MD("is_keep_screen_on"),&_OS::is_keep_screen_on);
ClassDB::bind_method(D_METHOD("set_keep_screen_on","enabled"),&_OS::set_keep_screen_on);
ClassDB::bind_method(D_METHOD("is_keep_screen_on"),&_OS::is_keep_screen_on);
ClassDB::bind_method(_MD("has_touchscreen_ui_hint"),&_OS::has_touchscreen_ui_hint);
ClassDB::bind_method(D_METHOD("has_touchscreen_ui_hint"),&_OS::has_touchscreen_ui_hint);
ClassDB::bind_method(_MD("set_window_title","title"),&_OS::set_window_title);
ClassDB::bind_method(D_METHOD("set_window_title","title"),&_OS::set_window_title);
ClassDB::bind_method(_MD("set_low_processor_usage_mode","enable"),&_OS::set_low_processor_usage_mode);
ClassDB::bind_method(_MD("is_in_low_processor_usage_mode"),&_OS::is_in_low_processor_usage_mode);
ClassDB::bind_method(D_METHOD("set_low_processor_usage_mode","enable"),&_OS::set_low_processor_usage_mode);
ClassDB::bind_method(D_METHOD("is_in_low_processor_usage_mode"),&_OS::is_in_low_processor_usage_mode);
ClassDB::bind_method(_MD("get_processor_count"),&_OS::get_processor_count);
ClassDB::bind_method(D_METHOD("get_processor_count"),&_OS::get_processor_count);
ClassDB::bind_method(_MD("get_executable_path"),&_OS::get_executable_path);
ClassDB::bind_method(_MD("execute","path","arguments","blocking","output"),&_OS::execute,DEFVAL(Array()));
ClassDB::bind_method(_MD("kill","pid"),&_OS::kill);
ClassDB::bind_method(_MD("shell_open","uri"),&_OS::shell_open);
ClassDB::bind_method(_MD("get_process_ID"),&_OS::get_process_ID);
ClassDB::bind_method(D_METHOD("get_executable_path"),&_OS::get_executable_path);
ClassDB::bind_method(D_METHOD("execute","path","arguments","blocking","output"),&_OS::execute,DEFVAL(Array()));
ClassDB::bind_method(D_METHOD("kill","pid"),&_OS::kill);
ClassDB::bind_method(D_METHOD("shell_open","uri"),&_OS::shell_open);
ClassDB::bind_method(D_METHOD("get_process_ID"),&_OS::get_process_ID);
ClassDB::bind_method(_MD("get_environment","environment"),&_OS::get_environment);
ClassDB::bind_method(_MD("has_environment","environment"),&_OS::has_environment);
ClassDB::bind_method(D_METHOD("get_environment","environment"),&_OS::get_environment);
ClassDB::bind_method(D_METHOD("has_environment","environment"),&_OS::has_environment);
ClassDB::bind_method(_MD("get_name"),&_OS::get_name);
ClassDB::bind_method(_MD("get_cmdline_args"),&_OS::get_cmdline_args);
ClassDB::bind_method(D_METHOD("get_name"),&_OS::get_name);
ClassDB::bind_method(D_METHOD("get_cmdline_args"),&_OS::get_cmdline_args);
ClassDB::bind_method(_MD("get_datetime","utc"),&_OS::get_datetime,DEFVAL(false));
ClassDB::bind_method(_MD("get_date","utc"),&_OS::get_date,DEFVAL(false));
ClassDB::bind_method(_MD("get_time","utc"),&_OS::get_time,DEFVAL(false));
ClassDB::bind_method(_MD("get_time_zone_info"),&_OS::get_time_zone_info);
ClassDB::bind_method(_MD("get_unix_time"),&_OS::get_unix_time);
ClassDB::bind_method(_MD("get_datetime_from_unix_time", "unix_time_val"),
ClassDB::bind_method(D_METHOD("get_datetime","utc"),&_OS::get_datetime,DEFVAL(false));
ClassDB::bind_method(D_METHOD("get_date","utc"),&_OS::get_date,DEFVAL(false));
ClassDB::bind_method(D_METHOD("get_time","utc"),&_OS::get_time,DEFVAL(false));
ClassDB::bind_method(D_METHOD("get_time_zone_info"),&_OS::get_time_zone_info);
ClassDB::bind_method(D_METHOD("get_unix_time"),&_OS::get_unix_time);
ClassDB::bind_method(D_METHOD("get_datetime_from_unix_time", "unix_time_val"),
&_OS::get_datetime_from_unix_time);
ClassDB::bind_method(_MD("get_unix_time_from_datetime", "datetime"),
ClassDB::bind_method(D_METHOD("get_unix_time_from_datetime", "datetime"),
&_OS::get_unix_time_from_datetime);
ClassDB::bind_method(_MD("get_system_time_secs"), &_OS::get_system_time_secs);
ClassDB::bind_method(D_METHOD("get_system_time_secs"), &_OS::get_system_time_secs);
ClassDB::bind_method(_MD("set_icon","icon"),&_OS::set_icon);
ClassDB::bind_method(D_METHOD("set_icon","icon"),&_OS::set_icon);
ClassDB::bind_method(_MD("get_exit_code"),&_OS::get_exit_code);
ClassDB::bind_method(_MD("set_exit_code","code"),&_OS::set_exit_code);
ClassDB::bind_method(D_METHOD("get_exit_code"),&_OS::get_exit_code);
ClassDB::bind_method(D_METHOD("set_exit_code","code"),&_OS::set_exit_code);
ClassDB::bind_method(_MD("delay_usec","usec"),&_OS::delay_usec);
ClassDB::bind_method(_MD("delay_msec","msec"),&_OS::delay_msec);
ClassDB::bind_method(_MD("get_ticks_msec"),&_OS::get_ticks_msec);
ClassDB::bind_method(_MD("get_splash_tick_msec"),&_OS::get_splash_tick_msec);
ClassDB::bind_method(_MD("get_locale"),&_OS::get_locale);
ClassDB::bind_method(_MD("get_latin_keyboard_variant"),&_OS::get_latin_keyboard_variant);
ClassDB::bind_method(_MD("get_model_name"),&_OS::get_model_name);
ClassDB::bind_method(D_METHOD("delay_usec","usec"),&_OS::delay_usec);
ClassDB::bind_method(D_METHOD("delay_msec","msec"),&_OS::delay_msec);
ClassDB::bind_method(D_METHOD("get_ticks_msec"),&_OS::get_ticks_msec);
ClassDB::bind_method(D_METHOD("get_splash_tick_msec"),&_OS::get_splash_tick_msec);
ClassDB::bind_method(D_METHOD("get_locale"),&_OS::get_locale);
ClassDB::bind_method(D_METHOD("get_latin_keyboard_variant"),&_OS::get_latin_keyboard_variant);
ClassDB::bind_method(D_METHOD("get_model_name"),&_OS::get_model_name);
ClassDB::bind_method(_MD("can_draw"),&_OS::can_draw);
ClassDB::bind_method(_MD("is_stdout_verbose"),&_OS::is_stdout_verbose);
ClassDB::bind_method(D_METHOD("can_draw"),&_OS::can_draw);
ClassDB::bind_method(D_METHOD("is_stdout_verbose"),&_OS::is_stdout_verbose);
ClassDB::bind_method(_MD("can_use_threads"),&_OS::can_use_threads);
ClassDB::bind_method(D_METHOD("can_use_threads"),&_OS::can_use_threads);
ClassDB::bind_method(_MD("is_debug_build"),&_OS::is_debug_build);
ClassDB::bind_method(D_METHOD("is_debug_build"),&_OS::is_debug_build);
//ClassDB::bind_method(_MD("get_mouse_button_state"),&_OS::get_mouse_button_state);
//ClassDB::bind_method(D_METHOD("get_mouse_button_state"),&_OS::get_mouse_button_state);
ClassDB::bind_method(_MD("dump_memory_to_file","file"),&_OS::dump_memory_to_file);
ClassDB::bind_method(_MD("dump_resources_to_file","file"),&_OS::dump_resources_to_file);
ClassDB::bind_method(_MD("has_virtual_keyboard"),&_OS::has_virtual_keyboard);
ClassDB::bind_method(_MD("show_virtual_keyboard", "existing_text"),&_OS::show_virtual_keyboard,DEFVAL(""));
ClassDB::bind_method(_MD("hide_virtual_keyboard"),&_OS::hide_virtual_keyboard);
ClassDB::bind_method(_MD("print_resources_in_use","short"),&_OS::print_resources_in_use,DEFVAL(false));
ClassDB::bind_method(_MD("print_all_resources","tofile"),&_OS::print_all_resources,DEFVAL(""));
ClassDB::bind_method(D_METHOD("dump_memory_to_file","file"),&_OS::dump_memory_to_file);
ClassDB::bind_method(D_METHOD("dump_resources_to_file","file"),&_OS::dump_resources_to_file);
ClassDB::bind_method(D_METHOD("has_virtual_keyboard"),&_OS::has_virtual_keyboard);
ClassDB::bind_method(D_METHOD("show_virtual_keyboard", "existing_text"),&_OS::show_virtual_keyboard,DEFVAL(""));
ClassDB::bind_method(D_METHOD("hide_virtual_keyboard"),&_OS::hide_virtual_keyboard);
ClassDB::bind_method(D_METHOD("print_resources_in_use","short"),&_OS::print_resources_in_use,DEFVAL(false));
ClassDB::bind_method(D_METHOD("print_all_resources","tofile"),&_OS::print_all_resources,DEFVAL(""));
ClassDB::bind_method(_MD("get_static_memory_usage"),&_OS::get_static_memory_usage);
ClassDB::bind_method(_MD("get_static_memory_peak_usage"),&_OS::get_static_memory_peak_usage);
ClassDB::bind_method(_MD("get_dynamic_memory_usage"),&_OS::get_dynamic_memory_usage);
ClassDB::bind_method(D_METHOD("get_static_memory_usage"),&_OS::get_static_memory_usage);
ClassDB::bind_method(D_METHOD("get_static_memory_peak_usage"),&_OS::get_static_memory_peak_usage);
ClassDB::bind_method(D_METHOD("get_dynamic_memory_usage"),&_OS::get_dynamic_memory_usage);
ClassDB::bind_method(_MD("get_data_dir"),&_OS::get_data_dir);
ClassDB::bind_method(_MD("get_system_dir","dir"),&_OS::get_system_dir);
ClassDB::bind_method(_MD("get_unique_ID"),&_OS::get_unique_ID);
ClassDB::bind_method(D_METHOD("get_data_dir"),&_OS::get_data_dir);
ClassDB::bind_method(D_METHOD("get_system_dir","dir"),&_OS::get_system_dir);
ClassDB::bind_method(D_METHOD("get_unique_ID"),&_OS::get_unique_ID);
ClassDB::bind_method(_MD("is_ok_left_and_cancel_right"),&_OS::is_ok_left_and_cancel_right);
ClassDB::bind_method(D_METHOD("is_ok_left_and_cancel_right"),&_OS::is_ok_left_and_cancel_right);
ClassDB::bind_method(_MD("print_all_textures_by_size"),&_OS::print_all_textures_by_size);
ClassDB::bind_method(_MD("print_resources_by_type","types"),&_OS::print_resources_by_type);
ClassDB::bind_method(D_METHOD("print_all_textures_by_size"),&_OS::print_all_textures_by_size);
ClassDB::bind_method(D_METHOD("print_resources_by_type","types"),&_OS::print_resources_by_type);
ClassDB::bind_method(_MD("native_video_play","path","volume","audio_track","subtitle_track"),&_OS::native_video_play);
ClassDB::bind_method(_MD("native_video_is_playing"),&_OS::native_video_is_playing);
ClassDB::bind_method(_MD("native_video_stop"),&_OS::native_video_stop);
ClassDB::bind_method(_MD("native_video_pause"),&_OS::native_video_pause);
ClassDB::bind_method(_MD("native_video_unpause"),&_OS::native_video_unpause);
ClassDB::bind_method(D_METHOD("native_video_play","path","volume","audio_track","subtitle_track"),&_OS::native_video_play);
ClassDB::bind_method(D_METHOD("native_video_is_playing"),&_OS::native_video_is_playing);
ClassDB::bind_method(D_METHOD("native_video_stop"),&_OS::native_video_stop);
ClassDB::bind_method(D_METHOD("native_video_pause"),&_OS::native_video_pause);
ClassDB::bind_method(D_METHOD("native_video_unpause"),&_OS::native_video_unpause);
ClassDB::bind_method(_MD("get_scancode_string","code"),&_OS::get_scancode_string);
ClassDB::bind_method(_MD("is_scancode_unicode","code"),&_OS::is_scancode_unicode);
ClassDB::bind_method(_MD("find_scancode_from_string","string"),&_OS::find_scancode_from_string);
ClassDB::bind_method(D_METHOD("get_scancode_string","code"),&_OS::get_scancode_string);
ClassDB::bind_method(D_METHOD("is_scancode_unicode","code"),&_OS::is_scancode_unicode);
ClassDB::bind_method(D_METHOD("find_scancode_from_string","string"),&_OS::find_scancode_from_string);
ClassDB::bind_method(_MD("set_use_file_access_save_and_swap","enabled"),&_OS::set_use_file_access_save_and_swap);
ClassDB::bind_method(D_METHOD("set_use_file_access_save_and_swap","enabled"),&_OS::set_use_file_access_save_and_swap);
ClassDB::bind_method(_MD("alert","text","title"),&_OS::alert,DEFVAL("Alert!"));
ClassDB::bind_method(D_METHOD("alert","text","title"),&_OS::alert,DEFVAL("Alert!"));
ClassDB::bind_method(_MD("set_thread_name","name"),&_OS::set_thread_name);
ClassDB::bind_method(D_METHOD("set_thread_name","name"),&_OS::set_thread_name);
ClassDB::bind_method(_MD("set_use_vsync","enable"),&_OS::set_use_vsync);
ClassDB::bind_method(_MD("is_vsync_enabled"),&_OS::is_vsync_enabled);
ClassDB::bind_method(D_METHOD("set_use_vsync","enable"),&_OS::set_use_vsync);
ClassDB::bind_method(D_METHOD("is_vsync_enabled"),&_OS::is_vsync_enabled);
BIND_CONSTANT( DAY_SUNDAY );
BIND_CONSTANT( DAY_MONDAY );
@ -1333,29 +1333,29 @@ int _Geometry::get_uv84_normal_bit(const Vector3& p_vector) {
void _Geometry::_bind_methods() {
ClassDB::bind_method(_MD("build_box_planes","extents"),&_Geometry::build_box_planes);
ClassDB::bind_method(_MD("build_cylinder_planes","radius","height","sides","axis"),&_Geometry::build_cylinder_planes,DEFVAL(Vector3::AXIS_Z));
ClassDB::bind_method(_MD("build_capsule_planes","radius","height","sides","lats","axis"),&_Geometry::build_capsule_planes,DEFVAL(Vector3::AXIS_Z));
ClassDB::bind_method(_MD("segment_intersects_circle","segment_from","segment_to","circle_pos","circle_radius"),&_Geometry::segment_intersects_circle);
ClassDB::bind_method(_MD("segment_intersects_segment_2d","from_a","to_a","from_b","to_b"),&_Geometry::segment_intersects_segment_2d);
ClassDB::bind_method(D_METHOD("build_box_planes","extents"),&_Geometry::build_box_planes);
ClassDB::bind_method(D_METHOD("build_cylinder_planes","radius","height","sides","axis"),&_Geometry::build_cylinder_planes,DEFVAL(Vector3::AXIS_Z));
ClassDB::bind_method(D_METHOD("build_capsule_planes","radius","height","sides","lats","axis"),&_Geometry::build_capsule_planes,DEFVAL(Vector3::AXIS_Z));
ClassDB::bind_method(D_METHOD("segment_intersects_circle","segment_from","segment_to","circle_pos","circle_radius"),&_Geometry::segment_intersects_circle);
ClassDB::bind_method(D_METHOD("segment_intersects_segment_2d","from_a","to_a","from_b","to_b"),&_Geometry::segment_intersects_segment_2d);
ClassDB::bind_method(_MD("get_closest_points_between_segments_2d","p1","q1","p2","q2"),&_Geometry::get_closest_points_between_segments_2d);
ClassDB::bind_method(_MD("get_closest_points_between_segments","p1","p2","q1","q2"),&_Geometry::get_closest_points_between_segments);
ClassDB::bind_method(D_METHOD("get_closest_points_between_segments_2d","p1","q1","p2","q2"),&_Geometry::get_closest_points_between_segments_2d);
ClassDB::bind_method(D_METHOD("get_closest_points_between_segments","p1","p2","q1","q2"),&_Geometry::get_closest_points_between_segments);
ClassDB::bind_method(_MD("get_closest_point_to_segment","point","s1","s2"),&_Geometry::get_closest_point_to_segment);
ClassDB::bind_method(D_METHOD("get_closest_point_to_segment","point","s1","s2"),&_Geometry::get_closest_point_to_segment);
ClassDB::bind_method(_MD("get_uv84_normal_bit","normal"),&_Geometry::get_uv84_normal_bit);
ClassDB::bind_method(D_METHOD("get_uv84_normal_bit","normal"),&_Geometry::get_uv84_normal_bit);
ClassDB::bind_method(_MD("ray_intersects_triangle","from","dir","a","b","c"),&_Geometry::ray_intersects_triangle);
ClassDB::bind_method(_MD("segment_intersects_triangle","from","to","a","b","c"),&_Geometry::segment_intersects_triangle);
ClassDB::bind_method(_MD("segment_intersects_sphere","from","to","spos","sradius"),&_Geometry::segment_intersects_sphere);
ClassDB::bind_method(_MD("segment_intersects_cylinder","from","to","height","radius"),&_Geometry::segment_intersects_cylinder);
ClassDB::bind_method(_MD("segment_intersects_convex","from","to","planes"),&_Geometry::segment_intersects_convex);
ClassDB::bind_method(_MD("point_is_inside_triangle","point","a","b","c"),&_Geometry::point_is_inside_triangle);
ClassDB::bind_method(D_METHOD("ray_intersects_triangle","from","dir","a","b","c"),&_Geometry::ray_intersects_triangle);
ClassDB::bind_method(D_METHOD("segment_intersects_triangle","from","to","a","b","c"),&_Geometry::segment_intersects_triangle);
ClassDB::bind_method(D_METHOD("segment_intersects_sphere","from","to","spos","sradius"),&_Geometry::segment_intersects_sphere);
ClassDB::bind_method(D_METHOD("segment_intersects_cylinder","from","to","height","radius"),&_Geometry::segment_intersects_cylinder);
ClassDB::bind_method(D_METHOD("segment_intersects_convex","from","to","planes"),&_Geometry::segment_intersects_convex);
ClassDB::bind_method(D_METHOD("point_is_inside_triangle","point","a","b","c"),&_Geometry::point_is_inside_triangle);
ClassDB::bind_method(_MD("triangulate_polygon","polygon"),&_Geometry::triangulate_polygon);
ClassDB::bind_method(D_METHOD("triangulate_polygon","polygon"),&_Geometry::triangulate_polygon);
ClassDB::bind_method(_MD("make_atlas","sizes"),&_Geometry::make_atlas);
ClassDB::bind_method(D_METHOD("make_atlas","sizes"),&_Geometry::make_atlas);
}
@ -1735,52 +1735,52 @@ uint64_t _File::get_modified_time(const String &p_file) const {
void _File::_bind_methods() {
ClassDB::bind_method(_MD("open_encrypted","path","mode_flags","key"),&_File::open_encrypted);
ClassDB::bind_method(_MD("open_encrypted_with_pass","path","mode_flags","pass"),&_File::open_encrypted_pass);
ClassDB::bind_method(D_METHOD("open_encrypted","path","mode_flags","key"),&_File::open_encrypted);
ClassDB::bind_method(D_METHOD("open_encrypted_with_pass","path","mode_flags","pass"),&_File::open_encrypted_pass);
ClassDB::bind_method(_MD("open","path","flags"),&_File::open);
ClassDB::bind_method(_MD("close"),&_File::close);
ClassDB::bind_method(_MD("is_open"),&_File::is_open);
ClassDB::bind_method(_MD("seek","pos"),&_File::seek);
ClassDB::bind_method(_MD("seek_end","pos"),&_File::seek_end,DEFVAL(0));
ClassDB::bind_method(_MD("get_pos"),&_File::get_pos);
ClassDB::bind_method(_MD("get_len"),&_File::get_len);
ClassDB::bind_method(_MD("eof_reached"),&_File::eof_reached);
ClassDB::bind_method(_MD("get_8"),&_File::get_8);
ClassDB::bind_method(_MD("get_16"),&_File::get_16);
ClassDB::bind_method(_MD("get_32"),&_File::get_32);
ClassDB::bind_method(_MD("get_64"),&_File::get_64);
ClassDB::bind_method(_MD("get_float"),&_File::get_float);
ClassDB::bind_method(_MD("get_double"),&_File::get_double);
ClassDB::bind_method(_MD("get_real"),&_File::get_real);
ClassDB::bind_method(_MD("get_buffer","len"),&_File::get_buffer);
ClassDB::bind_method(_MD("get_line"),&_File::get_line);
ClassDB::bind_method(_MD("get_as_text"),&_File::get_as_text);
ClassDB::bind_method(_MD("get_md5","path"),&_File::get_md5);
ClassDB::bind_method(_MD("get_sha256","path"),&_File::get_sha256);
ClassDB::bind_method(_MD("get_endian_swap"),&_File::get_endian_swap);
ClassDB::bind_method(_MD("set_endian_swap","enable"),&_File::set_endian_swap);
ClassDB::bind_method(_MD("get_error:Error"),&_File::get_error);
ClassDB::bind_method(_MD("get_var"),&_File::get_var);
ClassDB::bind_method(_MD("get_csv_line","delim"),&_File::get_csv_line,DEFVAL(","));
ClassDB::bind_method(D_METHOD("open","path","flags"),&_File::open);
ClassDB::bind_method(D_METHOD("close"),&_File::close);
ClassDB::bind_method(D_METHOD("is_open"),&_File::is_open);
ClassDB::bind_method(D_METHOD("seek","pos"),&_File::seek);
ClassDB::bind_method(D_METHOD("seek_end","pos"),&_File::seek_end,DEFVAL(0));
ClassDB::bind_method(D_METHOD("get_pos"),&_File::get_pos);
ClassDB::bind_method(D_METHOD("get_len"),&_File::get_len);
ClassDB::bind_method(D_METHOD("eof_reached"),&_File::eof_reached);
ClassDB::bind_method(D_METHOD("get_8"),&_File::get_8);
ClassDB::bind_method(D_METHOD("get_16"),&_File::get_16);
ClassDB::bind_method(D_METHOD("get_32"),&_File::get_32);
ClassDB::bind_method(D_METHOD("get_64"),&_File::get_64);
ClassDB::bind_method(D_METHOD("get_float"),&_File::get_float);
ClassDB::bind_method(D_METHOD("get_double"),&_File::get_double);
ClassDB::bind_method(D_METHOD("get_real"),&_File::get_real);
ClassDB::bind_method(D_METHOD("get_buffer","len"),&_File::get_buffer);
ClassDB::bind_method(D_METHOD("get_line"),&_File::get_line);
ClassDB::bind_method(D_METHOD("get_as_text"),&_File::get_as_text);
ClassDB::bind_method(D_METHOD("get_md5","path"),&_File::get_md5);
ClassDB::bind_method(D_METHOD("get_sha256","path"),&_File::get_sha256);
ClassDB::bind_method(D_METHOD("get_endian_swap"),&_File::get_endian_swap);
ClassDB::bind_method(D_METHOD("set_endian_swap","enable"),&_File::set_endian_swap);
ClassDB::bind_method(D_METHOD("get_error:Error"),&_File::get_error);
ClassDB::bind_method(D_METHOD("get_var"),&_File::get_var);
ClassDB::bind_method(D_METHOD("get_csv_line","delim"),&_File::get_csv_line,DEFVAL(","));
ClassDB::bind_method(_MD("store_8","value"),&_File::store_8);
ClassDB::bind_method(_MD("store_16","value"),&_File::store_16);
ClassDB::bind_method(_MD("store_32","value"),&_File::store_32);
ClassDB::bind_method(_MD("store_64","value"),&_File::store_64);
ClassDB::bind_method(_MD("store_float","value"),&_File::store_float);
ClassDB::bind_method(_MD("store_double","value"),&_File::store_double);
ClassDB::bind_method(_MD("store_real","value"),&_File::store_real);
ClassDB::bind_method(_MD("store_buffer","buffer"),&_File::store_buffer);
ClassDB::bind_method(_MD("store_line","line"),&_File::store_line);
ClassDB::bind_method(_MD("store_string","string"),&_File::store_string);
ClassDB::bind_method(_MD("store_var","value"),&_File::store_var);
ClassDB::bind_method(D_METHOD("store_8","value"),&_File::store_8);
ClassDB::bind_method(D_METHOD("store_16","value"),&_File::store_16);
ClassDB::bind_method(D_METHOD("store_32","value"),&_File::store_32);
ClassDB::bind_method(D_METHOD("store_64","value"),&_File::store_64);
ClassDB::bind_method(D_METHOD("store_float","value"),&_File::store_float);
ClassDB::bind_method(D_METHOD("store_double","value"),&_File::store_double);
ClassDB::bind_method(D_METHOD("store_real","value"),&_File::store_real);
ClassDB::bind_method(D_METHOD("store_buffer","buffer"),&_File::store_buffer);
ClassDB::bind_method(D_METHOD("store_line","line"),&_File::store_line);
ClassDB::bind_method(D_METHOD("store_string","string"),&_File::store_string);
ClassDB::bind_method(D_METHOD("store_var","value"),&_File::store_var);
ClassDB::bind_method(_MD("store_pascal_string","string"),&_File::store_pascal_string);
ClassDB::bind_method(_MD("get_pascal_string"),&_File::get_pascal_string);
ClassDB::bind_method(D_METHOD("store_pascal_string","string"),&_File::store_pascal_string);
ClassDB::bind_method(D_METHOD("get_pascal_string"),&_File::get_pascal_string);
ClassDB::bind_method(_MD("file_exists","path"),&_File::file_exists);
ClassDB::bind_method(_MD("get_modified_time", "file"),&_File::get_modified_time);
ClassDB::bind_method(D_METHOD("file_exists","path"),&_File::file_exists);
ClassDB::bind_method(D_METHOD("get_modified_time", "file"),&_File::get_modified_time);
BIND_CONSTANT( READ );
BIND_CONSTANT( WRITE );
@ -1970,25 +1970,25 @@ Error _Directory::remove(String p_name){
void _Directory::_bind_methods() {
ClassDB::bind_method(_MD("open:Error","path"),&_Directory::open);
ClassDB::bind_method(_MD("list_dir_begin", "skip_navigational", "skip_hidden"), &_Directory::list_dir_begin, DEFVAL(false), DEFVAL(false));
ClassDB::bind_method(_MD("get_next"),&_Directory::get_next);
ClassDB::bind_method(_MD("current_is_dir"),&_Directory::current_is_dir);
ClassDB::bind_method(_MD("list_dir_end"),&_Directory::list_dir_end);
ClassDB::bind_method(_MD("get_drive_count"),&_Directory::get_drive_count);
ClassDB::bind_method(_MD("get_drive","idx"),&_Directory::get_drive);
ClassDB::bind_method(_MD("get_current_drive"),&_Directory::get_current_drive);
ClassDB::bind_method(_MD("change_dir:Error","todir"),&_Directory::change_dir);
ClassDB::bind_method(_MD("get_current_dir"),&_Directory::get_current_dir);
ClassDB::bind_method(_MD("make_dir:Error","path"),&_Directory::make_dir);
ClassDB::bind_method(_MD("make_dir_recursive:Error","path"),&_Directory::make_dir_recursive);
ClassDB::bind_method(_MD("file_exists","path"),&_Directory::file_exists);
ClassDB::bind_method(_MD("dir_exists","path"),&_Directory::dir_exists);
//ClassDB::bind_method(_MD("get_modified_time","file"),&_Directory::get_modified_time);
ClassDB::bind_method(_MD("get_space_left"),&_Directory::get_space_left);
ClassDB::bind_method(_MD("copy:Error","from","to"),&_Directory::copy);
ClassDB::bind_method(_MD("rename:Error","from","to"),&_Directory::rename);
ClassDB::bind_method(_MD("remove:Error","path"),&_Directory::remove);
ClassDB::bind_method(D_METHOD("open:Error","path"),&_Directory::open);
ClassDB::bind_method(D_METHOD("list_dir_begin", "skip_navigational", "skip_hidden"), &_Directory::list_dir_begin, DEFVAL(false), DEFVAL(false));
ClassDB::bind_method(D_METHOD("get_next"),&_Directory::get_next);
ClassDB::bind_method(D_METHOD("current_is_dir"),&_Directory::current_is_dir);
ClassDB::bind_method(D_METHOD("list_dir_end"),&_Directory::list_dir_end);
ClassDB::bind_method(D_METHOD("get_drive_count"),&_Directory::get_drive_count);
ClassDB::bind_method(D_METHOD("get_drive","idx"),&_Directory::get_drive);
ClassDB::bind_method(D_METHOD("get_current_drive"),&_Directory::get_current_drive);
ClassDB::bind_method(D_METHOD("change_dir:Error","todir"),&_Directory::change_dir);
ClassDB::bind_method(D_METHOD("get_current_dir"),&_Directory::get_current_dir);
ClassDB::bind_method(D_METHOD("make_dir:Error","path"),&_Directory::make_dir);
ClassDB::bind_method(D_METHOD("make_dir_recursive:Error","path"),&_Directory::make_dir_recursive);
ClassDB::bind_method(D_METHOD("file_exists","path"),&_Directory::file_exists);
ClassDB::bind_method(D_METHOD("dir_exists","path"),&_Directory::dir_exists);
//ClassDB::bind_method(D_METHOD("get_modified_time","file"),&_Directory::get_modified_time);
ClassDB::bind_method(D_METHOD("get_space_left"),&_Directory::get_space_left);
ClassDB::bind_method(D_METHOD("copy:Error","from","to"),&_Directory::copy);
ClassDB::bind_method(D_METHOD("rename:Error","from","to"),&_Directory::rename);
ClassDB::bind_method(D_METHOD("remove:Error","path"),&_Directory::remove);
}
@ -2128,14 +2128,14 @@ String _Marshalls::base64_to_utf8(const String& p_str) {
void _Marshalls::_bind_methods() {
ClassDB::bind_method(_MD("variant_to_base64:String","variant"),&_Marshalls::variant_to_base64);
ClassDB::bind_method(_MD("base64_to_variant:Variant","base64_str"),&_Marshalls::base64_to_variant);
ClassDB::bind_method(D_METHOD("variant_to_base64:String","variant"),&_Marshalls::variant_to_base64);
ClassDB::bind_method(D_METHOD("base64_to_variant:Variant","base64_str"),&_Marshalls::base64_to_variant);
ClassDB::bind_method(_MD("raw_to_base64:String","array"),&_Marshalls::raw_to_base64);
ClassDB::bind_method(_MD("base64_to_raw:RawArray","base64_str"),&_Marshalls::base64_to_raw);
ClassDB::bind_method(D_METHOD("raw_to_base64:String","array"),&_Marshalls::raw_to_base64);
ClassDB::bind_method(D_METHOD("base64_to_raw:RawArray","base64_str"),&_Marshalls::base64_to_raw);
ClassDB::bind_method(_MD("utf8_to_base64:String","utf8_str"),&_Marshalls::utf8_to_base64);
ClassDB::bind_method(_MD("base64_to_utf8:String","base64_str"),&_Marshalls::base64_to_utf8);
ClassDB::bind_method(D_METHOD("utf8_to_base64:String","utf8_str"),&_Marshalls::utf8_to_base64);
ClassDB::bind_method(D_METHOD("base64_to_utf8:String","base64_str"),&_Marshalls::base64_to_utf8);
};
@ -2159,8 +2159,8 @@ Error _Semaphore::post() {
void _Semaphore::_bind_methods() {
ClassDB::bind_method(_MD("wait:Error"),&_Semaphore::wait);
ClassDB::bind_method(_MD("post:Error"),&_Semaphore::post);
ClassDB::bind_method(D_METHOD("wait:Error"),&_Semaphore::wait);
ClassDB::bind_method(D_METHOD("post:Error"),&_Semaphore::post);
}
@ -2196,9 +2196,9 @@ void _Mutex::unlock(){
void _Mutex::_bind_methods() {
ClassDB::bind_method(_MD("lock"),&_Mutex::lock);
ClassDB::bind_method(_MD("try_lock:Error"),&_Mutex::try_lock);
ClassDB::bind_method(_MD("unlock"),&_Mutex::unlock);
ClassDB::bind_method(D_METHOD("lock"),&_Mutex::lock);
ClassDB::bind_method(D_METHOD("try_lock:Error"),&_Mutex::try_lock);
ClassDB::bind_method(D_METHOD("unlock"),&_Mutex::unlock);
}
@ -2318,10 +2318,10 @@ Variant _Thread::wait_to_finish() {
void _Thread::_bind_methods() {
ClassDB::bind_method(_MD("start:Error","instance","method","userdata","priority"),&_Thread::start,DEFVAL(Variant()),DEFVAL(PRIORITY_NORMAL));
ClassDB::bind_method(_MD("get_id"),&_Thread::get_id);
ClassDB::bind_method(_MD("is_active"),&_Thread::is_active);
ClassDB::bind_method(_MD("wait_to_finish:Variant"),&_Thread::wait_to_finish);
ClassDB::bind_method(D_METHOD("start:Error","instance","method","userdata","priority"),&_Thread::start,DEFVAL(Variant()),DEFVAL(PRIORITY_NORMAL));
ClassDB::bind_method(D_METHOD("get_id"),&_Thread::get_id);
ClassDB::bind_method(D_METHOD("is_active"),&_Thread::is_active);
ClassDB::bind_method(D_METHOD("wait_to_finish:Variant"),&_Thread::wait_to_finish);
BIND_CONSTANT( PRIORITY_LOW );
BIND_CONSTANT( PRIORITY_NORMAL );
@ -2506,31 +2506,31 @@ bool _ClassDB::is_class_enabled(StringName p_class) const {
void _ClassDB::_bind_methods() {
ClassDB::bind_method(_MD("get_class_list"),&_ClassDB::get_class_list);
ClassDB::bind_method(_MD("get_inheriters_from_class","class"),&_ClassDB::get_inheriters_from_class);
ClassDB::bind_method(_MD("get_parent_class","class"),&_ClassDB::get_parent_class);
ClassDB::bind_method(_MD("class_exists","class"),&_ClassDB::class_exists);
ClassDB::bind_method(_MD("is_parent_class","class","inherits"),&_ClassDB::is_parent_class);
ClassDB::bind_method(_MD("can_instance","class"),&_ClassDB::can_instance);
ClassDB::bind_method(_MD("instance:Variant","class"),&_ClassDB::instance);
ClassDB::bind_method(D_METHOD("get_class_list"),&_ClassDB::get_class_list);
ClassDB::bind_method(D_METHOD("get_inheriters_from_class","class"),&_ClassDB::get_inheriters_from_class);
ClassDB::bind_method(D_METHOD("get_parent_class","class"),&_ClassDB::get_parent_class);
ClassDB::bind_method(D_METHOD("class_exists","class"),&_ClassDB::class_exists);
ClassDB::bind_method(D_METHOD("is_parent_class","class","inherits"),&_ClassDB::is_parent_class);
ClassDB::bind_method(D_METHOD("can_instance","class"),&_ClassDB::can_instance);
ClassDB::bind_method(D_METHOD("instance:Variant","class"),&_ClassDB::instance);
ClassDB::bind_method(_MD("class_has_signal","class","signal"),&_ClassDB::has_signal);
ClassDB::bind_method(_MD("class_get_signal","class","signal"),&_ClassDB::get_signal);
ClassDB::bind_method(_MD("class_get_signal_list","class","no_inheritance"),&_ClassDB::get_signal_list,DEFVAL(false));
ClassDB::bind_method(D_METHOD("class_has_signal","class","signal"),&_ClassDB::has_signal);
ClassDB::bind_method(D_METHOD("class_get_signal","class","signal"),&_ClassDB::get_signal);
ClassDB::bind_method(D_METHOD("class_get_signal_list","class","no_inheritance"),&_ClassDB::get_signal_list,DEFVAL(false));
ClassDB::bind_method(_MD("class_get_property_list","class","no_inheritance"),&_ClassDB::get_property_list,DEFVAL(false));
ClassDB::bind_method(D_METHOD("class_get_property_list","class","no_inheritance"),&_ClassDB::get_property_list,DEFVAL(false));
ClassDB::bind_method(_MD("class_has_method","class","method","no_inheritance"),&_ClassDB::has_method,DEFVAL(false));
ClassDB::bind_method(D_METHOD("class_has_method","class","method","no_inheritance"),&_ClassDB::has_method,DEFVAL(false));
ClassDB::bind_method(_MD("class_get_method_list","class","no_inheritance"),&_ClassDB::get_method_list,DEFVAL(false));
ClassDB::bind_method(D_METHOD("class_get_method_list","class","no_inheritance"),&_ClassDB::get_method_list,DEFVAL(false));
ClassDB::bind_method(_MD("class_get_integer_constant_list","class","no_inheritance"),&_ClassDB::get_integer_constant_list,DEFVAL(false));
ClassDB::bind_method(D_METHOD("class_get_integer_constant_list","class","no_inheritance"),&_ClassDB::get_integer_constant_list,DEFVAL(false));
ClassDB::bind_method(_MD("class_has_integer_constant","class","name"),&_ClassDB::has_integer_constant);
ClassDB::bind_method(_MD("class_get_integer_constant","class","name"),&_ClassDB::get_integer_constant);
ClassDB::bind_method(D_METHOD("class_has_integer_constant","class","name"),&_ClassDB::has_integer_constant);
ClassDB::bind_method(D_METHOD("class_get_integer_constant","class","name"),&_ClassDB::get_integer_constant);
ClassDB::bind_method(_MD("class_get_category","class"),&_ClassDB::get_category);
ClassDB::bind_method(_MD("is_class_enabled","class"),&_ClassDB::is_class_enabled);
ClassDB::bind_method(D_METHOD("class_get_category","class"),&_ClassDB::get_category);
ClassDB::bind_method(D_METHOD("is_class_enabled","class"),&_ClassDB::is_class_enabled);
}
@ -2604,22 +2604,22 @@ Dictionary _Engine::get_version_info() const {
void _Engine::_bind_methods() {
ClassDB::bind_method(_MD("set_iterations_per_second","iterations_per_second"),&_Engine::set_iterations_per_second);
ClassDB::bind_method(_MD("get_iterations_per_second"),&_Engine::get_iterations_per_second);
ClassDB::bind_method(_MD("set_target_fps","target_fps"),&_Engine::set_target_fps);
ClassDB::bind_method(_MD("get_target_fps"),&_Engine::get_target_fps);
ClassDB::bind_method(D_METHOD("set_iterations_per_second","iterations_per_second"),&_Engine::set_iterations_per_second);
ClassDB::bind_method(D_METHOD("get_iterations_per_second"),&_Engine::get_iterations_per_second);
ClassDB::bind_method(D_METHOD("set_target_fps","target_fps"),&_Engine::set_target_fps);
ClassDB::bind_method(D_METHOD("get_target_fps"),&_Engine::get_target_fps);
ClassDB::bind_method(_MD("set_time_scale","time_scale"),&_Engine::set_time_scale);
ClassDB::bind_method(_MD("get_time_scale"),&_Engine::get_time_scale);
ClassDB::bind_method(D_METHOD("set_time_scale","time_scale"),&_Engine::set_time_scale);
ClassDB::bind_method(D_METHOD("get_time_scale"),&_Engine::get_time_scale);
ClassDB::bind_method(_MD("get_custom_level"),&_Engine::get_custom_level);
ClassDB::bind_method(D_METHOD("get_custom_level"),&_Engine::get_custom_level);
ClassDB::bind_method(_MD("get_frames_drawn"),&_Engine::get_frames_drawn);
ClassDB::bind_method(_MD("get_frames_per_second"),&_Engine::get_frames_per_second);
ClassDB::bind_method(D_METHOD("get_frames_drawn"),&_Engine::get_frames_drawn);
ClassDB::bind_method(D_METHOD("get_frames_per_second"),&_Engine::get_frames_per_second);
ClassDB::bind_method(_MD("get_main_loop:MainLoop"),&_Engine::get_main_loop);
ClassDB::bind_method(D_METHOD("get_main_loop:MainLoop"),&_Engine::get_main_loop);
ClassDB::bind_method(_MD("get_version_info"),&_Engine::get_version_info);
ClassDB::bind_method(D_METHOD("get_version_info"),&_Engine::get_version_info);
}

View file

@ -47,14 +47,14 @@
ParamDef::ParamDef(const Variant& p_variant) { used=true; val=p_variant; }
MethodDefinition _MD(const char* p_name) {
MethodDefinition D_METHOD(const char* p_name) {
MethodDefinition md;
md.name=StaticCString::create(p_name);
return md;
}
MethodDefinition _MD(const char* p_name,const char *p_arg1) {
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1) {
MethodDefinition md;
md.name=StaticCString::create(p_name);
@ -62,7 +62,7 @@ MethodDefinition _MD(const char* p_name,const char *p_arg1) {
return md;
}
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2) {
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2) {
MethodDefinition md;
md.name=StaticCString::create(p_name);
@ -72,7 +72,7 @@ MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2) {
return md;
}
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3) {
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3) {
MethodDefinition md;
md.name=StaticCString::create(p_name);
@ -83,7 +83,7 @@ MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,co
return md;
}
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4) {
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4) {
MethodDefinition md;
md.name=StaticCString::create(p_name);
@ -95,7 +95,7 @@ MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,co
return md;
}
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5) {
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5) {
MethodDefinition md;
md.name=StaticCString::create(p_name);
@ -109,7 +109,7 @@ MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,co
}
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6) {
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6) {
MethodDefinition md;
md.name=StaticCString::create(p_name);
@ -123,7 +123,7 @@ MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,co
return md;
}
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6,const char *p_arg7) {
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6,const char *p_arg7) {
MethodDefinition md;
md.name=StaticCString::create(p_name);
@ -138,7 +138,7 @@ MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,co
return md;
}
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6,const char *p_arg7,const char *p_arg8) {
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6,const char *p_arg7,const char *p_arg8) {
MethodDefinition md;
md.name=StaticCString::create(p_name);
@ -154,7 +154,7 @@ MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,co
return md;
}
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6,const char *p_arg7,const char *p_arg8,const char *p_arg9) {
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6,const char *p_arg7,const char *p_arg8,const char *p_arg9) {
MethodDefinition md;
md.name=StaticCString::create(p_name);
@ -171,7 +171,7 @@ MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,co
return md;
}
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6,const char *p_arg7,const char *p_arg8,const char *p_arg9,const char *p_arg10) {
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6,const char *p_arg7,const char *p_arg8,const char *p_arg9,const char *p_arg10) {
MethodDefinition md;
md.name=StaticCString::create(p_name);

View file

@ -81,17 +81,17 @@ struct MethodDefinition {
MethodDefinition _MD(const char* p_name);
MethodDefinition _MD(const char* p_name,const char *p_arg1);
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2);
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3);
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4);
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5);
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6);
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6,const char *p_arg7);
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6,const char *p_arg7,const char *p_arg8);
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6,const char *p_arg7,const char *p_arg8,const char *p_arg9);
MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6,const char *p_arg7,const char *p_arg8,const char *p_arg9,const char *p_arg10);
MethodDefinition D_METHOD(const char* p_name);
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1);
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2);
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3);
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4);
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5);
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6);
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6,const char *p_arg7);
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6,const char *p_arg7,const char *p_arg8);
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6,const char *p_arg7,const char *p_arg8,const char *p_arg9);
MethodDefinition D_METHOD(const char* p_name,const char *p_arg1,const char *p_arg2,const char *p_arg3,const char *p_arg4,const char *p_arg5,const char *p_arg6,const char *p_arg7,const char *p_arg8,const char *p_arg9,const char *p_arg10);
#else
@ -99,11 +99,13 @@ MethodDefinition _MD(const char* p_name,const char *p_arg1,const char *p_arg2,co
#ifdef NO_VARIADIC_MACROS
static _FORCE_INLINE_ const char* _MD(const char* m_name, ...) { return m_name; }
static _FORCE_INLINE_ const char* D_METHOD(const char* m_name, ...) { return m_name; }
#else
#define _MD(m_c, ...) m_c
// When DEBUG_METHODS_ENABLED is set this will let the engine know
// the argument names for easier debugging.
#define D_METHOD(m_c, ...) m_c
#endif

View file

@ -527,7 +527,7 @@ void PHashTranslation::_get_property_list( List<PropertyInfo> *p_list) const{
}
void PHashTranslation::_bind_methods() {
ClassDB::bind_method(_MD("generate","from:Translation"),&PHashTranslation::generate);
ClassDB::bind_method(D_METHOD("generate","from:Translation"),&PHashTranslation::generate);
}
PHashTranslation::PHashTranslation()

View file

@ -65,8 +65,8 @@ void FuncRef::_bind_methods() {
}
ClassDB::bind_method(_MD("set_instance","instance"),&FuncRef::set_instance);
ClassDB::bind_method(_MD("set_function","name"),&FuncRef::set_function);
ClassDB::bind_method(D_METHOD("set_instance","instance"),&FuncRef::set_instance);
ClassDB::bind_method(D_METHOD("set_function","name"),&FuncRef::set_function);
}

View file

@ -900,22 +900,22 @@ Variant GlobalConfig::property_get_revert(const String& p_name) {
void GlobalConfig::_bind_methods() {
ClassDB::bind_method(_MD("has","name"),&GlobalConfig::has);
ClassDB::bind_method(_MD("set_order","name","pos"),&GlobalConfig::set_order);
ClassDB::bind_method(_MD("get_order","name"),&GlobalConfig::get_order);
ClassDB::bind_method(_MD("set_initial_value","name","value"),&GlobalConfig::set_initial_value);
ClassDB::bind_method(_MD("add_property_info", "hint"),&GlobalConfig::_add_property_info_bind);
ClassDB::bind_method(_MD("clear","name"),&GlobalConfig::clear);
ClassDB::bind_method(_MD("localize_path","path"),&GlobalConfig::localize_path);
ClassDB::bind_method(_MD("globalize_path","path"),&GlobalConfig::globalize_path);
ClassDB::bind_method(_MD("save"),&GlobalConfig::save);
ClassDB::bind_method(_MD("has_singleton","name"),&GlobalConfig::has_singleton);
ClassDB::bind_method(_MD("get_singleton","name"),&GlobalConfig::get_singleton_object);
ClassDB::bind_method(_MD("load_resource_pack","pack"),&GlobalConfig::_load_resource_pack);
ClassDB::bind_method(_MD("property_can_revert","name"),&GlobalConfig::property_can_revert);
ClassDB::bind_method(_MD("property_get_revert","name"),&GlobalConfig::property_get_revert);
ClassDB::bind_method(D_METHOD("has","name"),&GlobalConfig::has);
ClassDB::bind_method(D_METHOD("set_order","name","pos"),&GlobalConfig::set_order);
ClassDB::bind_method(D_METHOD("get_order","name"),&GlobalConfig::get_order);
ClassDB::bind_method(D_METHOD("set_initial_value","name","value"),&GlobalConfig::set_initial_value);
ClassDB::bind_method(D_METHOD("add_property_info", "hint"),&GlobalConfig::_add_property_info_bind);
ClassDB::bind_method(D_METHOD("clear","name"),&GlobalConfig::clear);
ClassDB::bind_method(D_METHOD("localize_path","path"),&GlobalConfig::localize_path);
ClassDB::bind_method(D_METHOD("globalize_path","path"),&GlobalConfig::globalize_path);
ClassDB::bind_method(D_METHOD("save"),&GlobalConfig::save);
ClassDB::bind_method(D_METHOD("has_singleton","name"),&GlobalConfig::has_singleton);
ClassDB::bind_method(D_METHOD("get_singleton","name"),&GlobalConfig::get_singleton_object);
ClassDB::bind_method(D_METHOD("load_resource_pack","pack"),&GlobalConfig::_load_resource_pack);
ClassDB::bind_method(D_METHOD("property_can_revert","name"),&GlobalConfig::property_can_revert);
ClassDB::bind_method(D_METHOD("property_get_revert","name"),&GlobalConfig::property_get_revert);
ClassDB::bind_method(_MD("save_custom","file"),&GlobalConfig::_save_custom_bnd);
ClassDB::bind_method(D_METHOD("save_custom","file"),&GlobalConfig::_save_custom_bnd);
}

View file

@ -35,19 +35,19 @@ InputMap *InputMap::singleton=NULL;
void InputMap::_bind_methods() {
ClassDB::bind_method(_MD("has_action","action"),&InputMap::has_action);
ClassDB::bind_method(_MD("get_action_id","action"),&InputMap::get_action_id);
ClassDB::bind_method(_MD("get_action_from_id","id"),&InputMap::get_action_from_id);
ClassDB::bind_method(_MD("get_actions"),&InputMap::_get_actions);
ClassDB::bind_method(_MD("add_action","action"),&InputMap::add_action);
ClassDB::bind_method(_MD("erase_action","action"),&InputMap::erase_action);
ClassDB::bind_method(D_METHOD("has_action","action"),&InputMap::has_action);
ClassDB::bind_method(D_METHOD("get_action_id","action"),&InputMap::get_action_id);
ClassDB::bind_method(D_METHOD("get_action_from_id","id"),&InputMap::get_action_from_id);
ClassDB::bind_method(D_METHOD("get_actions"),&InputMap::_get_actions);
ClassDB::bind_method(D_METHOD("add_action","action"),&InputMap::add_action);
ClassDB::bind_method(D_METHOD("erase_action","action"),&InputMap::erase_action);
ClassDB::bind_method(_MD("action_add_event","action","event"),&InputMap::action_add_event);
ClassDB::bind_method(_MD("action_has_event","action","event"),&InputMap::action_has_event);
ClassDB::bind_method(_MD("action_erase_event","action","event"),&InputMap::action_erase_event);
ClassDB::bind_method(_MD("get_action_list","action"),&InputMap::_get_action_list);
ClassDB::bind_method(_MD("event_is_action","event","action"),&InputMap::event_is_action);
ClassDB::bind_method(_MD("load_from_globals"),&InputMap::load_from_globals);
ClassDB::bind_method(D_METHOD("action_add_event","action","event"),&InputMap::action_add_event);
ClassDB::bind_method(D_METHOD("action_has_event","action","event"),&InputMap::action_has_event);
ClassDB::bind_method(D_METHOD("action_erase_event","action","event"),&InputMap::action_erase_event);
ClassDB::bind_method(D_METHOD("get_action_list","action"),&InputMap::_get_action_list);
ClassDB::bind_method(D_METHOD("event_is_action","event","action"),&InputMap::event_is_action);
ClassDB::bind_method(D_METHOD("load_from_globals"),&InputMap::load_from_globals);
}

View file

@ -209,19 +209,19 @@ Error ConfigFile::load(const String& p_path) {
void ConfigFile::_bind_methods(){
ClassDB::bind_method(_MD("set_value","section","key","value"),&ConfigFile::set_value);
ClassDB::bind_method(_MD("get_value:Variant","section","key","default"),&ConfigFile::get_value,DEFVAL(Variant()));
ClassDB::bind_method(D_METHOD("set_value","section","key","value"),&ConfigFile::set_value);
ClassDB::bind_method(D_METHOD("get_value:Variant","section","key","default"),&ConfigFile::get_value,DEFVAL(Variant()));
ClassDB::bind_method(_MD("has_section","section"),&ConfigFile::has_section);
ClassDB::bind_method(_MD("has_section_key","section","key"),&ConfigFile::has_section_key);
ClassDB::bind_method(D_METHOD("has_section","section"),&ConfigFile::has_section);
ClassDB::bind_method(D_METHOD("has_section_key","section","key"),&ConfigFile::has_section_key);
ClassDB::bind_method(_MD("get_sections"),&ConfigFile::_get_sections);
ClassDB::bind_method(_MD("get_section_keys","section"),&ConfigFile::_get_section_keys);
ClassDB::bind_method(D_METHOD("get_sections"),&ConfigFile::_get_sections);
ClassDB::bind_method(D_METHOD("get_section_keys","section"),&ConfigFile::_get_section_keys);
ClassDB::bind_method(_MD("erase_section","section"),&ConfigFile::erase_section);
ClassDB::bind_method(D_METHOD("erase_section","section"),&ConfigFile::erase_section);
ClassDB::bind_method(_MD("load:Error","path"),&ConfigFile::load);
ClassDB::bind_method(_MD("save:Error","path"),&ConfigFile::save);
ClassDB::bind_method(D_METHOD("load:Error","path"),&ConfigFile::load);
ClassDB::bind_method(D_METHOD("save:Error","path"),&ConfigFile::save);
}

View file

@ -636,31 +636,31 @@ Error HTTPClient::_get_http_data(uint8_t* p_buffer, int p_bytes,int &r_received)
void HTTPClient::_bind_methods() {
ClassDB::bind_method(_MD("connect_to_host:Error","host","port","use_ssl","verify_host"),&HTTPClient::connect_to_host,DEFVAL(false),DEFVAL(true));
ClassDB::bind_method(_MD("set_connection","connection:StreamPeer"),&HTTPClient::set_connection);
ClassDB::bind_method(_MD("get_connection:StreamPeer"),&HTTPClient::get_connection);
ClassDB::bind_method(_MD("request_raw","method","url","headers","body"),&HTTPClient::request_raw);
ClassDB::bind_method(_MD("request","method","url","headers","body"),&HTTPClient::request,DEFVAL(String()));
ClassDB::bind_method(_MD("send_body_text","body"),&HTTPClient::send_body_text);
ClassDB::bind_method(_MD("send_body_data","body"),&HTTPClient::send_body_data);
ClassDB::bind_method(_MD("close"),&HTTPClient::close);
ClassDB::bind_method(D_METHOD("connect_to_host:Error","host","port","use_ssl","verify_host"),&HTTPClient::connect_to_host,DEFVAL(false),DEFVAL(true));
ClassDB::bind_method(D_METHOD("set_connection","connection:StreamPeer"),&HTTPClient::set_connection);
ClassDB::bind_method(D_METHOD("get_connection:StreamPeer"),&HTTPClient::get_connection);
ClassDB::bind_method(D_METHOD("request_raw","method","url","headers","body"),&HTTPClient::request_raw);
ClassDB::bind_method(D_METHOD("request","method","url","headers","body"),&HTTPClient::request,DEFVAL(String()));
ClassDB::bind_method(D_METHOD("send_body_text","body"),&HTTPClient::send_body_text);
ClassDB::bind_method(D_METHOD("send_body_data","body"),&HTTPClient::send_body_data);
ClassDB::bind_method(D_METHOD("close"),&HTTPClient::close);
ClassDB::bind_method(_MD("has_response"),&HTTPClient::has_response);
ClassDB::bind_method(_MD("is_response_chunked"),&HTTPClient::is_response_chunked);
ClassDB::bind_method(_MD("get_response_code"),&HTTPClient::get_response_code);
ClassDB::bind_method(_MD("get_response_headers"),&HTTPClient::_get_response_headers);
ClassDB::bind_method(_MD("get_response_headers_as_dictionary"),&HTTPClient::_get_response_headers_as_dictionary);
ClassDB::bind_method(_MD("get_response_body_length"),&HTTPClient::get_response_body_length);
ClassDB::bind_method(_MD("read_response_body_chunk"),&HTTPClient::read_response_body_chunk);
ClassDB::bind_method(_MD("set_read_chunk_size","bytes"),&HTTPClient::set_read_chunk_size);
ClassDB::bind_method(D_METHOD("has_response"),&HTTPClient::has_response);
ClassDB::bind_method(D_METHOD("is_response_chunked"),&HTTPClient::is_response_chunked);
ClassDB::bind_method(D_METHOD("get_response_code"),&HTTPClient::get_response_code);
ClassDB::bind_method(D_METHOD("get_response_headers"),&HTTPClient::_get_response_headers);
ClassDB::bind_method(D_METHOD("get_response_headers_as_dictionary"),&HTTPClient::_get_response_headers_as_dictionary);
ClassDB::bind_method(D_METHOD("get_response_body_length"),&HTTPClient::get_response_body_length);
ClassDB::bind_method(D_METHOD("read_response_body_chunk"),&HTTPClient::read_response_body_chunk);
ClassDB::bind_method(D_METHOD("set_read_chunk_size","bytes"),&HTTPClient::set_read_chunk_size);
ClassDB::bind_method(_MD("set_blocking_mode","enabled"),&HTTPClient::set_blocking_mode);
ClassDB::bind_method(_MD("is_blocking_mode_enabled"),&HTTPClient::is_blocking_mode_enabled);
ClassDB::bind_method(D_METHOD("set_blocking_mode","enabled"),&HTTPClient::set_blocking_mode);
ClassDB::bind_method(D_METHOD("is_blocking_mode_enabled"),&HTTPClient::is_blocking_mode_enabled);
ClassDB::bind_method(_MD("get_status"),&HTTPClient::get_status);
ClassDB::bind_method(_MD("poll:Error"),&HTTPClient::poll);
ClassDB::bind_method(D_METHOD("get_status"),&HTTPClient::get_status);
ClassDB::bind_method(D_METHOD("poll:Error"),&HTTPClient::poll);
ClassDB::bind_method(_MD("query_string_from_dict:String","fields"),&HTTPClient::query_string_from_dict);
ClassDB::bind_method(D_METHOD("query_string_from_dict:String","fields"),&HTTPClient::query_string_from_dict);
BIND_CONSTANT( METHOD_GET );

View file

@ -218,13 +218,13 @@ Array IP::_get_local_addresses() const {
void IP::_bind_methods() {
ClassDB::bind_method(_MD("resolve_hostname","host","ip_type"),&IP::resolve_hostname,DEFVAL(IP::TYPE_ANY));
ClassDB::bind_method(_MD("resolve_hostname_queue_item","host","ip_type"),&IP::resolve_hostname_queue_item,DEFVAL(IP::TYPE_ANY));
ClassDB::bind_method(_MD("get_resolve_item_status","id"),&IP::get_resolve_item_status);
ClassDB::bind_method(_MD("get_resolve_item_address","id"),&IP::get_resolve_item_address);
ClassDB::bind_method(_MD("erase_resolve_item","id"),&IP::erase_resolve_item);
ClassDB::bind_method(_MD("get_local_addresses"),&IP::_get_local_addresses);
ClassDB::bind_method(_MD("clear_cache"),&IP::clear_cache, DEFVAL(""));
ClassDB::bind_method(D_METHOD("resolve_hostname","host","ip_type"),&IP::resolve_hostname,DEFVAL(IP::TYPE_ANY));
ClassDB::bind_method(D_METHOD("resolve_hostname_queue_item","host","ip_type"),&IP::resolve_hostname_queue_item,DEFVAL(IP::TYPE_ANY));
ClassDB::bind_method(D_METHOD("get_resolve_item_status","id"),&IP::get_resolve_item_status);
ClassDB::bind_method(D_METHOD("get_resolve_item_address","id"),&IP::get_resolve_item_address);
ClassDB::bind_method(D_METHOD("erase_resolve_item","id"),&IP::erase_resolve_item);
ClassDB::bind_method(D_METHOD("get_local_addresses"),&IP::_get_local_addresses);
ClassDB::bind_method(D_METHOD("clear_cache"),&IP::clear_cache, DEFVAL(""));
BIND_CONSTANT( RESOLVER_STATUS_NONE );
BIND_CONSTANT( RESOLVER_STATUS_WAITING );

View file

@ -31,18 +31,18 @@
void NetworkedMultiplayerPeer::_bind_methods() {
ClassDB::bind_method(_MD("set_transfer_mode","mode"), &NetworkedMultiplayerPeer::set_transfer_mode );
ClassDB::bind_method(_MD("set_target_peer","id"), &NetworkedMultiplayerPeer::set_target_peer );
ClassDB::bind_method(D_METHOD("set_transfer_mode","mode"), &NetworkedMultiplayerPeer::set_transfer_mode );
ClassDB::bind_method(D_METHOD("set_target_peer","id"), &NetworkedMultiplayerPeer::set_target_peer );
ClassDB::bind_method(_MD("get_packet_peer"), &NetworkedMultiplayerPeer::get_packet_peer );
ClassDB::bind_method(D_METHOD("get_packet_peer"), &NetworkedMultiplayerPeer::get_packet_peer );
ClassDB::bind_method(_MD("poll"), &NetworkedMultiplayerPeer::poll );
ClassDB::bind_method(D_METHOD("poll"), &NetworkedMultiplayerPeer::poll );
ClassDB::bind_method(_MD("get_connection_status"), &NetworkedMultiplayerPeer::get_connection_status );
ClassDB::bind_method(_MD("get_unique_id"), &NetworkedMultiplayerPeer::get_unique_id );
ClassDB::bind_method(D_METHOD("get_connection_status"), &NetworkedMultiplayerPeer::get_connection_status );
ClassDB::bind_method(D_METHOD("get_unique_id"), &NetworkedMultiplayerPeer::get_unique_id );
ClassDB::bind_method(_MD("set_refuse_new_connections","enable"), &NetworkedMultiplayerPeer::set_refuse_new_connections );
ClassDB::bind_method(_MD("is_refusing_new_connections"), &NetworkedMultiplayerPeer::is_refusing_new_connections );
ClassDB::bind_method(D_METHOD("set_refuse_new_connections","enable"), &NetworkedMultiplayerPeer::set_refuse_new_connections );
ClassDB::bind_method(D_METHOD("is_refusing_new_connections"), &NetworkedMultiplayerPeer::is_refusing_new_connections );
BIND_CONSTANT( TRANSFER_MODE_UNRELIABLE );
BIND_CONSTANT( TRANSFER_MODE_UNRELIABLE_ORDERED );

View file

@ -126,12 +126,12 @@ Error PacketPeer::_get_packet_error() const {
void PacketPeer::_bind_methods() {
ClassDB::bind_method(_MD("get_var:Variant"),&PacketPeer::_bnd_get_var);
ClassDB::bind_method(_MD("put_var", "var:Variant"),&PacketPeer::put_var);
ClassDB::bind_method(_MD("get_packet"),&PacketPeer::_get_packet);
ClassDB::bind_method(_MD("put_packet:Error", "buffer"),&PacketPeer::_put_packet);
ClassDB::bind_method(_MD("get_packet_error:Error"),&PacketPeer::_get_packet_error);
ClassDB::bind_method(_MD("get_available_packet_count"),&PacketPeer::get_available_packet_count);
ClassDB::bind_method(D_METHOD("get_var:Variant"),&PacketPeer::_bnd_get_var);
ClassDB::bind_method(D_METHOD("put_var", "var:Variant"),&PacketPeer::put_var);
ClassDB::bind_method(D_METHOD("get_packet"),&PacketPeer::_get_packet);
ClassDB::bind_method(D_METHOD("put_packet:Error", "buffer"),&PacketPeer::_put_packet);
ClassDB::bind_method(D_METHOD("get_packet_error:Error"),&PacketPeer::_get_packet_error);
ClassDB::bind_method(D_METHOD("get_available_packet_count"),&PacketPeer::get_available_packet_count);
};
/***************/
@ -145,7 +145,7 @@ void PacketPeerStream::_set_stream_peer(REF p_peer) {
void PacketPeerStream::_bind_methods() {
ClassDB::bind_method(_MD("set_stream_peer","peer:StreamPeer"),&PacketPeerStream::_set_stream_peer);
ClassDB::bind_method(D_METHOD("set_stream_peer","peer:StreamPeer"),&PacketPeerStream::_set_stream_peer);
}
Error PacketPeerStream::_poll_buffer() const {

View file

@ -53,14 +53,14 @@ Error PacketPeerUDP::_set_dest_address(const String& p_address, int p_port) {
void PacketPeerUDP::_bind_methods() {
ClassDB::bind_method(_MD("listen:Error","port", "bind_address", "recv_buf_size"),&PacketPeerUDP::listen,DEFVAL("*"),DEFVAL(65536));
ClassDB::bind_method(_MD("close"),&PacketPeerUDP::close);
ClassDB::bind_method(_MD("wait:Error"),&PacketPeerUDP::wait);
ClassDB::bind_method(_MD("is_listening"),&PacketPeerUDP::is_listening);
ClassDB::bind_method(_MD("get_packet_ip"),&PacketPeerUDP::_get_packet_ip);
//ClassDB::bind_method(_MD("get_packet_address"),&PacketPeerUDP::_get_packet_address);
ClassDB::bind_method(_MD("get_packet_port"),&PacketPeerUDP::get_packet_port);
ClassDB::bind_method(_MD("set_dest_address","host","port"),&PacketPeerUDP::_set_dest_address);
ClassDB::bind_method(D_METHOD("listen:Error","port", "bind_address", "recv_buf_size"),&PacketPeerUDP::listen,DEFVAL("*"),DEFVAL(65536));
ClassDB::bind_method(D_METHOD("close"),&PacketPeerUDP::close);
ClassDB::bind_method(D_METHOD("wait:Error"),&PacketPeerUDP::wait);
ClassDB::bind_method(D_METHOD("is_listening"),&PacketPeerUDP::is_listening);
ClassDB::bind_method(D_METHOD("get_packet_ip"),&PacketPeerUDP::_get_packet_ip);
//ClassDB::bind_method(D_METHOD("get_packet_address"),&PacketPeerUDP::_get_packet_address);
ClassDB::bind_method(D_METHOD("get_packet_port"),&PacketPeerUDP::get_packet_port);
ClassDB::bind_method(D_METHOD("set_dest_address","host","port"),&PacketPeerUDP::_set_dest_address);
}

View file

@ -52,9 +52,9 @@ static void _pad(FileAccess* p_file, int p_bytes) {
void PCKPacker::_bind_methods() {
ClassDB::bind_method(_MD("pck_start","pck_name","alignment"),&PCKPacker::pck_start);
ClassDB::bind_method(_MD("add_file","pck_path","source_path"),&PCKPacker::add_file);
ClassDB::bind_method(_MD("flush","verbose"),&PCKPacker::flush);
ClassDB::bind_method(D_METHOD("pck_start","pck_name","alignment"),&PCKPacker::pck_start);
ClassDB::bind_method(D_METHOD("add_file","pck_path","source_path"),&PCKPacker::add_file);
ClassDB::bind_method(D_METHOD("flush","verbose"),&PCKPacker::flush);
};

View file

@ -86,11 +86,11 @@ void ResourceLoader::get_recognized_extensions_for_type(const String& p_type,Lis
void ResourceInteractiveLoader::_bind_methods() {
ClassDB::bind_method(_MD("get_resource"),&ResourceInteractiveLoader::get_resource);
ClassDB::bind_method(_MD("poll"),&ResourceInteractiveLoader::poll);
ClassDB::bind_method(_MD("wait"),&ResourceInteractiveLoader::wait);
ClassDB::bind_method(_MD("get_stage"),&ResourceInteractiveLoader::get_stage);
ClassDB::bind_method(_MD("get_stage_count"),&ResourceInteractiveLoader::get_stage_count);
ClassDB::bind_method(D_METHOD("get_resource"),&ResourceInteractiveLoader::get_resource);
ClassDB::bind_method(D_METHOD("poll"),&ResourceInteractiveLoader::poll);
ClassDB::bind_method(D_METHOD("wait"),&ResourceInteractiveLoader::wait);
ClassDB::bind_method(D_METHOD("get_stage"),&ResourceInteractiveLoader::get_stage);
ClassDB::bind_method(D_METHOD("get_stage_count"),&ResourceInteractiveLoader::get_stage_count);
}
class ResourceInteractiveLoaderDefault : public ResourceInteractiveLoader {

View file

@ -389,57 +389,57 @@ Variant StreamPeer::get_var(){
void StreamPeer::_bind_methods() {
ClassDB::bind_method(_MD("put_data","data"),&StreamPeer::_put_data);
ClassDB::bind_method(_MD("put_partial_data","data"),&StreamPeer::_put_partial_data);
ClassDB::bind_method(D_METHOD("put_data","data"),&StreamPeer::_put_data);
ClassDB::bind_method(D_METHOD("put_partial_data","data"),&StreamPeer::_put_partial_data);
ClassDB::bind_method(_MD("get_data","bytes"),&StreamPeer::_get_data);
ClassDB::bind_method(_MD("get_partial_data","bytes"),&StreamPeer::_get_partial_data);
ClassDB::bind_method(D_METHOD("get_data","bytes"),&StreamPeer::_get_data);
ClassDB::bind_method(D_METHOD("get_partial_data","bytes"),&StreamPeer::_get_partial_data);
ClassDB::bind_method(_MD("get_available_bytes"),&StreamPeer::get_available_bytes);
ClassDB::bind_method(D_METHOD("get_available_bytes"),&StreamPeer::get_available_bytes);
ClassDB::bind_method(_MD("set_big_endian","enable"),&StreamPeer::set_big_endian);
ClassDB::bind_method(_MD("is_big_endian_enabled"),&StreamPeer::is_big_endian_enabled);
ClassDB::bind_method(D_METHOD("set_big_endian","enable"),&StreamPeer::set_big_endian);
ClassDB::bind_method(D_METHOD("is_big_endian_enabled"),&StreamPeer::is_big_endian_enabled);
ClassDB::bind_method(_MD("put_8","val"),&StreamPeer::put_8);
ClassDB::bind_method(_MD("put_u8","val"),&StreamPeer::put_u8);
ClassDB::bind_method(_MD("put_16","val"),&StreamPeer::put_16);
ClassDB::bind_method(_MD("put_u16","val"),&StreamPeer::put_u16);
ClassDB::bind_method(_MD("put_32","val"),&StreamPeer::put_32);
ClassDB::bind_method(_MD("put_u32","val"),&StreamPeer::put_u32);
ClassDB::bind_method(_MD("put_64","val"),&StreamPeer::put_64);
ClassDB::bind_method(_MD("put_u64","val"),&StreamPeer::put_u64);
ClassDB::bind_method(_MD("put_float","val"),&StreamPeer::put_float);
ClassDB::bind_method(_MD("put_double","val"),&StreamPeer::put_double);
ClassDB::bind_method(_MD("put_utf8_string","val"),&StreamPeer::put_utf8_string);
ClassDB::bind_method(_MD("put_var","val:Variant"),&StreamPeer::put_var);
ClassDB::bind_method(D_METHOD("put_8","val"),&StreamPeer::put_8);
ClassDB::bind_method(D_METHOD("put_u8","val"),&StreamPeer::put_u8);
ClassDB::bind_method(D_METHOD("put_16","val"),&StreamPeer::put_16);
ClassDB::bind_method(D_METHOD("put_u16","val"),&StreamPeer::put_u16);
ClassDB::bind_method(D_METHOD("put_32","val"),&StreamPeer::put_32);
ClassDB::bind_method(D_METHOD("put_u32","val"),&StreamPeer::put_u32);
ClassDB::bind_method(D_METHOD("put_64","val"),&StreamPeer::put_64);
ClassDB::bind_method(D_METHOD("put_u64","val"),&StreamPeer::put_u64);
ClassDB::bind_method(D_METHOD("put_float","val"),&StreamPeer::put_float);
ClassDB::bind_method(D_METHOD("put_double","val"),&StreamPeer::put_double);
ClassDB::bind_method(D_METHOD("put_utf8_string","val"),&StreamPeer::put_utf8_string);
ClassDB::bind_method(D_METHOD("put_var","val:Variant"),&StreamPeer::put_var);
ClassDB::bind_method(_MD("get_8"),&StreamPeer::get_8);
ClassDB::bind_method(_MD("get_u8"),&StreamPeer::get_u8);
ClassDB::bind_method(_MD("get_16"),&StreamPeer::get_16);
ClassDB::bind_method(_MD("get_u16"),&StreamPeer::get_u16);
ClassDB::bind_method(_MD("get_32"),&StreamPeer::get_32);
ClassDB::bind_method(_MD("get_u32"),&StreamPeer::get_u32);
ClassDB::bind_method(_MD("get_64"),&StreamPeer::get_64);
ClassDB::bind_method(_MD("get_u64"),&StreamPeer::get_u64);
ClassDB::bind_method(_MD("get_float"),&StreamPeer::get_float);
ClassDB::bind_method(_MD("get_double"),&StreamPeer::get_double);
ClassDB::bind_method(_MD("get_string","bytes"),&StreamPeer::get_string);
ClassDB::bind_method(_MD("get_utf8_string","bytes"),&StreamPeer::get_utf8_string);
ClassDB::bind_method(_MD("get_var:Variant"),&StreamPeer::get_var);
ClassDB::bind_method(D_METHOD("get_8"),&StreamPeer::get_8);
ClassDB::bind_method(D_METHOD("get_u8"),&StreamPeer::get_u8);
ClassDB::bind_method(D_METHOD("get_16"),&StreamPeer::get_16);
ClassDB::bind_method(D_METHOD("get_u16"),&StreamPeer::get_u16);
ClassDB::bind_method(D_METHOD("get_32"),&StreamPeer::get_32);
ClassDB::bind_method(D_METHOD("get_u32"),&StreamPeer::get_u32);
ClassDB::bind_method(D_METHOD("get_64"),&StreamPeer::get_64);
ClassDB::bind_method(D_METHOD("get_u64"),&StreamPeer::get_u64);
ClassDB::bind_method(D_METHOD("get_float"),&StreamPeer::get_float);
ClassDB::bind_method(D_METHOD("get_double"),&StreamPeer::get_double);
ClassDB::bind_method(D_METHOD("get_string","bytes"),&StreamPeer::get_string);
ClassDB::bind_method(D_METHOD("get_utf8_string","bytes"),&StreamPeer::get_utf8_string);
ClassDB::bind_method(D_METHOD("get_var:Variant"),&StreamPeer::get_var);
}
////////////////////////////////
void StreamPeerBuffer::_bind_methods() {
ClassDB::bind_method(_MD("seek","pos"),&StreamPeerBuffer::seek);
ClassDB::bind_method(_MD("get_size"),&StreamPeerBuffer::get_size);
ClassDB::bind_method(_MD("get_pos"),&StreamPeerBuffer::get_pos);
ClassDB::bind_method(_MD("resize","size"),&StreamPeerBuffer::resize);
ClassDB::bind_method(_MD("set_data_array","data"),&StreamPeerBuffer::set_data_array);
ClassDB::bind_method(_MD("get_data_array"),&StreamPeerBuffer::get_data_array);
ClassDB::bind_method(_MD("clear"),&StreamPeerBuffer::clear);
ClassDB::bind_method(_MD("duplicate:StreamPeerBuffer"),&StreamPeerBuffer::duplicate);
ClassDB::bind_method(D_METHOD("seek","pos"),&StreamPeerBuffer::seek);
ClassDB::bind_method(D_METHOD("get_size"),&StreamPeerBuffer::get_size);
ClassDB::bind_method(D_METHOD("get_pos"),&StreamPeerBuffer::get_pos);
ClassDB::bind_method(D_METHOD("resize","size"),&StreamPeerBuffer::resize);
ClassDB::bind_method(D_METHOD("set_data_array","data"),&StreamPeerBuffer::set_data_array);
ClassDB::bind_method(D_METHOD("get_data_array"),&StreamPeerBuffer::get_data_array);
ClassDB::bind_method(D_METHOD("clear"),&StreamPeerBuffer::clear);
ClassDB::bind_method(D_METHOD("duplicate:StreamPeerBuffer"),&StreamPeerBuffer::duplicate);
}

View file

@ -57,10 +57,10 @@ bool StreamPeerSSL::is_available() {
void StreamPeerSSL::_bind_methods() {
ClassDB::bind_method(_MD("accept_stream:Error","stream:StreamPeer"),&StreamPeerSSL::accept_stream);
ClassDB::bind_method(_MD("connect_to_stream:Error","stream:StreamPeer","validate_certs","for_hostname"),&StreamPeerSSL::connect_to_stream,DEFVAL(false),DEFVAL(String()));
ClassDB::bind_method(_MD("get_status"),&StreamPeerSSL::get_status);
ClassDB::bind_method(_MD("disconnect_from_stream"),&StreamPeerSSL::disconnect_from_stream);
ClassDB::bind_method(D_METHOD("accept_stream:Error","stream:StreamPeer"),&StreamPeerSSL::accept_stream);
ClassDB::bind_method(D_METHOD("connect_to_stream:Error","stream:StreamPeer","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 );

View file

@ -47,12 +47,12 @@ Error StreamPeerTCP::_connect(const String& p_address,int p_port) {
void StreamPeerTCP::_bind_methods() {
ClassDB::bind_method(_MD("connect_to_host","host","port"),&StreamPeerTCP::_connect);
ClassDB::bind_method(_MD("is_connected_to_host"),&StreamPeerTCP::is_connected_to_host);
ClassDB::bind_method(_MD("get_status"),&StreamPeerTCP::get_status);
ClassDB::bind_method(_MD("get_connected_host"),&StreamPeerTCP::get_connected_host);
ClassDB::bind_method(_MD("get_connected_port"),&StreamPeerTCP::get_connected_port);
ClassDB::bind_method(_MD("disconnect_from_host"),&StreamPeerTCP::disconnect_from_host);
ClassDB::bind_method(D_METHOD("connect_to_host","host","port"),&StreamPeerTCP::_connect);
ClassDB::bind_method(D_METHOD("is_connected_to_host"),&StreamPeerTCP::is_connected_to_host);
ClassDB::bind_method(D_METHOD("get_status"),&StreamPeerTCP::get_status);
ClassDB::bind_method(D_METHOD("get_connected_host"),&StreamPeerTCP::get_connected_host);
ClassDB::bind_method(D_METHOD("get_connected_port"),&StreamPeerTCP::get_connected_port);
ClassDB::bind_method(D_METHOD("disconnect_from_host"),&StreamPeerTCP::disconnect_from_host);
BIND_CONSTANT( STATUS_NONE );
BIND_CONSTANT( STATUS_CONNECTING );

View file

@ -46,10 +46,10 @@ TCP_Server* TCP_Server::create() {
void TCP_Server::_bind_methods() {
ClassDB::bind_method(_MD("listen","port","bind_address"),&TCP_Server::listen,DEFVAL("*"));
ClassDB::bind_method(_MD("is_connection_available"),&TCP_Server::is_connection_available);
ClassDB::bind_method(_MD("take_connection"),&TCP_Server::take_connection);
ClassDB::bind_method(_MD("stop"),&TCP_Server::stop);
ClassDB::bind_method(D_METHOD("listen","port","bind_address"),&TCP_Server::listen,DEFVAL("*"));
ClassDB::bind_method(D_METHOD("is_connection_available"),&TCP_Server::is_connection_available);
ClassDB::bind_method(D_METHOD("take_connection"),&TCP_Server::take_connection);
ClassDB::bind_method(D_METHOD("stop"),&TCP_Server::stop);
}

View file

@ -379,23 +379,23 @@ Error XMLParser::seek(uint64_t p_pos) {
void XMLParser::_bind_methods() {
ClassDB::bind_method(_MD("read"),&XMLParser::read);
ClassDB::bind_method(_MD("get_node_type"),&XMLParser::get_node_type);
ClassDB::bind_method(_MD("get_node_name"),&XMLParser::get_node_name);
ClassDB::bind_method(_MD("get_node_data"),&XMLParser::get_node_data);
ClassDB::bind_method(_MD("get_node_offset"),&XMLParser::get_node_offset);
ClassDB::bind_method(_MD("get_attribute_count"),&XMLParser::get_attribute_count);
ClassDB::bind_method(_MD("get_attribute_name","idx"),&XMLParser::get_attribute_name);
ClassDB::bind_method(_MD("get_attribute_value","idx"),(String (XMLParser::*)(int) const) &XMLParser::get_attribute_value);
ClassDB::bind_method(_MD("has_attribute","name"),&XMLParser::has_attribute);
ClassDB::bind_method(_MD("get_named_attribute_value","name"), (String (XMLParser::*)(const String&) const) &XMLParser::get_attribute_value);
ClassDB::bind_method(_MD("get_named_attribute_value_safe","name"), &XMLParser::get_attribute_value_safe);
ClassDB::bind_method(_MD("is_empty"),&XMLParser::is_empty);
ClassDB::bind_method(_MD("get_current_line"),&XMLParser::get_current_line);
ClassDB::bind_method(_MD("skip_section"),&XMLParser::skip_section);
ClassDB::bind_method(_MD("seek","pos"),&XMLParser::seek);
ClassDB::bind_method(_MD("open","file"),&XMLParser::open);
ClassDB::bind_method(_MD("open_buffer","buffer"),&XMLParser::open_buffer);
ClassDB::bind_method(D_METHOD("read"),&XMLParser::read);
ClassDB::bind_method(D_METHOD("get_node_type"),&XMLParser::get_node_type);
ClassDB::bind_method(D_METHOD("get_node_name"),&XMLParser::get_node_name);
ClassDB::bind_method(D_METHOD("get_node_data"),&XMLParser::get_node_data);
ClassDB::bind_method(D_METHOD("get_node_offset"),&XMLParser::get_node_offset);
ClassDB::bind_method(D_METHOD("get_attribute_count"),&XMLParser::get_attribute_count);
ClassDB::bind_method(D_METHOD("get_attribute_name","idx"),&XMLParser::get_attribute_name);
ClassDB::bind_method(D_METHOD("get_attribute_value","idx"),(String (XMLParser::*)(int) const) &XMLParser::get_attribute_value);
ClassDB::bind_method(D_METHOD("has_attribute","name"),&XMLParser::has_attribute);
ClassDB::bind_method(D_METHOD("get_named_attribute_value","name"), (String (XMLParser::*)(const String&) const) &XMLParser::get_attribute_value);
ClassDB::bind_method(D_METHOD("get_named_attribute_value_safe","name"), &XMLParser::get_attribute_value_safe);
ClassDB::bind_method(D_METHOD("is_empty"),&XMLParser::is_empty);
ClassDB::bind_method(D_METHOD("get_current_line"),&XMLParser::get_current_line);
ClassDB::bind_method(D_METHOD("skip_section"),&XMLParser::skip_section);
ClassDB::bind_method(D_METHOD("seek","pos"),&XMLParser::seek);
ClassDB::bind_method(D_METHOD("open","file"),&XMLParser::open);
ClassDB::bind_method(D_METHOD("open_buffer","buffer"),&XMLParser::open_buffer);
BIND_CONSTANT( NODE_NONE );
BIND_CONSTANT( NODE_ELEMENT );

View file

@ -407,23 +407,23 @@ PoolVector<int> AStar::get_id_path(int p_from_id, int p_to_id) {
void AStar::_bind_methods() {
ClassDB::bind_method(_MD("get_available_point_id"),&AStar::get_available_point_id);
ClassDB::bind_method(_MD("add_point","id","pos","weight_scale"),&AStar::add_point,DEFVAL(1.0));
ClassDB::bind_method(_MD("get_point_pos","id"),&AStar::get_point_pos);
ClassDB::bind_method(_MD("get_point_weight_scale","id"),&AStar::get_point_weight_scale);
ClassDB::bind_method(_MD("remove_point","id"),&AStar::remove_point);
ClassDB::bind_method(D_METHOD("get_available_point_id"),&AStar::get_available_point_id);
ClassDB::bind_method(D_METHOD("add_point","id","pos","weight_scale"),&AStar::add_point,DEFVAL(1.0));
ClassDB::bind_method(D_METHOD("get_point_pos","id"),&AStar::get_point_pos);
ClassDB::bind_method(D_METHOD("get_point_weight_scale","id"),&AStar::get_point_weight_scale);
ClassDB::bind_method(D_METHOD("remove_point","id"),&AStar::remove_point);
ClassDB::bind_method(_MD("connect_points","id","to_id"),&AStar::connect_points);
ClassDB::bind_method(_MD("disconnect_points","id","to_id"),&AStar::disconnect_points);
ClassDB::bind_method(_MD("are_points_connected","id","to_id"),&AStar::are_points_connected);
ClassDB::bind_method(D_METHOD("connect_points","id","to_id"),&AStar::connect_points);
ClassDB::bind_method(D_METHOD("disconnect_points","id","to_id"),&AStar::disconnect_points);
ClassDB::bind_method(D_METHOD("are_points_connected","id","to_id"),&AStar::are_points_connected);
ClassDB::bind_method(_MD("clear"),&AStar::clear);
ClassDB::bind_method(D_METHOD("clear"),&AStar::clear);
ClassDB::bind_method(_MD("get_closest_point","to_pos"),&AStar::get_closest_point);
ClassDB::bind_method(_MD("get_closest_pos_in_segment","to_pos"),&AStar::get_closest_pos_in_segment);
ClassDB::bind_method(D_METHOD("get_closest_point","to_pos"),&AStar::get_closest_point);
ClassDB::bind_method(D_METHOD("get_closest_pos_in_segment","to_pos"),&AStar::get_closest_pos_in_segment);
ClassDB::bind_method(_MD("get_point_path","from_id","to_id"),&AStar::get_point_path);
ClassDB::bind_method(_MD("get_id_path","from_id","to_id"),&AStar::get_id_path);
ClassDB::bind_method(D_METHOD("get_point_path","from_id","to_id"),&AStar::get_point_path);
ClassDB::bind_method(D_METHOD("get_id_path","from_id","to_id"),&AStar::get_id_path);
}

View file

@ -1675,31 +1675,31 @@ void Object::clear_internal_resource_paths() {
void Object::_bind_methods() {
ClassDB::bind_method(_MD("get_class"),&Object::get_class);
ClassDB::bind_method(_MD("is_class","type"),&Object::is_class);
ClassDB::bind_method(_MD("set","property","value"),&Object::_set_bind);
ClassDB::bind_method(_MD("get","property"),&Object::_get_bind);
ClassDB::bind_method(_MD("get_property_list"),&Object::_get_property_list_bind);
ClassDB::bind_method(_MD("get_method_list"),&Object::_get_method_list_bind);
ClassDB::bind_method(_MD("notification","what","reversed"),&Object::notification,DEFVAL(false));
ClassDB::bind_method(_MD("get_instance_ID"),&Object::get_instance_ID);
ClassDB::bind_method(D_METHOD("get_class"),&Object::get_class);
ClassDB::bind_method(D_METHOD("is_class","type"),&Object::is_class);
ClassDB::bind_method(D_METHOD("set","property","value"),&Object::_set_bind);
ClassDB::bind_method(D_METHOD("get","property"),&Object::_get_bind);
ClassDB::bind_method(D_METHOD("get_property_list"),&Object::_get_property_list_bind);
ClassDB::bind_method(D_METHOD("get_method_list"),&Object::_get_method_list_bind);
ClassDB::bind_method(D_METHOD("notification","what","reversed"),&Object::notification,DEFVAL(false));
ClassDB::bind_method(D_METHOD("get_instance_ID"),&Object::get_instance_ID);
ClassDB::bind_method(_MD("set_script","script:Script"),&Object::set_script);
ClassDB::bind_method(_MD("get_script:Script"),&Object::get_script);
ClassDB::bind_method(D_METHOD("set_script","script:Script"),&Object::set_script);
ClassDB::bind_method(D_METHOD("get_script:Script"),&Object::get_script);
ClassDB::bind_method(_MD("set_meta","name","value"),&Object::set_meta);
ClassDB::bind_method(_MD("get_meta","name","value"),&Object::get_meta);
ClassDB::bind_method(_MD("has_meta","name"),&Object::has_meta);
ClassDB::bind_method(_MD("get_meta_list"),&Object::_get_meta_list_bind);
ClassDB::bind_method(D_METHOD("set_meta","name","value"),&Object::set_meta);
ClassDB::bind_method(D_METHOD("get_meta","name","value"),&Object::get_meta);
ClassDB::bind_method(D_METHOD("has_meta","name"),&Object::has_meta);
ClassDB::bind_method(D_METHOD("get_meta_list"),&Object::_get_meta_list_bind);
//todo reimplement this per language so all 5 arguments can be called
//ClassDB::bind_method(_MD("call","method","arg1","arg2","arg3","arg4"),&Object::_call_bind,DEFVAL(Variant()),DEFVAL(Variant()),DEFVAL(Variant()),DEFVAL(Variant()));
//ClassDB::bind_method(_MD("call_deferred","method","arg1","arg2","arg3","arg4"),&Object::_call_deferred_bind,DEFVAL(Variant()),DEFVAL(Variant()),DEFVAL(Variant()),DEFVAL(Variant()));
//ClassDB::bind_method(D_METHOD("call","method","arg1","arg2","arg3","arg4"),&Object::_call_bind,DEFVAL(Variant()),DEFVAL(Variant()),DEFVAL(Variant()),DEFVAL(Variant()));
//ClassDB::bind_method(D_METHOD("call_deferred","method","arg1","arg2","arg3","arg4"),&Object::_call_deferred_bind,DEFVAL(Variant()),DEFVAL(Variant()),DEFVAL(Variant()),DEFVAL(Variant()));
ClassDB::bind_method(_MD("add_user_signal","signal","arguments"),&Object::_add_user_signal,DEFVAL(Array()));
ClassDB::bind_method(_MD("has_user_signal","signal"),&Object::_has_user_signal);
//ClassDB::bind_method(_MD("emit_signal","signal","arguments"),&Object::_emit_signal,DEFVAL(Array()));
ClassDB::bind_method(D_METHOD("add_user_signal","signal","arguments"),&Object::_add_user_signal,DEFVAL(Array()));
ClassDB::bind_method(D_METHOD("has_user_signal","signal"),&Object::_has_user_signal);
//ClassDB::bind_method(D_METHOD("emit_signal","signal","arguments"),&Object::_emit_signal,DEFVAL(Array()));
{
@ -1728,27 +1728,27 @@ void Object::_bind_methods() {
ClassDB::bind_vararg_method(METHOD_FLAGS_DEFAULT,"call_deferred",&Object::_call_deferred_bind,mi);
}
ClassDB::bind_method(_MD("callv:Variant","method","arg_array"),&Object::callv);
ClassDB::bind_method(D_METHOD("callv:Variant","method","arg_array"),&Object::callv);
ClassDB::bind_method(_MD("has_method","method"),&Object::has_method);
ClassDB::bind_method(D_METHOD("has_method","method"),&Object::has_method);
ClassDB::bind_method(_MD("get_signal_list"),&Object::_get_signal_list);
ClassDB::bind_method(_MD("get_signal_connection_list","signal"),&Object::_get_signal_connection_list);
ClassDB::bind_method(D_METHOD("get_signal_list"),&Object::_get_signal_list);
ClassDB::bind_method(D_METHOD("get_signal_connection_list","signal"),&Object::_get_signal_connection_list);
ClassDB::bind_method(_MD("connect","signal","target:Object","method","binds","flags"),&Object::connect,DEFVAL(Array()),DEFVAL(0));
ClassDB::bind_method(_MD("disconnect","signal","target:Object","method"),&Object::disconnect);
ClassDB::bind_method(_MD("is_connected","signal","target:Object","method"),&Object::is_connected);
ClassDB::bind_method(D_METHOD("connect","signal","target:Object","method","binds","flags"),&Object::connect,DEFVAL(Array()),DEFVAL(0));
ClassDB::bind_method(D_METHOD("disconnect","signal","target:Object","method"),&Object::disconnect);
ClassDB::bind_method(D_METHOD("is_connected","signal","target:Object","method"),&Object::is_connected);
ClassDB::bind_method(_MD("set_block_signals","enable"),&Object::set_block_signals);
ClassDB::bind_method(_MD("is_blocking_signals"),&Object::is_blocking_signals);
ClassDB::bind_method(_MD("set_message_translation","enable"),&Object::set_message_translation);
ClassDB::bind_method(_MD("can_translate_messages"),&Object::can_translate_messages);
ClassDB::bind_method(_MD("property_list_changed_notify"),&Object::property_list_changed_notify);
ClassDB::bind_method(D_METHOD("set_block_signals","enable"),&Object::set_block_signals);
ClassDB::bind_method(D_METHOD("is_blocking_signals"),&Object::is_blocking_signals);
ClassDB::bind_method(D_METHOD("set_message_translation","enable"),&Object::set_message_translation);
ClassDB::bind_method(D_METHOD("can_translate_messages"),&Object::can_translate_messages);
ClassDB::bind_method(D_METHOD("property_list_changed_notify"),&Object::property_list_changed_notify);
ClassDB::bind_method(_MD("XL_MESSAGE","message"),&Object::XL_MESSAGE);
ClassDB::bind_method(_MD("tr","message"),&Object::tr);
ClassDB::bind_method(D_METHOD("XL_MESSAGE","message"),&Object::XL_MESSAGE);
ClassDB::bind_method(D_METHOD("tr","message"),&Object::tr);
ClassDB::bind_method(_MD("is_queued_for_deletion"),&Object::is_queued_for_deletion);
ClassDB::bind_method(D_METHOD("is_queued_for_deletion"),&Object::is_queued_for_deletion);
ClassDB::add_virtual_method("Object",MethodInfo("free"),false);

View file

@ -49,40 +49,40 @@ Input::MouseMode Input::get_mouse_mode() const {
void Input::_bind_methods() {
ClassDB::bind_method(_MD("is_key_pressed","scancode"),&Input::is_key_pressed);
ClassDB::bind_method(_MD("is_mouse_button_pressed","button"),&Input::is_mouse_button_pressed);
ClassDB::bind_method(_MD("is_joy_button_pressed","device","button"),&Input::is_joy_button_pressed);
ClassDB::bind_method(_MD("is_action_pressed","action"),&Input::is_action_pressed);
ClassDB::bind_method(_MD("is_action_just_pressed","action"),&Input::is_action_just_pressed);
ClassDB::bind_method(_MD("is_action_just_released","action"),&Input::is_action_just_released);
ClassDB::bind_method(_MD("add_joy_mapping","mapping", "update_existing"),&Input::add_joy_mapping, DEFVAL(false));
ClassDB::bind_method(_MD("remove_joy_mapping","guid"),&Input::remove_joy_mapping);
ClassDB::bind_method(_MD("is_joy_known","device"),&Input::is_joy_known);
ClassDB::bind_method(_MD("get_joy_axis","device","axis"),&Input::get_joy_axis);
ClassDB::bind_method(_MD("get_joy_name","device"),&Input::get_joy_name);
ClassDB::bind_method(_MD("get_joy_guid","device"),&Input::get_joy_guid);
ClassDB::bind_method(_MD("get_connected_joypads"),&Input::get_connected_joypads);
ClassDB::bind_method(_MD("get_joy_vibration_strength", "device"), &Input::get_joy_vibration_strength);
ClassDB::bind_method(_MD("get_joy_vibration_duration", "device"), &Input::get_joy_vibration_duration);
ClassDB::bind_method(_MD("get_joy_button_string", "button_index"), &Input::get_joy_button_string);
ClassDB::bind_method(_MD("get_joy_button_index_from_string", "button"), &Input::get_joy_button_index_from_string);
ClassDB::bind_method(_MD("get_joy_axis_string", "axis_index"), &Input::get_joy_axis_string);
ClassDB::bind_method(_MD("get_joy_axis_index_from_string", "axis"), &Input::get_joy_axis_index_from_string);
ClassDB::bind_method(_MD("start_joy_vibration", "device", "weak_magnitude", "strong_magnitude", "duration"), &Input::start_joy_vibration, DEFVAL(0));
ClassDB::bind_method(_MD("stop_joy_vibration", "device"), &Input::stop_joy_vibration);
ClassDB::bind_method(_MD("get_gravity"),&Input::get_gravity);
ClassDB::bind_method(_MD("get_accelerometer"),&Input::get_accelerometer);
ClassDB::bind_method(_MD("get_magnetometer"),&Input::get_magnetometer);
ClassDB::bind_method(_MD("get_gyroscope"),&Input::get_gyroscope);
//ClassDB::bind_method(_MD("get_mouse_pos"),&Input::get_mouse_pos); - this is not the function you want
ClassDB::bind_method(_MD("get_last_mouse_speed"),&Input::get_last_mouse_speed);
ClassDB::bind_method(_MD("get_mouse_button_mask"),&Input::get_mouse_button_mask);
ClassDB::bind_method(_MD("set_mouse_mode","mode"),&Input::set_mouse_mode);
ClassDB::bind_method(_MD("get_mouse_mode"),&Input::get_mouse_mode);
ClassDB::bind_method(_MD("warp_mouse_pos","to"),&Input::warp_mouse_pos);
ClassDB::bind_method(_MD("action_press","action"),&Input::action_press);
ClassDB::bind_method(_MD("action_release","action"),&Input::action_release);
ClassDB::bind_method(_MD("set_custom_mouse_cursor","image:Texture","hotspot"),&Input::set_custom_mouse_cursor,DEFVAL(Vector2()));
ClassDB::bind_method(D_METHOD("is_key_pressed","scancode"),&Input::is_key_pressed);
ClassDB::bind_method(D_METHOD("is_mouse_button_pressed","button"),&Input::is_mouse_button_pressed);
ClassDB::bind_method(D_METHOD("is_joy_button_pressed","device","button"),&Input::is_joy_button_pressed);
ClassDB::bind_method(D_METHOD("is_action_pressed","action"),&Input::is_action_pressed);
ClassDB::bind_method(D_METHOD("is_action_just_pressed","action"),&Input::is_action_just_pressed);
ClassDB::bind_method(D_METHOD("is_action_just_released","action"),&Input::is_action_just_released);
ClassDB::bind_method(D_METHOD("add_joy_mapping","mapping", "update_existing"),&Input::add_joy_mapping, DEFVAL(false));
ClassDB::bind_method(D_METHOD("remove_joy_mapping","guid"),&Input::remove_joy_mapping);
ClassDB::bind_method(D_METHOD("is_joy_known","device"),&Input::is_joy_known);
ClassDB::bind_method(D_METHOD("get_joy_axis","device","axis"),&Input::get_joy_axis);
ClassDB::bind_method(D_METHOD("get_joy_name","device"),&Input::get_joy_name);
ClassDB::bind_method(D_METHOD("get_joy_guid","device"),&Input::get_joy_guid);
ClassDB::bind_method(D_METHOD("get_connected_joypads"),&Input::get_connected_joypads);
ClassDB::bind_method(D_METHOD("get_joy_vibration_strength", "device"), &Input::get_joy_vibration_strength);
ClassDB::bind_method(D_METHOD("get_joy_vibration_duration", "device"), &Input::get_joy_vibration_duration);
ClassDB::bind_method(D_METHOD("get_joy_button_string", "button_index"), &Input::get_joy_button_string);
ClassDB::bind_method(D_METHOD("get_joy_button_index_from_string", "button"), &Input::get_joy_button_index_from_string);
ClassDB::bind_method(D_METHOD("get_joy_axis_string", "axis_index"), &Input::get_joy_axis_string);
ClassDB::bind_method(D_METHOD("get_joy_axis_index_from_string", "axis"), &Input::get_joy_axis_index_from_string);
ClassDB::bind_method(D_METHOD("start_joy_vibration", "device", "weak_magnitude", "strong_magnitude", "duration"), &Input::start_joy_vibration, DEFVAL(0));
ClassDB::bind_method(D_METHOD("stop_joy_vibration", "device"), &Input::stop_joy_vibration);
ClassDB::bind_method(D_METHOD("get_gravity"),&Input::get_gravity);
ClassDB::bind_method(D_METHOD("get_accelerometer"),&Input::get_accelerometer);
ClassDB::bind_method(D_METHOD("get_magnetometer"),&Input::get_magnetometer);
ClassDB::bind_method(D_METHOD("get_gyroscope"),&Input::get_gyroscope);
//ClassDB::bind_method(D_METHOD("get_mouse_pos"),&Input::get_mouse_pos); - this is not the function you want
ClassDB::bind_method(D_METHOD("get_last_mouse_speed"),&Input::get_last_mouse_speed);
ClassDB::bind_method(D_METHOD("get_mouse_button_mask"),&Input::get_mouse_button_mask);
ClassDB::bind_method(D_METHOD("set_mouse_mode","mode"),&Input::set_mouse_mode);
ClassDB::bind_method(D_METHOD("get_mouse_mode"),&Input::get_mouse_mode);
ClassDB::bind_method(D_METHOD("warp_mouse_pos","to"),&Input::warp_mouse_pos);
ClassDB::bind_method(D_METHOD("action_press","action"),&Input::action_press);
ClassDB::bind_method(D_METHOD("action_release","action"),&Input::action_release);
ClassDB::bind_method(D_METHOD("set_custom_mouse_cursor","image:Texture","hotspot"),&Input::set_custom_mouse_cursor,DEFVAL(Vector2()));
BIND_CONSTANT( MOUSE_MODE_VISIBLE );
BIND_CONSTANT( MOUSE_MODE_HIDDEN );

View file

@ -31,12 +31,12 @@
void MainLoop::_bind_methods() {
ClassDB::bind_method(_MD("input_event","ev"),&MainLoop::input_event);
ClassDB::bind_method(_MD("input_text","text"),&MainLoop::input_text);
ClassDB::bind_method(_MD("init"),&MainLoop::init);
ClassDB::bind_method(_MD("iteration","delta"),&MainLoop::iteration);
ClassDB::bind_method(_MD("idle","delta"),&MainLoop::idle);
ClassDB::bind_method(_MD("finish"),&MainLoop::finish);
ClassDB::bind_method(D_METHOD("input_event","ev"),&MainLoop::input_event);
ClassDB::bind_method(D_METHOD("input_text","text"),&MainLoop::input_text);
ClassDB::bind_method(D_METHOD("init"),&MainLoop::init);
ClassDB::bind_method(D_METHOD("iteration","delta"),&MainLoop::iteration);
ClassDB::bind_method(D_METHOD("idle","delta"),&MainLoop::idle);
ClassDB::bind_method(D_METHOD("finish"),&MainLoop::finish);
BIND_VMETHOD( MethodInfo("_input_event",PropertyInfo(Variant::INPUT_EVENT,"ev")) );
BIND_VMETHOD( MethodInfo("_input_text",PropertyInfo(Variant::STRING,"text")) );

View file

@ -382,13 +382,13 @@ Variant PackedDataContainer::_iter_get(const Variant& p_iter){
void PackedDataContainer::_bind_methods() {
ClassDB::bind_method(_MD("_set_data"),&PackedDataContainer::_set_data);
ClassDB::bind_method(_MD("_get_data"),&PackedDataContainer::_get_data);
ClassDB::bind_method(_MD("_iter_init"),&PackedDataContainer::_iter_init);
ClassDB::bind_method(_MD("_iter_get"),&PackedDataContainer::_iter_get);
ClassDB::bind_method(_MD("_iter_next"),&PackedDataContainer::_iter_next);
ClassDB::bind_method(_MD("pack:Error","value"),&PackedDataContainer::pack);
ClassDB::bind_method(_MD("size"),&PackedDataContainer::size);
ClassDB::bind_method(D_METHOD("_set_data"),&PackedDataContainer::_set_data);
ClassDB::bind_method(D_METHOD("_get_data"),&PackedDataContainer::_get_data);
ClassDB::bind_method(D_METHOD("_iter_init"),&PackedDataContainer::_iter_init);
ClassDB::bind_method(D_METHOD("_iter_get"),&PackedDataContainer::_iter_get);
ClassDB::bind_method(D_METHOD("_iter_next"),&PackedDataContainer::_iter_next);
ClassDB::bind_method(D_METHOD("pack:Error","value"),&PackedDataContainer::pack);
ClassDB::bind_method(D_METHOD("size"),&PackedDataContainer::size);
ADD_PROPERTY( PropertyInfo(Variant::POOL_BYTE_ARRAY,"__data__"),"_set_data","_get_data");
}
@ -426,11 +426,11 @@ bool PackedDataContainerRef::_is_dictionary() const {
void PackedDataContainerRef::_bind_methods() {
ClassDB::bind_method(_MD("size"),&PackedDataContainerRef::size);
ClassDB::bind_method(_MD("_iter_init"),&PackedDataContainerRef::_iter_init);
ClassDB::bind_method(_MD("_iter_get"),&PackedDataContainerRef::_iter_get);
ClassDB::bind_method(_MD("_iter_next"),&PackedDataContainerRef::_iter_next);
ClassDB::bind_method(_MD("_is_dictionary"),&PackedDataContainerRef::_is_dictionary);
ClassDB::bind_method(D_METHOD("size"),&PackedDataContainerRef::size);
ClassDB::bind_method(D_METHOD("_iter_init"),&PackedDataContainerRef::_iter_init);
ClassDB::bind_method(D_METHOD("_iter_get"),&PackedDataContainerRef::_iter_get);
ClassDB::bind_method(D_METHOD("_iter_next"),&PackedDataContainerRef::_iter_next);
ClassDB::bind_method(D_METHOD("_is_dictionary"),&PackedDataContainerRef::_is_dictionary);
}

View file

@ -55,9 +55,9 @@ bool Reference::init_ref() {
void Reference::_bind_methods() {
ClassDB::bind_method(_MD("init_ref"),&Reference::init_ref);
ClassDB::bind_method(_MD("reference"),&Reference::reference);
ClassDB::bind_method(_MD("unreference"),&Reference::unreference);
ClassDB::bind_method(D_METHOD("init_ref"),&Reference::init_ref);
ClassDB::bind_method(D_METHOD("reference"),&Reference::reference);
ClassDB::bind_method(D_METHOD("unreference"),&Reference::unreference);
}
int Reference::reference_get_count() const {
@ -127,7 +127,7 @@ WeakRef::WeakRef() {
void WeakRef::_bind_methods() {
ClassDB::bind_method(_MD("get_ref:Object"),&WeakRef::get_ref);
ClassDB::bind_method(D_METHOD("get_ref:Object"),&WeakRef::get_ref);
}
#if 0

View file

@ -327,18 +327,18 @@ Node* (*Resource::_get_local_scene_func)()=NULL;
void Resource::_bind_methods() {
ClassDB::bind_method(_MD("set_path","path"),&Resource::_set_path);
ClassDB::bind_method(_MD("take_over_path","path"),&Resource::_take_over_path);
ClassDB::bind_method(_MD("get_path"),&Resource::get_path);
ClassDB::bind_method(_MD("set_name","name"),&Resource::set_name);
ClassDB::bind_method(_MD("get_name"),&Resource::get_name);
ClassDB::bind_method(_MD("get_rid"),&Resource::get_rid);
ClassDB::bind_method(_MD("set_local_to_scene","enable"),&Resource::set_local_to_scene);
ClassDB::bind_method(_MD("is_local_to_scene"),&Resource::is_local_to_scene);
ClassDB::bind_method(_MD("get_local_scene:Node"),&Resource::get_local_scene);
ClassDB::bind_method(_MD("setup_local_to_scene"),&Resource::setup_local_to_scene);
ClassDB::bind_method(D_METHOD("set_path","path"),&Resource::_set_path);
ClassDB::bind_method(D_METHOD("take_over_path","path"),&Resource::_take_over_path);
ClassDB::bind_method(D_METHOD("get_path"),&Resource::get_path);
ClassDB::bind_method(D_METHOD("set_name","name"),&Resource::set_name);
ClassDB::bind_method(D_METHOD("get_name"),&Resource::get_name);
ClassDB::bind_method(D_METHOD("get_rid"),&Resource::get_rid);
ClassDB::bind_method(D_METHOD("set_local_to_scene","enable"),&Resource::set_local_to_scene);
ClassDB::bind_method(D_METHOD("is_local_to_scene"),&Resource::is_local_to_scene);
ClassDB::bind_method(D_METHOD("get_local_scene:Node"),&Resource::get_local_scene);
ClassDB::bind_method(D_METHOD("setup_local_to_scene"),&Resource::setup_local_to_scene);
ClassDB::bind_method(_MD("duplicate","subresources"),&Resource::duplicate,DEFVAL(false));
ClassDB::bind_method(D_METHOD("duplicate","subresources"),&Resource::duplicate,DEFVAL(false));
ADD_SIGNAL( MethodInfo("changed") );
ADD_GROUP("Resource","resource_");
ADD_PROPERTYNZ( PropertyInfo(Variant::BOOL,"resource_local_to_scene" ), "set_local_to_scene","is_local_to_scene");

View file

@ -46,13 +46,13 @@ void Script::_notification( int p_what) {
void Script::_bind_methods() {
ClassDB::bind_method(_MD("can_instance"),&Script::can_instance);
//ClassDB::bind_method(_MD("instance_create","base_object"),&Script::instance_create);
ClassDB::bind_method(_MD("instance_has","base_object"),&Script::instance_has);
ClassDB::bind_method(_MD("has_source_code"),&Script::has_source_code);
ClassDB::bind_method(_MD("get_source_code"),&Script::get_source_code);
ClassDB::bind_method(_MD("set_source_code","source"),&Script::set_source_code);
ClassDB::bind_method(_MD("reload","keep_state"),&Script::reload,DEFVAL(false));
ClassDB::bind_method(D_METHOD("can_instance"),&Script::can_instance);
//ClassDB::bind_method(D_METHOD("instance_create","base_object"),&Script::instance_create);
ClassDB::bind_method(D_METHOD("instance_has","base_object"),&Script::instance_has);
ClassDB::bind_method(D_METHOD("has_source_code"),&Script::has_source_code);
ClassDB::bind_method(D_METHOD("get_source_code"),&Script::get_source_code);
ClassDB::bind_method(D_METHOD("set_source_code","source"),&Script::set_source_code);
ClassDB::bind_method(D_METHOD("reload","keep_state"),&Script::reload,DEFVAL(false));
}

View file

@ -915,15 +915,15 @@ int Translation::get_message_count() const {
void Translation::_bind_methods() {
ClassDB::bind_method(_MD("set_locale","locale"),&Translation::set_locale);
ClassDB::bind_method(_MD("get_locale"),&Translation::get_locale);
ClassDB::bind_method(_MD("add_message","src_message","xlated_message"),&Translation::add_message);
ClassDB::bind_method(_MD("get_message","src_message"),&Translation::get_message);
ClassDB::bind_method(_MD("erase_message","src_message"),&Translation::erase_message);
ClassDB::bind_method(_MD("get_message_list"),&Translation::_get_message_list);
ClassDB::bind_method(_MD("get_message_count"),&Translation::get_message_count);
ClassDB::bind_method(_MD("_set_messages"),&Translation::_set_messages);
ClassDB::bind_method(_MD("_get_messages"),&Translation::_get_messages);
ClassDB::bind_method(D_METHOD("set_locale","locale"),&Translation::set_locale);
ClassDB::bind_method(D_METHOD("get_locale"),&Translation::get_locale);
ClassDB::bind_method(D_METHOD("add_message","src_message","xlated_message"),&Translation::add_message);
ClassDB::bind_method(D_METHOD("get_message","src_message"),&Translation::get_message);
ClassDB::bind_method(D_METHOD("erase_message","src_message"),&Translation::erase_message);
ClassDB::bind_method(D_METHOD("get_message_list"),&Translation::_get_message_list);
ClassDB::bind_method(D_METHOD("get_message_count"),&Translation::get_message_count);
ClassDB::bind_method(D_METHOD("_set_messages"),&Translation::_set_messages);
ClassDB::bind_method(D_METHOD("_get_messages"),&Translation::_get_messages);
ADD_PROPERTY( PropertyInfo(Variant::POOL_STRING_ARRAY,"messages",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR), "_set_messages", "_get_messages") ;
ADD_PROPERTY( PropertyInfo(Variant::STRING,"locale"), "set_locale", "get_locale") ;
@ -1137,15 +1137,15 @@ StringName TranslationServer::tool_translate(const StringName& p_message) const
void TranslationServer::_bind_methods() {
ClassDB::bind_method(_MD("set_locale","locale"),&TranslationServer::set_locale);
ClassDB::bind_method(_MD("get_locale"),&TranslationServer::get_locale);
ClassDB::bind_method(D_METHOD("set_locale","locale"),&TranslationServer::set_locale);
ClassDB::bind_method(D_METHOD("get_locale"),&TranslationServer::get_locale);
ClassDB::bind_method(_MD("translate","message"),&TranslationServer::translate);
ClassDB::bind_method(D_METHOD("translate","message"),&TranslationServer::translate);
ClassDB::bind_method(_MD("add_translation","translation:Translation"),&TranslationServer::add_translation);
ClassDB::bind_method(_MD("remove_translation","translation:Translation"),&TranslationServer::remove_translation);
ClassDB::bind_method(D_METHOD("add_translation","translation:Translation"),&TranslationServer::add_translation);
ClassDB::bind_method(D_METHOD("remove_translation","translation:Translation"),&TranslationServer::remove_translation);
ClassDB::bind_method(_MD("clear"),&TranslationServer::clear);
ClassDB::bind_method(D_METHOD("clear"),&TranslationServer::clear);
}

View file

@ -485,11 +485,11 @@ Variant UndoRedo::_add_undo_method(const Variant** p_args, int p_argcount, Varia
void UndoRedo::_bind_methods() {
ClassDB::bind_method(_MD("create_action","name","merge_mode"),&UndoRedo::create_action, DEFVAL(MERGE_DISABLE) );
ClassDB::bind_method(_MD("commit_action"),&UndoRedo::commit_action);
ClassDB::bind_method(D_METHOD("create_action","name","merge_mode"),&UndoRedo::create_action, DEFVAL(MERGE_DISABLE) );
ClassDB::bind_method(D_METHOD("commit_action"),&UndoRedo::commit_action);
//ClassDB::bind_method(_MD("add_do_method","p_object", "p_method", "VARIANT_ARG_LIST"),&UndoRedo::add_do_method);
//ClassDB::bind_method(_MD("add_undo_method","p_object", "p_method", "VARIANT_ARG_LIST"),&UndoRedo::add_undo_method);
//ClassDB::bind_method(D_METHOD("add_do_method","p_object", "p_method", "VARIANT_ARG_LIST"),&UndoRedo::add_do_method);
//ClassDB::bind_method(D_METHOD("add_undo_method","p_object", "p_method", "VARIANT_ARG_LIST"),&UndoRedo::add_undo_method);
{
MethodInfo mi;
@ -511,13 +511,13 @@ void UndoRedo::_bind_methods() {
ClassDB::bind_vararg_method(METHOD_FLAGS_DEFAULT,"add_undo_method",&UndoRedo::_add_undo_method,mi);
}
ClassDB::bind_method(_MD("add_do_property","object", "property", "value:Variant"),&UndoRedo::add_do_property);
ClassDB::bind_method(_MD("add_undo_property","object", "property", "value:Variant"),&UndoRedo::add_undo_property);
ClassDB::bind_method(_MD("add_do_reference","object"),&UndoRedo::add_do_reference);
ClassDB::bind_method(_MD("add_undo_reference","object"),&UndoRedo::add_undo_reference);
ClassDB::bind_method(_MD("clear_history"),&UndoRedo::clear_history);
ClassDB::bind_method(_MD("get_current_action_name"),&UndoRedo::get_current_action_name);
ClassDB::bind_method(_MD("get_version"),&UndoRedo::get_version);
ClassDB::bind_method(D_METHOD("add_do_property","object", "property", "value:Variant"),&UndoRedo::add_do_property);
ClassDB::bind_method(D_METHOD("add_undo_property","object", "property", "value:Variant"),&UndoRedo::add_undo_property);
ClassDB::bind_method(D_METHOD("add_do_reference","object"),&UndoRedo::add_do_reference);
ClassDB::bind_method(D_METHOD("add_undo_reference","object"),&UndoRedo::add_undo_reference);
ClassDB::bind_method(D_METHOD("clear_history"),&UndoRedo::clear_history);
ClassDB::bind_method(D_METHOD("get_current_action_name"),&UndoRedo::get_current_action_name);
ClassDB::bind_method(D_METHOD("get_version"),&UndoRedo::get_version);
BIND_CONSTANT(MERGE_DISABLE);
BIND_CONSTANT(MERGE_ENDS);

View file

@ -40,7 +40,7 @@ Performance *Performance::singleton=NULL;
void Performance::_bind_methods() {
ClassDB::bind_method(_MD("get_monitor","monitor"),&Performance::get_monitor);
ClassDB::bind_method(D_METHOD("get_monitor","monitor"),&Performance::get_monitor);
BIND_CONSTANT( TIME_FPS );
BIND_CONSTANT( TIME_PROCESS );

View file

@ -356,8 +356,8 @@ protected:
static void _bind_methods() {
ClassDB::bind_method(_MD("_body_moved"),&TestPhysics2DMainLoop::_body_moved);
ClassDB::bind_method(_MD("_ray_query_callback"),&TestPhysics2DMainLoop::_ray_query_callback);
ClassDB::bind_method(D_METHOD("_body_moved"),&TestPhysics2DMainLoop::_body_moved);
ClassDB::bind_method(D_METHOD("_ray_query_callback"),&TestPhysics2DMainLoop::_ray_query_callback);
}

View file

@ -645,12 +645,12 @@ void NetworkedMultiplayerENet::enet_compressor_destroy(void * context){
void NetworkedMultiplayerENet::_bind_methods() {
ClassDB::bind_method(_MD("create_server","port","max_clients","in_bandwidth","out_bandwidth"),&NetworkedMultiplayerENet::create_server,DEFVAL(32),DEFVAL(0),DEFVAL(0));
ClassDB::bind_method(_MD("create_client","ip","port","in_bandwidth","out_bandwidth"),&NetworkedMultiplayerENet::create_client,DEFVAL(0),DEFVAL(0));
ClassDB::bind_method(_MD("close_connection"),&NetworkedMultiplayerENet::close_connection);
ClassDB::bind_method(_MD("set_compression_mode","mode"),&NetworkedMultiplayerENet::set_compression_mode);
ClassDB::bind_method(_MD("get_compression_mode"),&NetworkedMultiplayerENet::get_compression_mode);
ClassDB::bind_method(_MD("set_bind_ip", "ip"),&NetworkedMultiplayerENet::set_bind_ip);
ClassDB::bind_method(D_METHOD("create_server","port","max_clients","in_bandwidth","out_bandwidth"),&NetworkedMultiplayerENet::create_server,DEFVAL(32),DEFVAL(0),DEFVAL(0));
ClassDB::bind_method(D_METHOD("create_client","ip","port","in_bandwidth","out_bandwidth"),&NetworkedMultiplayerENet::create_client,DEFVAL(0),DEFVAL(0));
ClassDB::bind_method(D_METHOD("close_connection"),&NetworkedMultiplayerENet::close_connection);
ClassDB::bind_method(D_METHOD("set_compression_mode","mode"),&NetworkedMultiplayerENet::set_compression_mode);
ClassDB::bind_method(D_METHOD("get_compression_mode"),&NetworkedMultiplayerENet::get_compression_mode);
ClassDB::bind_method(D_METHOD("set_bind_ip", "ip"),&NetworkedMultiplayerENet::set_bind_ip);
BIND_CONSTANT( COMPRESS_NONE );
BIND_CONSTANT( COMPRESS_RANGE_CODER );

View file

@ -1490,8 +1490,8 @@ Variant GDFunctionState::resume(const Variant& p_arg) {
void GDFunctionState::_bind_methods() {
ClassDB::bind_method(_MD("resume:Variant","arg"),&GDFunctionState::resume,DEFVAL(Variant()));
ClassDB::bind_method(_MD("is_valid"),&GDFunctionState::is_valid);
ClassDB::bind_method(D_METHOD("resume:Variant","arg"),&GDFunctionState::resume,DEFVAL(Variant()));
ClassDB::bind_method(D_METHOD("is_valid"),&GDFunctionState::is_valid);
ClassDB::bind_vararg_method(METHOD_FLAGS_DEFAULT,"_signal_callback",&GDFunctionState::_signal_callback,MethodInfo("_signal_callback"));
}

View file

@ -63,7 +63,7 @@ bool GDNativeClass::_get(const StringName& p_name,Variant &r_ret) const {
void GDNativeClass::_bind_methods() {
ClassDB::bind_method(_MD("new"),&GDNativeClass::_new);
ClassDB::bind_method(D_METHOD("new"),&GDNativeClass::_new);
}
@ -789,7 +789,7 @@ void GDScript::_bind_methods() {
ClassDB::bind_vararg_method(METHOD_FLAGS_DEFAULT,"new",&GDScript::_new,MethodInfo(Variant::OBJECT,"new"));
ClassDB::bind_method(_MD("get_as_byte_code"),&GDScript::get_as_byte_code);
ClassDB::bind_method(D_METHOD("get_as_byte_code"),&GDScript::get_as_byte_code);
}

View file

@ -1185,60 +1185,60 @@ void GridMap::_update_dirty_map_callback() {
void GridMap::_bind_methods() {
ClassDB::bind_method(_MD("set_theme","theme:MeshLibrary"),&GridMap::set_theme);
ClassDB::bind_method(_MD("get_theme:MeshLibrary"),&GridMap::get_theme);
ClassDB::bind_method(D_METHOD("set_theme","theme:MeshLibrary"),&GridMap::set_theme);
ClassDB::bind_method(D_METHOD("get_theme:MeshLibrary"),&GridMap::get_theme);
ClassDB::bind_method(_MD("set_bake","enable"),&GridMap::set_bake);
ClassDB::bind_method(_MD("is_baking_enabled"),&GridMap::is_baking_enabled);
ClassDB::bind_method(D_METHOD("set_bake","enable"),&GridMap::set_bake);
ClassDB::bind_method(D_METHOD("is_baking_enabled"),&GridMap::is_baking_enabled);
ClassDB::bind_method(_MD("set_cell_size","size"),&GridMap::set_cell_size);
ClassDB::bind_method(_MD("get_cell_size"),&GridMap::get_cell_size);
ClassDB::bind_method(D_METHOD("set_cell_size","size"),&GridMap::set_cell_size);
ClassDB::bind_method(D_METHOD("get_cell_size"),&GridMap::get_cell_size);
ClassDB::bind_method(_MD("set_octant_size","size"),&GridMap::set_octant_size);
ClassDB::bind_method(_MD("get_octant_size"),&GridMap::get_octant_size);
ClassDB::bind_method(D_METHOD("set_octant_size","size"),&GridMap::set_octant_size);
ClassDB::bind_method(D_METHOD("get_octant_size"),&GridMap::get_octant_size);
ClassDB::bind_method(_MD("set_cell_item","x","y","z","item","orientation"),&GridMap::set_cell_item,DEFVAL(0));
ClassDB::bind_method(_MD("get_cell_item","x","y","z"),&GridMap::get_cell_item);
ClassDB::bind_method(_MD("get_cell_item_orientation","x","y","z"),&GridMap::get_cell_item_orientation);
ClassDB::bind_method(D_METHOD("set_cell_item","x","y","z","item","orientation"),&GridMap::set_cell_item,DEFVAL(0));
ClassDB::bind_method(D_METHOD("get_cell_item","x","y","z"),&GridMap::get_cell_item);
ClassDB::bind_method(D_METHOD("get_cell_item_orientation","x","y","z"),&GridMap::get_cell_item_orientation);
//ClassDB::bind_method(_MD("_recreate_octants"),&GridMap::_recreate_octants);
ClassDB::bind_method(_MD("_update_dirty_map_callback"),&GridMap::_update_dirty_map_callback);
ClassDB::bind_method(_MD("resource_changed","resource"),&GridMap::resource_changed);
//ClassDB::bind_method(D_METHOD("_recreate_octants"),&GridMap::_recreate_octants);
ClassDB::bind_method(D_METHOD("_update_dirty_map_callback"),&GridMap::_update_dirty_map_callback);
ClassDB::bind_method(D_METHOD("resource_changed","resource"),&GridMap::resource_changed);
ClassDB::bind_method(_MD("set_center_x","enable"),&GridMap::set_center_x);
ClassDB::bind_method(_MD("get_center_x"),&GridMap::get_center_x);
ClassDB::bind_method(_MD("set_center_y","enable"),&GridMap::set_center_y);
ClassDB::bind_method(_MD("get_center_y"),&GridMap::get_center_y);
ClassDB::bind_method(_MD("set_center_z","enable"),&GridMap::set_center_z);
ClassDB::bind_method(_MD("get_center_z"),&GridMap::get_center_z);
ClassDB::bind_method(D_METHOD("set_center_x","enable"),&GridMap::set_center_x);
ClassDB::bind_method(D_METHOD("get_center_x"),&GridMap::get_center_x);
ClassDB::bind_method(D_METHOD("set_center_y","enable"),&GridMap::set_center_y);
ClassDB::bind_method(D_METHOD("get_center_y"),&GridMap::get_center_y);
ClassDB::bind_method(D_METHOD("set_center_z","enable"),&GridMap::set_center_z);
ClassDB::bind_method(D_METHOD("get_center_z"),&GridMap::get_center_z);
ClassDB::bind_method(_MD("set_clip","enabled","clipabove","floor","axis"),&GridMap::set_clip,DEFVAL(true),DEFVAL(0),DEFVAL(Vector3::AXIS_X));
ClassDB::bind_method(D_METHOD("set_clip","enabled","clipabove","floor","axis"),&GridMap::set_clip,DEFVAL(true),DEFVAL(0),DEFVAL(Vector3::AXIS_X));
ClassDB::bind_method(_MD("create_area","id","area"),&GridMap::create_area);
ClassDB::bind_method(_MD("area_get_bounds","area","bounds"),&GridMap::area_get_bounds);
ClassDB::bind_method(_MD("area_set_exterior_portal","area","enable"),&GridMap::area_set_exterior_portal);
ClassDB::bind_method(_MD("area_set_name","area","name"),&GridMap::area_set_name);
ClassDB::bind_method(_MD("area_get_name","area"),&GridMap::area_get_name);
ClassDB::bind_method(_MD("area_is_exterior_portal","area"),&GridMap::area_is_exterior_portal);
ClassDB::bind_method(_MD("area_set_portal_disable_distance","area","distance"),&GridMap::area_set_portal_disable_distance);
ClassDB::bind_method(_MD("area_get_portal_disable_distance","area"),&GridMap::area_get_portal_disable_distance);
ClassDB::bind_method(_MD("area_set_portal_disable_color","area","color"),&GridMap::area_set_portal_disable_color);
ClassDB::bind_method(_MD("area_get_portal_disable_color","area"),&GridMap::area_get_portal_disable_color);
ClassDB::bind_method(_MD("erase_area","area"),&GridMap::erase_area);
ClassDB::bind_method(_MD("get_unused_area_id","area"),&GridMap::get_unused_area_id);
ClassDB::bind_method(_MD("bake_geometry"),&GridMap::bake_geometry);
ClassDB::bind_method(D_METHOD("create_area","id","area"),&GridMap::create_area);
ClassDB::bind_method(D_METHOD("area_get_bounds","area","bounds"),&GridMap::area_get_bounds);
ClassDB::bind_method(D_METHOD("area_set_exterior_portal","area","enable"),&GridMap::area_set_exterior_portal);
ClassDB::bind_method(D_METHOD("area_set_name","area","name"),&GridMap::area_set_name);
ClassDB::bind_method(D_METHOD("area_get_name","area"),&GridMap::area_get_name);
ClassDB::bind_method(D_METHOD("area_is_exterior_portal","area"),&GridMap::area_is_exterior_portal);
ClassDB::bind_method(D_METHOD("area_set_portal_disable_distance","area","distance"),&GridMap::area_set_portal_disable_distance);
ClassDB::bind_method(D_METHOD("area_get_portal_disable_distance","area"),&GridMap::area_get_portal_disable_distance);
ClassDB::bind_method(D_METHOD("area_set_portal_disable_color","area","color"),&GridMap::area_set_portal_disable_color);
ClassDB::bind_method(D_METHOD("area_get_portal_disable_color","area"),&GridMap::area_get_portal_disable_color);
ClassDB::bind_method(D_METHOD("erase_area","area"),&GridMap::erase_area);
ClassDB::bind_method(D_METHOD("get_unused_area_id","area"),&GridMap::get_unused_area_id);
ClassDB::bind_method(D_METHOD("bake_geometry"),&GridMap::bake_geometry);
ClassDB::bind_method(_MD("_baked_light_changed"),&GridMap::_baked_light_changed);
ClassDB::bind_method(_MD("set_use_baked_light","use"),&GridMap::set_use_baked_light);
ClassDB::bind_method(_MD("is_using_baked_light","use"),&GridMap::is_using_baked_light);
ClassDB::bind_method(D_METHOD("_baked_light_changed"),&GridMap::_baked_light_changed);
ClassDB::bind_method(D_METHOD("set_use_baked_light","use"),&GridMap::set_use_baked_light);
ClassDB::bind_method(D_METHOD("is_using_baked_light","use"),&GridMap::is_using_baked_light);
ClassDB::bind_method(_MD("_get_baked_light_meshes"),&GridMap::_get_baked_light_meshes);
ClassDB::bind_method(D_METHOD("_get_baked_light_meshes"),&GridMap::_get_baked_light_meshes);
ClassDB::set_method_flags("GridMap","bake_geometry",METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR);
ClassDB::bind_method(_MD("clear"),&GridMap::clear);
ClassDB::bind_method(D_METHOD("clear"),&GridMap::clear);
BIND_CONSTANT( INVALID_CELL_ITEM );

View file

@ -1189,7 +1189,7 @@ void GridMapEditor::_bind_methods() {
ClassDB::bind_method("_area_selected",&GridMapEditor::_area_selected);
ClassDB::bind_method("_floor_changed",&GridMapEditor::_floor_changed);
ClassDB::bind_method(_MD("_set_display_mode","mode"), &GridMapEditor::_set_display_mode);
ClassDB::bind_method(D_METHOD("_set_display_mode","mode"), &GridMapEditor::_set_display_mode);
}

View file

@ -1481,26 +1481,26 @@ RegEx::~RegEx() {
void RegExMatch::_bind_methods() {
ClassDB::bind_method(_MD("expand","template"),&RegExMatch::expand);
ClassDB::bind_method(_MD("get_group_count"),&RegExMatch::get_group_count);
ClassDB::bind_method(_MD("get_group_array"),&RegExMatch::get_group_array);
ClassDB::bind_method(_MD("get_names"),&RegExMatch::get_names);
ClassDB::bind_method(_MD("get_name_dict"),&RegExMatch::get_name_dict);
ClassDB::bind_method(_MD("get_string","name"),&RegExMatch::get_string, DEFVAL(0));
ClassDB::bind_method(_MD("get_start","name"),&RegExMatch::get_start, DEFVAL(0));
ClassDB::bind_method(_MD("get_end","name"),&RegExMatch::get_end, DEFVAL(0));
ClassDB::bind_method(D_METHOD("expand","template"),&RegExMatch::expand);
ClassDB::bind_method(D_METHOD("get_group_count"),&RegExMatch::get_group_count);
ClassDB::bind_method(D_METHOD("get_group_array"),&RegExMatch::get_group_array);
ClassDB::bind_method(D_METHOD("get_names"),&RegExMatch::get_names);
ClassDB::bind_method(D_METHOD("get_name_dict"),&RegExMatch::get_name_dict);
ClassDB::bind_method(D_METHOD("get_string","name"),&RegExMatch::get_string, DEFVAL(0));
ClassDB::bind_method(D_METHOD("get_start","name"),&RegExMatch::get_start, DEFVAL(0));
ClassDB::bind_method(D_METHOD("get_end","name"),&RegExMatch::get_end, DEFVAL(0));
}
void RegEx::_bind_methods() {
ClassDB::bind_method(_MD("clear"),&RegEx::clear);
ClassDB::bind_method(_MD("compile","pattern"),&RegEx::compile);
ClassDB::bind_method(_MD("search","text","start","end"),&RegEx::search, DEFVAL(0), DEFVAL(-1));
ClassDB::bind_method(_MD("sub","text","replacement","all","start","end"),&RegEx::sub, DEFVAL(false), DEFVAL(0), DEFVAL(-1));
ClassDB::bind_method(_MD("is_valid"),&RegEx::is_valid);
ClassDB::bind_method(_MD("get_pattern"),&RegEx::get_pattern);
ClassDB::bind_method(_MD("get_group_count"),&RegEx::get_group_count);
ClassDB::bind_method(_MD("get_names"),&RegEx::get_names);
ClassDB::bind_method(D_METHOD("clear"),&RegEx::clear);
ClassDB::bind_method(D_METHOD("compile","pattern"),&RegEx::compile);
ClassDB::bind_method(D_METHOD("search","text","start","end"),&RegEx::search, DEFVAL(0), DEFVAL(-1));
ClassDB::bind_method(D_METHOD("sub","text","replacement","all","start","end"),&RegEx::sub, DEFVAL(false), DEFVAL(0), DEFVAL(-1));
ClassDB::bind_method(D_METHOD("is_valid"),&RegEx::is_valid);
ClassDB::bind_method(D_METHOD("get_pattern"),&RegEx::get_pattern);
ClassDB::bind_method(D_METHOD("get_group_count"),&RegEx::get_group_count);
ClassDB::bind_method(D_METHOD("get_names"),&RegEx::get_names);
ADD_PROPERTY(PropertyInfo(Variant::STRING, "pattern"), "compile", "get_pattern");
}

View file

@ -205,11 +205,11 @@ bool AudioStreamOGGVorbis::has_loop() const {
void AudioStreamOGGVorbis::_bind_methods() {
ClassDB::bind_method(_MD("set_data","data"),&AudioStreamOGGVorbis::set_data);
ClassDB::bind_method(_MD("get_data"),&AudioStreamOGGVorbis::get_data);
ClassDB::bind_method(D_METHOD("set_data","data"),&AudioStreamOGGVorbis::set_data);
ClassDB::bind_method(D_METHOD("get_data"),&AudioStreamOGGVorbis::get_data);
ClassDB::bind_method(_MD("set_loop","enable"),&AudioStreamOGGVorbis::set_loop);
ClassDB::bind_method(_MD("has_loop"),&AudioStreamOGGVorbis::has_loop);
ClassDB::bind_method(D_METHOD("set_loop","enable"),&AudioStreamOGGVorbis::set_loop);
ClassDB::bind_method(D_METHOD("has_loop"),&AudioStreamOGGVorbis::has_loop);
ADD_PROPERTY(PropertyInfo(Variant::POOL_BYTE_ARRAY,"data",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"set_data","get_data");
ADD_PROPERTY(PropertyInfo(Variant::BOOL,"loop",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"set_loop","has_loop");

View file

@ -104,11 +104,11 @@ Array VisualScriptNode::_get_default_input_values() const {
void VisualScriptNode::_bind_methods() {
ClassDB::bind_method(_MD("get_visual_script:VisualScript"),&VisualScriptNode::get_visual_script);
ClassDB::bind_method(_MD("set_default_input_value","port_idx","value:Variant"),&VisualScriptNode::set_default_input_value);
ClassDB::bind_method(_MD("get_default_input_value:Variant","port_idx"),&VisualScriptNode::get_default_input_value);
ClassDB::bind_method(_MD("_set_default_input_values","values"),&VisualScriptNode::_set_default_input_values);
ClassDB::bind_method(_MD("_get_default_input_values"),&VisualScriptNode::_get_default_input_values);
ClassDB::bind_method(D_METHOD("get_visual_script:VisualScript"),&VisualScriptNode::get_visual_script);
ClassDB::bind_method(D_METHOD("set_default_input_value","port_idx","value:Variant"),&VisualScriptNode::set_default_input_value);
ClassDB::bind_method(D_METHOD("get_default_input_value:Variant","port_idx"),&VisualScriptNode::get_default_input_value);
ClassDB::bind_method(D_METHOD("_set_default_input_values","values"),&VisualScriptNode::_set_default_input_values);
ClassDB::bind_method(D_METHOD("_get_default_input_values"),&VisualScriptNode::_get_default_input_values);
ADD_PROPERTY(PropertyInfo(Variant::ARRAY,"_default_input_values",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"_set_default_input_values","_get_default_input_values");
ADD_SIGNAL(MethodInfo("ports_changed"));
@ -1317,63 +1317,63 @@ void VisualScript::_bind_methods() {
ClassDB::bind_method(_MD("_node_ports_changed"),&VisualScript::_node_ports_changed);
ClassDB::bind_method(D_METHOD("_node_ports_changed"),&VisualScript::_node_ports_changed);
ClassDB::bind_method(_MD("add_function","name"),&VisualScript::add_function);
ClassDB::bind_method(_MD("has_function","name"),&VisualScript::has_function);
ClassDB::bind_method(_MD("remove_function","name"),&VisualScript::remove_function);
ClassDB::bind_method(_MD("rename_function","name","new_name"),&VisualScript::rename_function);
ClassDB::bind_method(_MD("set_function_scroll","ofs"),&VisualScript::set_function_scroll);
ClassDB::bind_method(_MD("get_function_scroll"),&VisualScript::get_function_scroll);
ClassDB::bind_method(D_METHOD("add_function","name"),&VisualScript::add_function);
ClassDB::bind_method(D_METHOD("has_function","name"),&VisualScript::has_function);
ClassDB::bind_method(D_METHOD("remove_function","name"),&VisualScript::remove_function);
ClassDB::bind_method(D_METHOD("rename_function","name","new_name"),&VisualScript::rename_function);
ClassDB::bind_method(D_METHOD("set_function_scroll","ofs"),&VisualScript::set_function_scroll);
ClassDB::bind_method(D_METHOD("get_function_scroll"),&VisualScript::get_function_scroll);
ClassDB::bind_method(_MD("add_node","func","id","node","pos"),&VisualScript::add_node,DEFVAL(Point2()));
ClassDB::bind_method(_MD("remove_node","func","id"),&VisualScript::remove_node);
ClassDB::bind_method(_MD("get_function_node_id","name"),&VisualScript::get_function_node_id);
ClassDB::bind_method(D_METHOD("add_node","func","id","node","pos"),&VisualScript::add_node,DEFVAL(Point2()));
ClassDB::bind_method(D_METHOD("remove_node","func","id"),&VisualScript::remove_node);
ClassDB::bind_method(D_METHOD("get_function_node_id","name"),&VisualScript::get_function_node_id);
ClassDB::bind_method(_MD("get_node","func","id"),&VisualScript::get_node);
ClassDB::bind_method(_MD("has_node","func","id"),&VisualScript::has_node);
ClassDB::bind_method(_MD("set_node_pos","func","id","pos"),&VisualScript::set_node_pos);
ClassDB::bind_method(_MD("get_node_pos","func","id"),&VisualScript::get_node_pos);
ClassDB::bind_method(D_METHOD("get_node","func","id"),&VisualScript::get_node);
ClassDB::bind_method(D_METHOD("has_node","func","id"),&VisualScript::has_node);
ClassDB::bind_method(D_METHOD("set_node_pos","func","id","pos"),&VisualScript::set_node_pos);
ClassDB::bind_method(D_METHOD("get_node_pos","func","id"),&VisualScript::get_node_pos);
ClassDB::bind_method(_MD("sequence_connect","func","from_node","from_output","to_node"),&VisualScript::sequence_connect);
ClassDB::bind_method(_MD("sequence_disconnect","func","from_node","from_output","to_node"),&VisualScript::sequence_disconnect);
ClassDB::bind_method(_MD("has_sequence_connection","func","from_node","from_output","to_node"),&VisualScript::has_sequence_connection);
ClassDB::bind_method(D_METHOD("sequence_connect","func","from_node","from_output","to_node"),&VisualScript::sequence_connect);
ClassDB::bind_method(D_METHOD("sequence_disconnect","func","from_node","from_output","to_node"),&VisualScript::sequence_disconnect);
ClassDB::bind_method(D_METHOD("has_sequence_connection","func","from_node","from_output","to_node"),&VisualScript::has_sequence_connection);
ClassDB::bind_method(_MD("data_connect","func","from_node","from_port","to_node","to_port"),&VisualScript::data_connect);
ClassDB::bind_method(_MD("data_disconnect","func","from_node","from_port","to_node","to_port"),&VisualScript::data_disconnect);
ClassDB::bind_method(_MD("has_data_connection","func","from_node","from_port","to_node","to_port"),&VisualScript::has_data_connection);
ClassDB::bind_method(D_METHOD("data_connect","func","from_node","from_port","to_node","to_port"),&VisualScript::data_connect);
ClassDB::bind_method(D_METHOD("data_disconnect","func","from_node","from_port","to_node","to_port"),&VisualScript::data_disconnect);
ClassDB::bind_method(D_METHOD("has_data_connection","func","from_node","from_port","to_node","to_port"),&VisualScript::has_data_connection);
ClassDB::bind_method(_MD("add_variable","name","default_value","export"),&VisualScript::add_variable,DEFVAL(Variant()),DEFVAL(false));
ClassDB::bind_method(_MD("has_variable","name"),&VisualScript::has_variable);
ClassDB::bind_method(_MD("remove_variable","name"),&VisualScript::remove_variable);
ClassDB::bind_method(_MD("set_variable_default_value","name","value"),&VisualScript::set_variable_default_value);
ClassDB::bind_method(_MD("get_variable_default_value","name"),&VisualScript::get_variable_default_value);
ClassDB::bind_method(_MD("set_variable_info","name","value"),&VisualScript::_set_variable_info);
ClassDB::bind_method(_MD("get_variable_info","name"),&VisualScript::_get_variable_info);
ClassDB::bind_method(_MD("set_variable_export","name","enable"),&VisualScript::set_variable_export);
ClassDB::bind_method(_MD("get_variable_export","name"),&VisualScript::get_variable_export);
ClassDB::bind_method(_MD("rename_variable","name","new_name"),&VisualScript::rename_variable);
ClassDB::bind_method(D_METHOD("add_variable","name","default_value","export"),&VisualScript::add_variable,DEFVAL(Variant()),DEFVAL(false));
ClassDB::bind_method(D_METHOD("has_variable","name"),&VisualScript::has_variable);
ClassDB::bind_method(D_METHOD("remove_variable","name"),&VisualScript::remove_variable);
ClassDB::bind_method(D_METHOD("set_variable_default_value","name","value"),&VisualScript::set_variable_default_value);
ClassDB::bind_method(D_METHOD("get_variable_default_value","name"),&VisualScript::get_variable_default_value);
ClassDB::bind_method(D_METHOD("set_variable_info","name","value"),&VisualScript::_set_variable_info);
ClassDB::bind_method(D_METHOD("get_variable_info","name"),&VisualScript::_get_variable_info);
ClassDB::bind_method(D_METHOD("set_variable_export","name","enable"),&VisualScript::set_variable_export);
ClassDB::bind_method(D_METHOD("get_variable_export","name"),&VisualScript::get_variable_export);
ClassDB::bind_method(D_METHOD("rename_variable","name","new_name"),&VisualScript::rename_variable);
ClassDB::bind_method(_MD("add_custom_signal","name"),&VisualScript::add_custom_signal);
ClassDB::bind_method(_MD("has_custom_signal","name"),&VisualScript::has_custom_signal);
ClassDB::bind_method(_MD("custom_signal_add_argument","name","type","argname","index"),&VisualScript::custom_signal_add_argument,DEFVAL(-1));
ClassDB::bind_method(_MD("custom_signal_set_argument_type","name","argidx","type"),&VisualScript::custom_signal_set_argument_type);
ClassDB::bind_method(_MD("custom_signal_get_argument_type","name","argidx"),&VisualScript::custom_signal_get_argument_type);
ClassDB::bind_method(_MD("custom_signal_set_argument_name","name","argidx","argname"),&VisualScript::custom_signal_set_argument_name);
ClassDB::bind_method(_MD("custom_signal_get_argument_name","name","argidx"),&VisualScript::custom_signal_get_argument_name);
ClassDB::bind_method(_MD("custom_signal_remove_argument","argidx"),&VisualScript::custom_signal_remove_argument);
ClassDB::bind_method(_MD("custom_signal_get_argument_count","name"),&VisualScript::custom_signal_get_argument_count);
ClassDB::bind_method(_MD("custom_signal_swap_argument","name","argidx","withidx"),&VisualScript::custom_signal_swap_argument);
ClassDB::bind_method(_MD("remove_custom_signal","name"),&VisualScript::remove_custom_signal);
ClassDB::bind_method(_MD("rename_custom_signal","name","new_name"),&VisualScript::rename_custom_signal);
ClassDB::bind_method(D_METHOD("add_custom_signal","name"),&VisualScript::add_custom_signal);
ClassDB::bind_method(D_METHOD("has_custom_signal","name"),&VisualScript::has_custom_signal);
ClassDB::bind_method(D_METHOD("custom_signal_add_argument","name","type","argname","index"),&VisualScript::custom_signal_add_argument,DEFVAL(-1));
ClassDB::bind_method(D_METHOD("custom_signal_set_argument_type","name","argidx","type"),&VisualScript::custom_signal_set_argument_type);
ClassDB::bind_method(D_METHOD("custom_signal_get_argument_type","name","argidx"),&VisualScript::custom_signal_get_argument_type);
ClassDB::bind_method(D_METHOD("custom_signal_set_argument_name","name","argidx","argname"),&VisualScript::custom_signal_set_argument_name);
ClassDB::bind_method(D_METHOD("custom_signal_get_argument_name","name","argidx"),&VisualScript::custom_signal_get_argument_name);
ClassDB::bind_method(D_METHOD("custom_signal_remove_argument","argidx"),&VisualScript::custom_signal_remove_argument);
ClassDB::bind_method(D_METHOD("custom_signal_get_argument_count","name"),&VisualScript::custom_signal_get_argument_count);
ClassDB::bind_method(D_METHOD("custom_signal_swap_argument","name","argidx","withidx"),&VisualScript::custom_signal_swap_argument);
ClassDB::bind_method(D_METHOD("remove_custom_signal","name"),&VisualScript::remove_custom_signal);
ClassDB::bind_method(D_METHOD("rename_custom_signal","name","new_name"),&VisualScript::rename_custom_signal);
//ClassDB::bind_method(_MD("set_variable_info","name","info"),&VScript::set_variable_info);
//ClassDB::bind_method(_MD("get_variable_info","name"),&VScript::set_variable_info);
//ClassDB::bind_method(D_METHOD("set_variable_info","name","info"),&VScript::set_variable_info);
//ClassDB::bind_method(D_METHOD("get_variable_info","name"),&VScript::set_variable_info);
ClassDB::bind_method(_MD("set_instance_base_type","type"),&VisualScript::set_instance_base_type);
ClassDB::bind_method(D_METHOD("set_instance_base_type","type"),&VisualScript::set_instance_base_type);
ClassDB::bind_method(_MD("_set_data","data"),&VisualScript::_set_data);
ClassDB::bind_method(_MD("_get_data"),&VisualScript::_get_data);
ClassDB::bind_method(D_METHOD("_set_data","data"),&VisualScript::_set_data);
ClassDB::bind_method(D_METHOD("_get_data"),&VisualScript::_get_data);
ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY,"data",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"_set_data","_get_data");
@ -2436,9 +2436,9 @@ Variant VisualScriptFunctionState::resume(Array p_args) {
void VisualScriptFunctionState::_bind_methods() {
ClassDB::bind_method(_MD("connect_to_signal","obj","signals","args"),&VisualScriptFunctionState::connect_to_signal);
ClassDB::bind_method(_MD("resume:Array","args"),&VisualScriptFunctionState::resume,DEFVAL(Variant()));
ClassDB::bind_method(_MD("is_valid"),&VisualScriptFunctionState::is_valid);
ClassDB::bind_method(D_METHOD("connect_to_signal","obj","signals","args"),&VisualScriptFunctionState::connect_to_signal);
ClassDB::bind_method(D_METHOD("resume:Array","args"),&VisualScriptFunctionState::resume,DEFVAL(Variant()));
ClassDB::bind_method(D_METHOD("is_valid"),&VisualScriptFunctionState::is_valid);
ClassDB::bind_vararg_method(METHOD_FLAGS_DEFAULT,"_signal_callback",&VisualScriptFunctionState::_signal_callback,MethodInfo("_signal_callback"));
}

View file

@ -1166,8 +1166,8 @@ VisualScriptNodeInstance* VisualScriptBuiltinFunc::instance(VisualScriptInstance
void VisualScriptBuiltinFunc::_bind_methods() {
ClassDB::bind_method(_MD("set_func","which"),&VisualScriptBuiltinFunc::set_func);
ClassDB::bind_method(_MD("get_func"),&VisualScriptBuiltinFunc::get_func);
ClassDB::bind_method(D_METHOD("set_func","which"),&VisualScriptBuiltinFunc::set_func);
ClassDB::bind_method(D_METHOD("get_func"),&VisualScriptBuiltinFunc::get_func);
String cc;

View file

@ -81,10 +81,10 @@ bool VisualScriptReturn::is_return_value_enabled() const {
void VisualScriptReturn::_bind_methods() {
ClassDB::bind_method(_MD("set_return_type","type"),&VisualScriptReturn::set_return_type);
ClassDB::bind_method(_MD("get_return_type"),&VisualScriptReturn::get_return_type);
ClassDB::bind_method(_MD("set_enable_return_value","enable"),&VisualScriptReturn::set_enable_return_value);
ClassDB::bind_method(_MD("is_return_value_enabled"),&VisualScriptReturn::is_return_value_enabled);
ClassDB::bind_method(D_METHOD("set_return_type","type"),&VisualScriptReturn::set_return_type);
ClassDB::bind_method(D_METHOD("get_return_type"),&VisualScriptReturn::get_return_type);
ClassDB::bind_method(D_METHOD("set_enable_return_value","enable"),&VisualScriptReturn::set_enable_return_value);
ClassDB::bind_method(D_METHOD("is_return_value_enabled"),&VisualScriptReturn::is_return_value_enabled);
String argt="Any";
for(int i=1;i<Variant::VARIANT_MAX;i++) {
@ -544,8 +544,8 @@ int VisualScriptSequence::get_steps() const {
void VisualScriptSequence::_bind_methods() {
ClassDB::bind_method(_MD("set_steps","steps"),&VisualScriptSequence::set_steps);
ClassDB::bind_method(_MD("get_steps"),&VisualScriptSequence::get_steps);
ClassDB::bind_method(D_METHOD("set_steps","steps"),&VisualScriptSequence::set_steps);
ClassDB::bind_method(D_METHOD("get_steps"),&VisualScriptSequence::get_steps);
ADD_PROPERTY(PropertyInfo(Variant::INT,"steps",PROPERTY_HINT_RANGE,"1,64,1"),"set_steps","get_steps");
@ -1893,11 +1893,11 @@ VisualScriptNodeInstance* VisualScriptTypeCast::instance(VisualScriptInstance* p
void VisualScriptTypeCast::_bind_methods() {
ClassDB::bind_method(_MD("set_base_type","type"),&VisualScriptTypeCast::set_base_type);
ClassDB::bind_method(_MD("get_base_type"),&VisualScriptTypeCast::get_base_type);
ClassDB::bind_method(D_METHOD("set_base_type","type"),&VisualScriptTypeCast::set_base_type);
ClassDB::bind_method(D_METHOD("get_base_type"),&VisualScriptTypeCast::get_base_type);
ClassDB::bind_method(_MD("set_base_script","path"),&VisualScriptTypeCast::set_base_script);
ClassDB::bind_method(_MD("get_base_script"),&VisualScriptTypeCast::get_base_script);
ClassDB::bind_method(D_METHOD("set_base_script","path"),&VisualScriptTypeCast::set_base_script);
ClassDB::bind_method(D_METHOD("get_base_script"),&VisualScriptTypeCast::get_base_script);
List<String> script_extensions;

View file

@ -687,38 +687,38 @@ void VisualScriptFunctionCall::_validate_property(PropertyInfo& property) const
void VisualScriptFunctionCall::_bind_methods() {
ClassDB::bind_method(_MD("set_base_type","base_type"),&VisualScriptFunctionCall::set_base_type);
ClassDB::bind_method(_MD("get_base_type"),&VisualScriptFunctionCall::get_base_type);
ClassDB::bind_method(D_METHOD("set_base_type","base_type"),&VisualScriptFunctionCall::set_base_type);
ClassDB::bind_method(D_METHOD("get_base_type"),&VisualScriptFunctionCall::get_base_type);
ClassDB::bind_method(_MD("set_base_script","base_script"),&VisualScriptFunctionCall::set_base_script);
ClassDB::bind_method(_MD("get_base_script"),&VisualScriptFunctionCall::get_base_script);
ClassDB::bind_method(D_METHOD("set_base_script","base_script"),&VisualScriptFunctionCall::set_base_script);
ClassDB::bind_method(D_METHOD("get_base_script"),&VisualScriptFunctionCall::get_base_script);
ClassDB::bind_method(_MD("set_basic_type","basic_type"),&VisualScriptFunctionCall::set_basic_type);
ClassDB::bind_method(_MD("get_basic_type"),&VisualScriptFunctionCall::get_basic_type);
ClassDB::bind_method(D_METHOD("set_basic_type","basic_type"),&VisualScriptFunctionCall::set_basic_type);
ClassDB::bind_method(D_METHOD("get_basic_type"),&VisualScriptFunctionCall::get_basic_type);
ClassDB::bind_method(_MD("set_singleton","singleton"),&VisualScriptFunctionCall::set_singleton);
ClassDB::bind_method(_MD("get_singleton"),&VisualScriptFunctionCall::get_singleton);
ClassDB::bind_method(D_METHOD("set_singleton","singleton"),&VisualScriptFunctionCall::set_singleton);
ClassDB::bind_method(D_METHOD("get_singleton"),&VisualScriptFunctionCall::get_singleton);
ClassDB::bind_method(_MD("set_function","function"),&VisualScriptFunctionCall::set_function);
ClassDB::bind_method(_MD("get_function"),&VisualScriptFunctionCall::get_function);
ClassDB::bind_method(D_METHOD("set_function","function"),&VisualScriptFunctionCall::set_function);
ClassDB::bind_method(D_METHOD("get_function"),&VisualScriptFunctionCall::get_function);
ClassDB::bind_method(_MD("set_call_mode","mode"),&VisualScriptFunctionCall::set_call_mode);
ClassDB::bind_method(_MD("get_call_mode"),&VisualScriptFunctionCall::get_call_mode);
ClassDB::bind_method(D_METHOD("set_call_mode","mode"),&VisualScriptFunctionCall::set_call_mode);
ClassDB::bind_method(D_METHOD("get_call_mode"),&VisualScriptFunctionCall::get_call_mode);
ClassDB::bind_method(_MD("set_base_path","base_path"),&VisualScriptFunctionCall::set_base_path);
ClassDB::bind_method(_MD("get_base_path"),&VisualScriptFunctionCall::get_base_path);
ClassDB::bind_method(D_METHOD("set_base_path","base_path"),&VisualScriptFunctionCall::set_base_path);
ClassDB::bind_method(D_METHOD("get_base_path"),&VisualScriptFunctionCall::get_base_path);
ClassDB::bind_method(_MD("set_use_default_args","amount"),&VisualScriptFunctionCall::set_use_default_args);
ClassDB::bind_method(_MD("get_use_default_args"),&VisualScriptFunctionCall::get_use_default_args);
ClassDB::bind_method(D_METHOD("set_use_default_args","amount"),&VisualScriptFunctionCall::set_use_default_args);
ClassDB::bind_method(D_METHOD("get_use_default_args"),&VisualScriptFunctionCall::get_use_default_args);
ClassDB::bind_method(_MD("_set_argument_cache","argument_cache"),&VisualScriptFunctionCall::_set_argument_cache);
ClassDB::bind_method(_MD("_get_argument_cache"),&VisualScriptFunctionCall::_get_argument_cache);
ClassDB::bind_method(D_METHOD("_set_argument_cache","argument_cache"),&VisualScriptFunctionCall::_set_argument_cache);
ClassDB::bind_method(D_METHOD("_get_argument_cache"),&VisualScriptFunctionCall::_get_argument_cache);
ClassDB::bind_method(_MD("set_rpc_call_mode","mode"),&VisualScriptFunctionCall::set_rpc_call_mode);
ClassDB::bind_method(_MD("get_rpc_call_mode"),&VisualScriptFunctionCall::get_rpc_call_mode);
ClassDB::bind_method(D_METHOD("set_rpc_call_mode","mode"),&VisualScriptFunctionCall::set_rpc_call_mode);
ClassDB::bind_method(D_METHOD("get_rpc_call_mode"),&VisualScriptFunctionCall::get_rpc_call_mode);
ClassDB::bind_method(_MD("set_validate","enable"),&VisualScriptFunctionCall::set_validate);
ClassDB::bind_method(_MD("get_validate"),&VisualScriptFunctionCall::get_validate);
ClassDB::bind_method(D_METHOD("set_validate","enable"),&VisualScriptFunctionCall::set_validate);
ClassDB::bind_method(D_METHOD("get_validate"),&VisualScriptFunctionCall::get_validate);
String bt;
for(int i=0;i<Variant::VARIANT_MAX;i++) {
@ -1453,29 +1453,29 @@ void VisualScriptPropertySet::_validate_property(PropertyInfo& property) const {
void VisualScriptPropertySet::_bind_methods() {
ClassDB::bind_method(_MD("set_base_type","base_type"),&VisualScriptPropertySet::set_base_type);
ClassDB::bind_method(_MD("get_base_type"),&VisualScriptPropertySet::get_base_type);
ClassDB::bind_method(D_METHOD("set_base_type","base_type"),&VisualScriptPropertySet::set_base_type);
ClassDB::bind_method(D_METHOD("get_base_type"),&VisualScriptPropertySet::get_base_type);
ClassDB::bind_method(_MD("set_base_script","base_script"),&VisualScriptPropertySet::set_base_script);
ClassDB::bind_method(_MD("get_base_script"),&VisualScriptPropertySet::get_base_script);
ClassDB::bind_method(D_METHOD("set_base_script","base_script"),&VisualScriptPropertySet::set_base_script);
ClassDB::bind_method(D_METHOD("get_base_script"),&VisualScriptPropertySet::get_base_script);
ClassDB::bind_method(_MD("set_basic_type","basic_type"),&VisualScriptPropertySet::set_basic_type);
ClassDB::bind_method(_MD("get_basic_type"),&VisualScriptPropertySet::get_basic_type);
ClassDB::bind_method(D_METHOD("set_basic_type","basic_type"),&VisualScriptPropertySet::set_basic_type);
ClassDB::bind_method(D_METHOD("get_basic_type"),&VisualScriptPropertySet::get_basic_type);
ClassDB::bind_method(_MD("_set_type_cache","type_cache"),&VisualScriptPropertySet::_set_type_cache);
ClassDB::bind_method(_MD("_get_type_cache"),&VisualScriptPropertySet::_get_type_cache);
ClassDB::bind_method(D_METHOD("_set_type_cache","type_cache"),&VisualScriptPropertySet::_set_type_cache);
ClassDB::bind_method(D_METHOD("_get_type_cache"),&VisualScriptPropertySet::_get_type_cache);
ClassDB::bind_method(_MD("set_event_type","event_type"),&VisualScriptPropertySet::set_event_type);
ClassDB::bind_method(_MD("get_event_type"),&VisualScriptPropertySet::get_event_type);
ClassDB::bind_method(D_METHOD("set_event_type","event_type"),&VisualScriptPropertySet::set_event_type);
ClassDB::bind_method(D_METHOD("get_event_type"),&VisualScriptPropertySet::get_event_type);
ClassDB::bind_method(_MD("set_property","property"),&VisualScriptPropertySet::set_property);
ClassDB::bind_method(_MD("get_property"),&VisualScriptPropertySet::get_property);
ClassDB::bind_method(D_METHOD("set_property","property"),&VisualScriptPropertySet::set_property);
ClassDB::bind_method(D_METHOD("get_property"),&VisualScriptPropertySet::get_property);
ClassDB::bind_method(_MD("set_call_mode","mode"),&VisualScriptPropertySet::set_call_mode);
ClassDB::bind_method(_MD("get_call_mode"),&VisualScriptPropertySet::get_call_mode);
ClassDB::bind_method(D_METHOD("set_call_mode","mode"),&VisualScriptPropertySet::set_call_mode);
ClassDB::bind_method(D_METHOD("get_call_mode"),&VisualScriptPropertySet::get_call_mode);
ClassDB::bind_method(_MD("set_base_path","base_path"),&VisualScriptPropertySet::set_base_path);
ClassDB::bind_method(_MD("get_base_path"),&VisualScriptPropertySet::get_base_path);
ClassDB::bind_method(D_METHOD("set_base_path","base_path"),&VisualScriptPropertySet::set_base_path);
ClassDB::bind_method(D_METHOD("get_base_path"),&VisualScriptPropertySet::get_base_path);
@ -2117,30 +2117,30 @@ void VisualScriptPropertyGet::_validate_property(PropertyInfo& property) const {
void VisualScriptPropertyGet::_bind_methods() {
ClassDB::bind_method(_MD("set_base_type","base_type"),&VisualScriptPropertyGet::set_base_type);
ClassDB::bind_method(_MD("get_base_type"),&VisualScriptPropertyGet::get_base_type);
ClassDB::bind_method(D_METHOD("set_base_type","base_type"),&VisualScriptPropertyGet::set_base_type);
ClassDB::bind_method(D_METHOD("get_base_type"),&VisualScriptPropertyGet::get_base_type);
ClassDB::bind_method(_MD("set_base_script","base_script"),&VisualScriptPropertyGet::set_base_script);
ClassDB::bind_method(_MD("get_base_script"),&VisualScriptPropertyGet::get_base_script);
ClassDB::bind_method(D_METHOD("set_base_script","base_script"),&VisualScriptPropertyGet::set_base_script);
ClassDB::bind_method(D_METHOD("get_base_script"),&VisualScriptPropertyGet::get_base_script);
ClassDB::bind_method(_MD("set_basic_type","basic_type"),&VisualScriptPropertyGet::set_basic_type);
ClassDB::bind_method(_MD("get_basic_type"),&VisualScriptPropertyGet::get_basic_type);
ClassDB::bind_method(D_METHOD("set_basic_type","basic_type"),&VisualScriptPropertyGet::set_basic_type);
ClassDB::bind_method(D_METHOD("get_basic_type"),&VisualScriptPropertyGet::get_basic_type);
ClassDB::bind_method(_MD("_set_type_cache","type_cache"),&VisualScriptPropertyGet::_set_type_cache);
ClassDB::bind_method(_MD("_get_type_cache"),&VisualScriptPropertyGet::_get_type_cache);
ClassDB::bind_method(D_METHOD("_set_type_cache","type_cache"),&VisualScriptPropertyGet::_set_type_cache);
ClassDB::bind_method(D_METHOD("_get_type_cache"),&VisualScriptPropertyGet::_get_type_cache);
ClassDB::bind_method(_MD("set_event_type","event_type"),&VisualScriptPropertyGet::set_event_type);
ClassDB::bind_method(_MD("get_event_type"),&VisualScriptPropertyGet::get_event_type);
ClassDB::bind_method(D_METHOD("set_event_type","event_type"),&VisualScriptPropertyGet::set_event_type);
ClassDB::bind_method(D_METHOD("get_event_type"),&VisualScriptPropertyGet::get_event_type);
ClassDB::bind_method(_MD("set_property","property"),&VisualScriptPropertyGet::set_property);
ClassDB::bind_method(_MD("get_property"),&VisualScriptPropertyGet::get_property);
ClassDB::bind_method(D_METHOD("set_property","property"),&VisualScriptPropertyGet::set_property);
ClassDB::bind_method(D_METHOD("get_property"),&VisualScriptPropertyGet::get_property);
ClassDB::bind_method(_MD("set_call_mode","mode"),&VisualScriptPropertyGet::set_call_mode);
ClassDB::bind_method(_MD("get_call_mode"),&VisualScriptPropertyGet::get_call_mode);
ClassDB::bind_method(D_METHOD("set_call_mode","mode"),&VisualScriptPropertyGet::set_call_mode);
ClassDB::bind_method(D_METHOD("get_call_mode"),&VisualScriptPropertyGet::get_call_mode);
ClassDB::bind_method(_MD("set_base_path","base_path"),&VisualScriptPropertyGet::set_base_path);
ClassDB::bind_method(_MD("get_base_path"),&VisualScriptPropertyGet::get_base_path);
ClassDB::bind_method(D_METHOD("set_base_path","base_path"),&VisualScriptPropertyGet::set_base_path);
ClassDB::bind_method(D_METHOD("get_base_path"),&VisualScriptPropertyGet::get_base_path);
String bt;
for(int i=0;i<Variant::VARIANT_MAX;i++) {
@ -2420,8 +2420,8 @@ void VisualScriptEmitSignal::_validate_property(PropertyInfo& property) const {
void VisualScriptEmitSignal::_bind_methods() {
ClassDB::bind_method(_MD("set_signal","name"),&VisualScriptEmitSignal::set_signal);
ClassDB::bind_method(_MD("get_signal"),&VisualScriptEmitSignal::get_signal);
ClassDB::bind_method(D_METHOD("set_signal","name"),&VisualScriptEmitSignal::set_signal);
ClassDB::bind_method(D_METHOD("get_signal"),&VisualScriptEmitSignal::get_signal);
ADD_PROPERTY(PropertyInfo(Variant::STRING,"signal/signal"),"set_signal","get_signal");

View file

@ -539,11 +539,11 @@ Variant::Type VisualScriptOperator::get_typed() const {
void VisualScriptOperator::_bind_methods() {
ClassDB::bind_method(_MD("set_operator","op"),&VisualScriptOperator::set_operator);
ClassDB::bind_method(_MD("get_operator"),&VisualScriptOperator::get_operator);
ClassDB::bind_method(D_METHOD("set_operator","op"),&VisualScriptOperator::set_operator);
ClassDB::bind_method(D_METHOD("get_operator"),&VisualScriptOperator::get_operator);
ClassDB::bind_method(_MD("set_typed","type"),&VisualScriptOperator::set_typed);
ClassDB::bind_method(_MD("get_typed"),&VisualScriptOperator::get_typed);
ClassDB::bind_method(D_METHOD("set_typed","type"),&VisualScriptOperator::set_typed);
ClassDB::bind_method(D_METHOD("get_typed"),&VisualScriptOperator::get_typed);
String types;
for(int i=0;i<Variant::OP_MAX;i++) {
@ -717,8 +717,8 @@ void VisualScriptVariableGet::_validate_property(PropertyInfo& property) const {
void VisualScriptVariableGet::_bind_methods() {
ClassDB::bind_method(_MD("set_variable","name"),&VisualScriptVariableGet::set_variable);
ClassDB::bind_method(_MD("get_variable"),&VisualScriptVariableGet::get_variable);
ClassDB::bind_method(D_METHOD("set_variable","name"),&VisualScriptVariableGet::set_variable);
ClassDB::bind_method(D_METHOD("get_variable"),&VisualScriptVariableGet::get_variable);
ADD_PROPERTY(PropertyInfo(Variant::STRING,"variable/name"),"set_variable","get_variable");
@ -853,8 +853,8 @@ void VisualScriptVariableSet::_validate_property(PropertyInfo& property) const {
void VisualScriptVariableSet::_bind_methods() {
ClassDB::bind_method(_MD("set_variable","name"),&VisualScriptVariableSet::set_variable);
ClassDB::bind_method(_MD("get_variable"),&VisualScriptVariableSet::get_variable);
ClassDB::bind_method(D_METHOD("set_variable","name"),&VisualScriptVariableSet::set_variable);
ClassDB::bind_method(D_METHOD("get_variable"),&VisualScriptVariableSet::get_variable);
ADD_PROPERTY(PropertyInfo(Variant::STRING,"variable/name"),"set_variable","get_variable");
@ -995,11 +995,11 @@ void VisualScriptConstant::_validate_property(PropertyInfo& property) const {
void VisualScriptConstant::_bind_methods() {
ClassDB::bind_method(_MD("set_constant_type","type"),&VisualScriptConstant::set_constant_type);
ClassDB::bind_method(_MD("get_constant_type"),&VisualScriptConstant::get_constant_type);
ClassDB::bind_method(D_METHOD("set_constant_type","type"),&VisualScriptConstant::set_constant_type);
ClassDB::bind_method(D_METHOD("get_constant_type"),&VisualScriptConstant::get_constant_type);
ClassDB::bind_method(_MD("set_constant_value","value"),&VisualScriptConstant::set_constant_value);
ClassDB::bind_method(_MD("get_constant_value"),&VisualScriptConstant::get_constant_value);
ClassDB::bind_method(D_METHOD("set_constant_value","value"),&VisualScriptConstant::set_constant_value);
ClassDB::bind_method(D_METHOD("get_constant_value"),&VisualScriptConstant::get_constant_value);
String argt="Null";
for(int i=1;i<Variant::VARIANT_MAX;i++) {
@ -1123,8 +1123,8 @@ Ref<Resource> VisualScriptPreload::get_preload() const{
void VisualScriptPreload::_bind_methods() {
ClassDB::bind_method(_MD("set_preload","resource"),&VisualScriptPreload::set_preload);
ClassDB::bind_method(_MD("get_preload"),&VisualScriptPreload::get_preload);
ClassDB::bind_method(D_METHOD("set_preload","resource"),&VisualScriptPreload::set_preload);
ClassDB::bind_method(D_METHOD("get_preload"),&VisualScriptPreload::get_preload);
ADD_PROPERTY(PropertyInfo(Variant::OBJECT,"resource",PROPERTY_HINT_RESOURCE_TYPE,"Resource"),"set_preload","get_preload");
@ -1425,8 +1425,8 @@ VisualScriptNodeInstance* VisualScriptGlobalConstant::instance(VisualScriptInsta
void VisualScriptGlobalConstant::_bind_methods() {
ClassDB::bind_method(_MD("set_global_constant","index"),&VisualScriptGlobalConstant::set_global_constant);
ClassDB::bind_method(_MD("get_global_constant"),&VisualScriptGlobalConstant::get_global_constant);
ClassDB::bind_method(D_METHOD("set_global_constant","index"),&VisualScriptGlobalConstant::set_global_constant);
ClassDB::bind_method(D_METHOD("get_global_constant"),&VisualScriptGlobalConstant::get_global_constant);
String cc;
@ -1563,11 +1563,11 @@ void VisualScriptClassConstant::_validate_property(PropertyInfo& property) const
void VisualScriptClassConstant::_bind_methods() {
ClassDB::bind_method(_MD("set_class_constant","name"),&VisualScriptClassConstant::set_class_constant);
ClassDB::bind_method(_MD("get_class_constant"),&VisualScriptClassConstant::get_class_constant);
ClassDB::bind_method(D_METHOD("set_class_constant","name"),&VisualScriptClassConstant::set_class_constant);
ClassDB::bind_method(D_METHOD("get_class_constant"),&VisualScriptClassConstant::get_class_constant);
ClassDB::bind_method(_MD("set_base_type","name"),&VisualScriptClassConstant::set_base_type);
ClassDB::bind_method(_MD("get_base_type"),&VisualScriptClassConstant::get_base_type);
ClassDB::bind_method(D_METHOD("set_base_type","name"),&VisualScriptClassConstant::set_base_type);
ClassDB::bind_method(D_METHOD("get_base_type"),&VisualScriptClassConstant::get_base_type);
ADD_PROPERTY(PropertyInfo(Variant::STRING,"base_type",PROPERTY_HINT_TYPE_STRING,"Object"),"set_base_type","get_base_type");
ADD_PROPERTY(PropertyInfo(Variant::STRING,"constant",PROPERTY_HINT_ENUM,""),"set_class_constant","get_class_constant");
@ -1703,11 +1703,11 @@ void VisualScriptBasicTypeConstant::_validate_property(PropertyInfo& property) c
void VisualScriptBasicTypeConstant::_bind_methods() {
ClassDB::bind_method(_MD("set_basic_type","name"),&VisualScriptBasicTypeConstant::set_basic_type);
ClassDB::bind_method(_MD("get_basic_type"),&VisualScriptBasicTypeConstant::get_basic_type);
ClassDB::bind_method(D_METHOD("set_basic_type","name"),&VisualScriptBasicTypeConstant::set_basic_type);
ClassDB::bind_method(D_METHOD("get_basic_type"),&VisualScriptBasicTypeConstant::get_basic_type);
ClassDB::bind_method(_MD("set_basic_type_constant","name"),&VisualScriptBasicTypeConstant::set_basic_type_constant);
ClassDB::bind_method(_MD("get_basic_type_constant"),&VisualScriptBasicTypeConstant::get_basic_type_constant);
ClassDB::bind_method(D_METHOD("set_basic_type_constant","name"),&VisualScriptBasicTypeConstant::set_basic_type_constant);
ClassDB::bind_method(D_METHOD("get_basic_type_constant"),&VisualScriptBasicTypeConstant::get_basic_type_constant);
String argt="Null";
@ -1831,8 +1831,8 @@ VisualScriptNodeInstance* VisualScriptMathConstant::instance(VisualScriptInstanc
void VisualScriptMathConstant::_bind_methods() {
ClassDB::bind_method(_MD("set_math_constant","which"),&VisualScriptMathConstant::set_math_constant);
ClassDB::bind_method(_MD("get_math_constant"),&VisualScriptMathConstant::get_math_constant);
ClassDB::bind_method(D_METHOD("set_math_constant","which"),&VisualScriptMathConstant::set_math_constant);
ClassDB::bind_method(D_METHOD("get_math_constant"),&VisualScriptMathConstant::get_math_constant);
String cc;
@ -1953,8 +1953,8 @@ VisualScriptEngineSingleton::TypeGuess VisualScriptEngineSingleton::guess_output
void VisualScriptEngineSingleton::_bind_methods() {
ClassDB::bind_method(_MD("set_singleton","name"),&VisualScriptEngineSingleton::set_singleton);
ClassDB::bind_method(_MD("get_singleton"),&VisualScriptEngineSingleton::get_singleton);
ClassDB::bind_method(D_METHOD("set_singleton","name"),&VisualScriptEngineSingleton::set_singleton);
ClassDB::bind_method(D_METHOD("get_singleton"),&VisualScriptEngineSingleton::get_singleton);
String cc;
@ -2190,8 +2190,8 @@ void VisualScriptSceneNode::_validate_property(PropertyInfo& property) const {
void VisualScriptSceneNode::_bind_methods() {
ClassDB::bind_method(_MD("set_node_path","path"),&VisualScriptSceneNode::set_node_path);
ClassDB::bind_method(_MD("get_node_path"),&VisualScriptSceneNode::get_node_path);
ClassDB::bind_method(D_METHOD("set_node_path","path"),&VisualScriptSceneNode::set_node_path);
ClassDB::bind_method(D_METHOD("get_node_path"),&VisualScriptSceneNode::get_node_path);
ADD_PROPERTY(PropertyInfo(Variant::NODE_PATH,"node_path",PROPERTY_HINT_NODE_PATH_TO_EDITED_NODE),"set_node_path","get_node_path");
}
@ -2401,8 +2401,8 @@ VisualScriptNodeInstance* VisualScriptResourcePath::instance(VisualScriptInstanc
void VisualScriptResourcePath::_bind_methods() {
ClassDB::bind_method(_MD("set_resource_path","path"),&VisualScriptResourcePath::set_resource_path);
ClassDB::bind_method(_MD("get_resource_path"),&VisualScriptResourcePath::get_resource_path);
ClassDB::bind_method(D_METHOD("set_resource_path","path"),&VisualScriptResourcePath::set_resource_path);
ClassDB::bind_method(D_METHOD("get_resource_path"),&VisualScriptResourcePath::get_resource_path);
ADD_PROPERTY(PropertyInfo(Variant::STRING,"path",PROPERTY_HINT_FILE),"set_resource_path","get_resource_path");
}
@ -3001,14 +3001,14 @@ VisualScriptNodeInstance* VisualScriptComment::instance(VisualScriptInstance* p_
void VisualScriptComment::_bind_methods() {
ClassDB::bind_method(_MD("set_title","title"),&VisualScriptComment::set_title);
ClassDB::bind_method(_MD("get_title"),&VisualScriptComment::get_title);
ClassDB::bind_method(D_METHOD("set_title","title"),&VisualScriptComment::set_title);
ClassDB::bind_method(D_METHOD("get_title"),&VisualScriptComment::get_title);
ClassDB::bind_method(_MD("set_description","description"),&VisualScriptComment::set_description);
ClassDB::bind_method(_MD("get_description"),&VisualScriptComment::get_description);
ClassDB::bind_method(D_METHOD("set_description","description"),&VisualScriptComment::set_description);
ClassDB::bind_method(D_METHOD("get_description"),&VisualScriptComment::get_description);
ClassDB::bind_method(_MD("set_size","size"),&VisualScriptComment::set_size);
ClassDB::bind_method(_MD("get_size"),&VisualScriptComment::get_size);
ClassDB::bind_method(D_METHOD("set_size","size"),&VisualScriptComment::set_size);
ClassDB::bind_method(D_METHOD("get_size"),&VisualScriptComment::get_size);
ADD_PROPERTY( PropertyInfo(Variant::STRING,"title"),"set_title","get_title");
ADD_PROPERTY( PropertyInfo(Variant::STRING,"description",PROPERTY_HINT_MULTILINE_TEXT),"set_description","get_description");
@ -3140,11 +3140,11 @@ VisualScriptNodeInstance* VisualScriptConstructor::instance(VisualScriptInstance
void VisualScriptConstructor::_bind_methods() {
ClassDB::bind_method(_MD("set_constructor_type","type"),&VisualScriptConstructor::set_constructor_type);
ClassDB::bind_method(_MD("get_constructor_type"),&VisualScriptConstructor::get_constructor_type);
ClassDB::bind_method(D_METHOD("set_constructor_type","type"),&VisualScriptConstructor::set_constructor_type);
ClassDB::bind_method(D_METHOD("get_constructor_type"),&VisualScriptConstructor::get_constructor_type);
ClassDB::bind_method(_MD("set_constructor","constructor"),&VisualScriptConstructor::set_constructor);
ClassDB::bind_method(_MD("get_constructor"),&VisualScriptConstructor::get_constructor);
ClassDB::bind_method(D_METHOD("set_constructor","constructor"),&VisualScriptConstructor::set_constructor);
ClassDB::bind_method(D_METHOD("get_constructor"),&VisualScriptConstructor::get_constructor);
ADD_PROPERTY( PropertyInfo(Variant::INT,"type",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"set_constructor_type","get_constructor_type");
ADD_PROPERTY( PropertyInfo(Variant::DICTIONARY,"constructor",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"set_constructor","get_constructor");
@ -3283,11 +3283,11 @@ VisualScriptNodeInstance* VisualScriptLocalVar::instance(VisualScriptInstance* p
void VisualScriptLocalVar::_bind_methods() {
ClassDB::bind_method(_MD("set_var_name","name"),&VisualScriptLocalVar::set_var_name);
ClassDB::bind_method(_MD("get_var_name"),&VisualScriptLocalVar::get_var_name);
ClassDB::bind_method(D_METHOD("set_var_name","name"),&VisualScriptLocalVar::set_var_name);
ClassDB::bind_method(D_METHOD("get_var_name"),&VisualScriptLocalVar::get_var_name);
ClassDB::bind_method(_MD("set_var_type","type"),&VisualScriptLocalVar::set_var_type);
ClassDB::bind_method(_MD("get_var_type"),&VisualScriptLocalVar::get_var_type);
ClassDB::bind_method(D_METHOD("set_var_type","type"),&VisualScriptLocalVar::set_var_type);
ClassDB::bind_method(D_METHOD("get_var_type"),&VisualScriptLocalVar::get_var_type);
String argt="Any";
for(int i=1;i<Variant::VARIANT_MAX;i++) {
@ -3420,11 +3420,11 @@ VisualScriptNodeInstance* VisualScriptLocalVarSet::instance(VisualScriptInstance
void VisualScriptLocalVarSet::_bind_methods() {
ClassDB::bind_method(_MD("set_var_name","name"),&VisualScriptLocalVarSet::set_var_name);
ClassDB::bind_method(_MD("get_var_name"),&VisualScriptLocalVarSet::get_var_name);
ClassDB::bind_method(D_METHOD("set_var_name","name"),&VisualScriptLocalVarSet::set_var_name);
ClassDB::bind_method(D_METHOD("get_var_name"),&VisualScriptLocalVarSet::get_var_name);
ClassDB::bind_method(_MD("set_var_type","type"),&VisualScriptLocalVarSet::set_var_type);
ClassDB::bind_method(_MD("get_var_type"),&VisualScriptLocalVarSet::get_var_type);
ClassDB::bind_method(D_METHOD("set_var_type","type"),&VisualScriptLocalVarSet::set_var_type);
ClassDB::bind_method(D_METHOD("get_var_type"),&VisualScriptLocalVarSet::get_var_type);
String argt="Any";
for(int i=1;i<Variant::VARIANT_MAX;i++) {
@ -3630,11 +3630,11 @@ void VisualScriptInputAction::_validate_property(PropertyInfo& property) const {
void VisualScriptInputAction::_bind_methods() {
ClassDB::bind_method(_MD("set_action_name","name"),&VisualScriptInputAction::set_action_name);
ClassDB::bind_method(_MD("get_action_name"),&VisualScriptInputAction::get_action_name);
ClassDB::bind_method(D_METHOD("set_action_name","name"),&VisualScriptInputAction::set_action_name);
ClassDB::bind_method(D_METHOD("get_action_name"),&VisualScriptInputAction::get_action_name);
ClassDB::bind_method(_MD("set_action_mode","mode"),&VisualScriptInputAction::set_action_mode);
ClassDB::bind_method(_MD("get_action_mode"),&VisualScriptInputAction::get_action_mode);
ClassDB::bind_method(D_METHOD("set_action_mode","mode"),&VisualScriptInputAction::set_action_mode);
ClassDB::bind_method(D_METHOD("get_action_mode"),&VisualScriptInputAction::get_action_mode);
ADD_PROPERTY( PropertyInfo(Variant::STRING,"action"),"set_action_name","get_action_name");
ADD_PROPERTY( PropertyInfo(Variant::INT,"mode",PROPERTY_HINT_ENUM,"Pressed,Released,JustPressed,JustReleased"),"set_action_mode","get_action_mode");
@ -3834,14 +3834,14 @@ void VisualScriptDeconstruct::_validate_property(PropertyInfo& property) const {
void VisualScriptDeconstruct::_bind_methods() {
ClassDB::bind_method(_MD("set_deconstruct_type","type"),&VisualScriptDeconstruct::set_deconstruct_type);
ClassDB::bind_method(_MD("get_deconstruct_type"),&VisualScriptDeconstruct::get_deconstruct_type);
ClassDB::bind_method(D_METHOD("set_deconstruct_type","type"),&VisualScriptDeconstruct::set_deconstruct_type);
ClassDB::bind_method(D_METHOD("get_deconstruct_type"),&VisualScriptDeconstruct::get_deconstruct_type);
ClassDB::bind_method(_MD("set_deconstruct_input_type","input_type"),&VisualScriptDeconstruct::set_deconstruct_input_type);
ClassDB::bind_method(_MD("get_deconstruct_input_type"),&VisualScriptDeconstruct::get_deconstruct_input_type);
ClassDB::bind_method(D_METHOD("set_deconstruct_input_type","input_type"),&VisualScriptDeconstruct::set_deconstruct_input_type);
ClassDB::bind_method(D_METHOD("get_deconstruct_input_type"),&VisualScriptDeconstruct::get_deconstruct_input_type);
ClassDB::bind_method(_MD("_set_elem_cache","_cache"),&VisualScriptDeconstruct::_set_elem_cache);
ClassDB::bind_method(_MD("_get_elem_cache"),&VisualScriptDeconstruct::_get_elem_cache);
ClassDB::bind_method(D_METHOD("_set_elem_cache","_cache"),&VisualScriptDeconstruct::_set_elem_cache);
ClassDB::bind_method(D_METHOD("_get_elem_cache"),&VisualScriptDeconstruct::_get_elem_cache);
String argt="Any";
for(int i=1;i<Variant::VARIANT_MAX;i++) {

View file

@ -157,11 +157,11 @@ void VisualScriptYield::_validate_property(PropertyInfo& property) const {
void VisualScriptYield::_bind_methods() {
ClassDB::bind_method(_MD("set_yield_mode","mode"),&VisualScriptYield::set_yield_mode);
ClassDB::bind_method(_MD("get_yield_mode"),&VisualScriptYield::get_yield_mode);
ClassDB::bind_method(D_METHOD("set_yield_mode","mode"),&VisualScriptYield::set_yield_mode);
ClassDB::bind_method(D_METHOD("get_yield_mode"),&VisualScriptYield::get_yield_mode);
ClassDB::bind_method(_MD("set_wait_time","sec"),&VisualScriptYield::set_wait_time);
ClassDB::bind_method(_MD("get_wait_time"),&VisualScriptYield::get_wait_time);
ClassDB::bind_method(D_METHOD("set_wait_time","sec"),&VisualScriptYield::set_wait_time);
ClassDB::bind_method(D_METHOD("get_wait_time"),&VisualScriptYield::get_wait_time);
ADD_PROPERTY(PropertyInfo(Variant::INT,"mode",PROPERTY_HINT_ENUM,"Frame,FixedFrame,Time",PROPERTY_USAGE_NOEDITOR),"set_yield_mode","get_yield_mode");
ADD_PROPERTY(PropertyInfo(Variant::REAL,"wait_time"),"set_wait_time","get_wait_time");
@ -468,17 +468,17 @@ void VisualScriptYieldSignal::_validate_property(PropertyInfo& property) const {
void VisualScriptYieldSignal::_bind_methods() {
ClassDB::bind_method(_MD("set_base_type","base_type"),&VisualScriptYieldSignal::set_base_type);
ClassDB::bind_method(_MD("get_base_type"),&VisualScriptYieldSignal::get_base_type);
ClassDB::bind_method(D_METHOD("set_base_type","base_type"),&VisualScriptYieldSignal::set_base_type);
ClassDB::bind_method(D_METHOD("get_base_type"),&VisualScriptYieldSignal::get_base_type);
ClassDB::bind_method(_MD("set_signal","signal"),&VisualScriptYieldSignal::set_signal);
ClassDB::bind_method(_MD("get_signal"),&VisualScriptYieldSignal::get_signal);
ClassDB::bind_method(D_METHOD("set_signal","signal"),&VisualScriptYieldSignal::set_signal);
ClassDB::bind_method(D_METHOD("get_signal"),&VisualScriptYieldSignal::get_signal);
ClassDB::bind_method(_MD("set_call_mode","mode"),&VisualScriptYieldSignal::set_call_mode);
ClassDB::bind_method(_MD("get_call_mode"),&VisualScriptYieldSignal::get_call_mode);
ClassDB::bind_method(D_METHOD("set_call_mode","mode"),&VisualScriptYieldSignal::set_call_mode);
ClassDB::bind_method(D_METHOD("get_call_mode"),&VisualScriptYieldSignal::get_call_mode);
ClassDB::bind_method(_MD("set_base_path","base_path"),&VisualScriptYieldSignal::set_base_path);
ClassDB::bind_method(_MD("get_base_path"),&VisualScriptYieldSignal::get_base_path);
ClassDB::bind_method(D_METHOD("set_base_path","base_path"),&VisualScriptYieldSignal::set_base_path);
ClassDB::bind_method(D_METHOD("get_base_path"),&VisualScriptYieldSignal::get_base_path);

View file

@ -562,7 +562,7 @@ JavaObject::~JavaObject(){
void JavaClassWrapper::_bind_methods() {
ClassDB::bind_method(_MD("wrap:JavaClass","name"),&JavaClassWrapper::wrap);
ClassDB::bind_method(D_METHOD("wrap:JavaClass","name"),&JavaClassWrapper::wrap);
}

View file

@ -38,11 +38,11 @@ extern char* launch_dir_ptr;
void PaymentService::_bind_methods() {
ClassDB::bind_method(_MD("request_product_info"),&PaymentService::request_product_info);
ClassDB::bind_method(_MD("purchase"),&PaymentService::purchase);
ClassDB::bind_method(D_METHOD("request_product_info"),&PaymentService::request_product_info);
ClassDB::bind_method(D_METHOD("purchase"),&PaymentService::purchase);
ClassDB::bind_method(_MD("get_pending_event_count"),&PaymentService::get_pending_event_count);
ClassDB::bind_method(_MD("pop_pending_event"),&PaymentService::pop_pending_event);
ClassDB::bind_method(D_METHOD("get_pending_event_count"),&PaymentService::get_pending_event_count);
ClassDB::bind_method(D_METHOD("pop_pending_event"),&PaymentService::pop_pending_event);
};
Error PaymentService::request_product_info(Variant p_params) {

View file

@ -48,18 +48,18 @@ extern "C" {
GameCenter* GameCenter::instance = NULL;
void GameCenter::_bind_methods() {
ClassDB::bind_method(_MD("connect"),&GameCenter::connect);
ClassDB::bind_method(_MD("is_connected"),&GameCenter::is_connected);
ClassDB::bind_method(D_METHOD("connect"),&GameCenter::connect);
ClassDB::bind_method(D_METHOD("is_connected"),&GameCenter::is_connected);
ClassDB::bind_method(_MD("post_score"),&GameCenter::post_score);
ClassDB::bind_method(_MD("award_achievement"),&GameCenter::award_achievement);
ClassDB::bind_method(_MD("reset_achievements"),&GameCenter::reset_achievements);
ClassDB::bind_method(_MD("request_achievements"),&GameCenter::request_achievements);
ClassDB::bind_method(_MD("request_achievement_descriptions"),&GameCenter::request_achievement_descriptions);
ClassDB::bind_method(_MD("show_game_center"),&GameCenter::show_game_center);
ClassDB::bind_method(D_METHOD("post_score"),&GameCenter::post_score);
ClassDB::bind_method(D_METHOD("award_achievement"),&GameCenter::award_achievement);
ClassDB::bind_method(D_METHOD("reset_achievements"),&GameCenter::reset_achievements);
ClassDB::bind_method(D_METHOD("request_achievements"),&GameCenter::request_achievements);
ClassDB::bind_method(D_METHOD("request_achievement_descriptions"),&GameCenter::request_achievement_descriptions);
ClassDB::bind_method(D_METHOD("show_game_center"),&GameCenter::show_game_center);
ClassDB::bind_method(_MD("get_pending_event_count"),&GameCenter::get_pending_event_count);
ClassDB::bind_method(_MD("pop_pending_event"),&GameCenter::pop_pending_event);
ClassDB::bind_method(D_METHOD("get_pending_event_count"),&GameCenter::get_pending_event_count);
ClassDB::bind_method(D_METHOD("pop_pending_event"),&GameCenter::pop_pending_event);
};

View file

@ -44,14 +44,14 @@ extern "C" {
ICloud* ICloud::instance = NULL;
void ICloud::_bind_methods() {
ClassDB::bind_method(_MD("remove_key"),&ICloud::remove_key);
ClassDB::bind_method(_MD("set_key_values"),&ICloud::set_key_values);
ClassDB::bind_method(_MD("get_key_value"),&ICloud::get_key_value);
ClassDB::bind_method(_MD("synchronize_key_values"),&ICloud::synchronize_key_values);
ClassDB::bind_method(_MD("get_all_key_values"),&ICloud::get_all_key_values);
ClassDB::bind_method(D_METHOD("remove_key"),&ICloud::remove_key);
ClassDB::bind_method(D_METHOD("set_key_values"),&ICloud::set_key_values);
ClassDB::bind_method(D_METHOD("get_key_value"),&ICloud::get_key_value);
ClassDB::bind_method(D_METHOD("synchronize_key_values"),&ICloud::synchronize_key_values);
ClassDB::bind_method(D_METHOD("get_all_key_values"),&ICloud::get_all_key_values);
ClassDB::bind_method(_MD("get_pending_event_count"),&ICloud::get_pending_event_count);
ClassDB::bind_method(_MD("pop_pending_event"),&ICloud::pop_pending_event);
ClassDB::bind_method(D_METHOD("get_pending_event_count"),&ICloud::get_pending_event_count);
ClassDB::bind_method(D_METHOD("pop_pending_event"),&ICloud::pop_pending_event);
};
int ICloud::get_pending_event_count() {

View file

@ -66,13 +66,13 @@ NSMutableDictionary* pending_transactions = [NSMutableDictionary dictionary];
InAppStore* InAppStore::instance = NULL;
void InAppStore::_bind_methods() {
ClassDB::bind_method(_MD("request_product_info"),&InAppStore::request_product_info);
ClassDB::bind_method(_MD("purchase"),&InAppStore::purchase);
ClassDB::bind_method(D_METHOD("request_product_info"),&InAppStore::request_product_info);
ClassDB::bind_method(D_METHOD("purchase"),&InAppStore::purchase);
ClassDB::bind_method(_MD("get_pending_event_count"),&InAppStore::get_pending_event_count);
ClassDB::bind_method(_MD("pop_pending_event"),&InAppStore::pop_pending_event);
ClassDB::bind_method(_MD("finish_transaction"),&InAppStore::finish_transaction);
ClassDB::bind_method(_MD("set_auto_finish_transaction"),&InAppStore::set_auto_finish_transaction);
ClassDB::bind_method(D_METHOD("get_pending_event_count"),&InAppStore::get_pending_event_count);
ClassDB::bind_method(D_METHOD("pop_pending_event"),&InAppStore::pop_pending_event);
ClassDB::bind_method(D_METHOD("finish_transaction"),&InAppStore::finish_transaction);
ClassDB::bind_method(D_METHOD("set_auto_finish_transaction"),&InAppStore::set_auto_finish_transaction);
};
@interface ProductsDelegate : NSObject<SKProductsRequestDelegate> {

View file

@ -32,7 +32,7 @@
void iOS::_bind_methods() {
ClassDB::bind_method(_MD("get_rate_url","app_id"),&iOS::get_rate_url);
ClassDB::bind_method(D_METHOD("get_rate_url","app_id"),&iOS::get_rate_url);
};
String iOS::get_rate_url(int p_app_id) const {

View file

@ -156,7 +156,7 @@ Variant JavaScript::eval(const String& p_code, bool p_use_global_exec_context) {
void JavaScript::_bind_methods() {
ClassDB::bind_method(_MD("eval", "code", "use_global_execution_context"), &JavaScript::eval, false);
ClassDB::bind_method(D_METHOD("eval", "code", "use_global_execution_context"), &JavaScript::eval, false);
}
JavaScript::JavaScript() {

View file

@ -222,32 +222,32 @@ void SpriteFrames::_set_animations(const Array& p_animations) {
void SpriteFrames::_bind_methods() {
ClassDB::bind_method(_MD("add_animation","anim"),&SpriteFrames::add_animation);
ClassDB::bind_method(_MD("has_animation","anim"),&SpriteFrames::has_animation);
ClassDB::bind_method(_MD("remove_animation","anim"),&SpriteFrames::remove_animation);
ClassDB::bind_method(_MD("rename_animation","anim","newname"),&SpriteFrames::rename_animation);
ClassDB::bind_method(D_METHOD("add_animation","anim"),&SpriteFrames::add_animation);
ClassDB::bind_method(D_METHOD("has_animation","anim"),&SpriteFrames::has_animation);
ClassDB::bind_method(D_METHOD("remove_animation","anim"),&SpriteFrames::remove_animation);
ClassDB::bind_method(D_METHOD("rename_animation","anim","newname"),&SpriteFrames::rename_animation);
ClassDB::bind_method(_MD("set_animation_speed","anim","speed"),&SpriteFrames::set_animation_speed);
ClassDB::bind_method(_MD("get_animation_speed","anim"),&SpriteFrames::get_animation_speed);
ClassDB::bind_method(D_METHOD("set_animation_speed","anim","speed"),&SpriteFrames::set_animation_speed);
ClassDB::bind_method(D_METHOD("get_animation_speed","anim"),&SpriteFrames::get_animation_speed);
ClassDB::bind_method(_MD("set_animation_loop","anim","loop"),&SpriteFrames::set_animation_loop);
ClassDB::bind_method(_MD("get_animation_loop","anim"),&SpriteFrames::get_animation_loop);
ClassDB::bind_method(D_METHOD("set_animation_loop","anim","loop"),&SpriteFrames::set_animation_loop);
ClassDB::bind_method(D_METHOD("get_animation_loop","anim"),&SpriteFrames::get_animation_loop);
ClassDB::bind_method(_MD("add_frame","anim","frame","atpos"),&SpriteFrames::add_frame,DEFVAL(-1));
ClassDB::bind_method(_MD("get_frame_count","anim"),&SpriteFrames::get_frame_count);
ClassDB::bind_method(_MD("get_frame","anim","idx"),&SpriteFrames::get_frame);
ClassDB::bind_method(_MD("set_frame","anim","idx","txt"),&SpriteFrames::set_frame);
ClassDB::bind_method(_MD("remove_frame","anim","idx"),&SpriteFrames::remove_frame);
ClassDB::bind_method(_MD("clear","anim"),&SpriteFrames::clear);
ClassDB::bind_method(_MD("clear_all"),&SpriteFrames::clear_all);
ClassDB::bind_method(D_METHOD("add_frame","anim","frame","atpos"),&SpriteFrames::add_frame,DEFVAL(-1));
ClassDB::bind_method(D_METHOD("get_frame_count","anim"),&SpriteFrames::get_frame_count);
ClassDB::bind_method(D_METHOD("get_frame","anim","idx"),&SpriteFrames::get_frame);
ClassDB::bind_method(D_METHOD("set_frame","anim","idx","txt"),&SpriteFrames::set_frame);
ClassDB::bind_method(D_METHOD("remove_frame","anim","idx"),&SpriteFrames::remove_frame);
ClassDB::bind_method(D_METHOD("clear","anim"),&SpriteFrames::clear);
ClassDB::bind_method(D_METHOD("clear_all"),&SpriteFrames::clear_all);
ClassDB::bind_method(_MD("_set_frames"),&SpriteFrames::_set_frames);
ClassDB::bind_method(_MD("_get_frames"),&SpriteFrames::_get_frames);
ClassDB::bind_method(D_METHOD("_set_frames"),&SpriteFrames::_set_frames);
ClassDB::bind_method(D_METHOD("_get_frames"),&SpriteFrames::_get_frames);
ADD_PROPERTYNZ( PropertyInfo(Variant::ARRAY,"frames",PROPERTY_HINT_NONE,"",0),"_set_frames","_get_frames"); //compatibility
ClassDB::bind_method(_MD("_set_animations"),&SpriteFrames::_set_animations);
ClassDB::bind_method(_MD("_get_animations"),&SpriteFrames::_get_animations);
ClassDB::bind_method(D_METHOD("_set_animations"),&SpriteFrames::_set_animations);
ClassDB::bind_method(D_METHOD("_get_animations"),&SpriteFrames::_get_animations);
ADD_PROPERTYNZ( PropertyInfo(Variant::ARRAY,"animations",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"_set_animations","_get_animations"); //compatibility
@ -653,36 +653,36 @@ String AnimatedSprite::get_configuration_warning() const {
void AnimatedSprite::_bind_methods() {
ClassDB::bind_method(_MD("set_sprite_frames","sprite_frames:SpriteFrames"),&AnimatedSprite::set_sprite_frames);
ClassDB::bind_method(_MD("get_sprite_frames:SpriteFrames"),&AnimatedSprite::get_sprite_frames);
ClassDB::bind_method(D_METHOD("set_sprite_frames","sprite_frames:SpriteFrames"),&AnimatedSprite::set_sprite_frames);
ClassDB::bind_method(D_METHOD("get_sprite_frames:SpriteFrames"),&AnimatedSprite::get_sprite_frames);
ClassDB::bind_method(_MD("set_animation","animation"),&AnimatedSprite::set_animation);
ClassDB::bind_method(_MD("get_animation"),&AnimatedSprite::get_animation);
ClassDB::bind_method(D_METHOD("set_animation","animation"),&AnimatedSprite::set_animation);
ClassDB::bind_method(D_METHOD("get_animation"),&AnimatedSprite::get_animation);
ClassDB::bind_method(_MD("_set_playing","playing"),&AnimatedSprite::_set_playing);
ClassDB::bind_method(_MD("_is_playing"),&AnimatedSprite::_is_playing);
ClassDB::bind_method(D_METHOD("_set_playing","playing"),&AnimatedSprite::_set_playing);
ClassDB::bind_method(D_METHOD("_is_playing"),&AnimatedSprite::_is_playing);
ClassDB::bind_method(_MD("play","anim"),&AnimatedSprite::play,DEFVAL(StringName()));
ClassDB::bind_method(_MD("stop"),&AnimatedSprite::stop);
ClassDB::bind_method(_MD("is_playing"),&AnimatedSprite::is_playing);
ClassDB::bind_method(D_METHOD("play","anim"),&AnimatedSprite::play,DEFVAL(StringName()));
ClassDB::bind_method(D_METHOD("stop"),&AnimatedSprite::stop);
ClassDB::bind_method(D_METHOD("is_playing"),&AnimatedSprite::is_playing);
ClassDB::bind_method(_MD("set_centered","centered"),&AnimatedSprite::set_centered);
ClassDB::bind_method(_MD("is_centered"),&AnimatedSprite::is_centered);
ClassDB::bind_method(D_METHOD("set_centered","centered"),&AnimatedSprite::set_centered);
ClassDB::bind_method(D_METHOD("is_centered"),&AnimatedSprite::is_centered);
ClassDB::bind_method(_MD("set_offset","offset"),&AnimatedSprite::set_offset);
ClassDB::bind_method(_MD("get_offset"),&AnimatedSprite::get_offset);
ClassDB::bind_method(D_METHOD("set_offset","offset"),&AnimatedSprite::set_offset);
ClassDB::bind_method(D_METHOD("get_offset"),&AnimatedSprite::get_offset);
ClassDB::bind_method(_MD("set_flip_h","flip_h"),&AnimatedSprite::set_flip_h);
ClassDB::bind_method(_MD("is_flipped_h"),&AnimatedSprite::is_flipped_h);
ClassDB::bind_method(D_METHOD("set_flip_h","flip_h"),&AnimatedSprite::set_flip_h);
ClassDB::bind_method(D_METHOD("is_flipped_h"),&AnimatedSprite::is_flipped_h);
ClassDB::bind_method(_MD("set_flip_v","flip_v"),&AnimatedSprite::set_flip_v);
ClassDB::bind_method(_MD("is_flipped_v"),&AnimatedSprite::is_flipped_v);
ClassDB::bind_method(D_METHOD("set_flip_v","flip_v"),&AnimatedSprite::set_flip_v);
ClassDB::bind_method(D_METHOD("is_flipped_v"),&AnimatedSprite::is_flipped_v);
ClassDB::bind_method(_MD("set_frame","frame"),&AnimatedSprite::set_frame);
ClassDB::bind_method(_MD("get_frame"),&AnimatedSprite::get_frame);
ClassDB::bind_method(D_METHOD("set_frame","frame"),&AnimatedSprite::set_frame);
ClassDB::bind_method(D_METHOD("get_frame"),&AnimatedSprite::get_frame);
ClassDB::bind_method(_MD("_res_changed"),&AnimatedSprite::_res_changed);
ClassDB::bind_method(D_METHOD("_res_changed"),&AnimatedSprite::_res_changed);
ADD_SIGNAL(MethodInfo("frame_changed"));
ADD_SIGNAL(MethodInfo("animation_finished"));

View file

@ -587,62 +587,62 @@ bool Area2D::get_layer_mask_bit(int p_bit) const{
void Area2D::_bind_methods() {
ClassDB::bind_method(_MD("_body_enter_tree","id"),&Area2D::_body_enter_tree);
ClassDB::bind_method(_MD("_body_exit_tree","id"),&Area2D::_body_exit_tree);
ClassDB::bind_method(D_METHOD("_body_enter_tree","id"),&Area2D::_body_enter_tree);
ClassDB::bind_method(D_METHOD("_body_exit_tree","id"),&Area2D::_body_exit_tree);
ClassDB::bind_method(_MD("_area_enter_tree","id"),&Area2D::_area_enter_tree);
ClassDB::bind_method(_MD("_area_exit_tree","id"),&Area2D::_area_exit_tree);
ClassDB::bind_method(D_METHOD("_area_enter_tree","id"),&Area2D::_area_enter_tree);
ClassDB::bind_method(D_METHOD("_area_exit_tree","id"),&Area2D::_area_exit_tree);
ClassDB::bind_method(_MD("set_space_override_mode","enable"),&Area2D::set_space_override_mode);
ClassDB::bind_method(_MD("get_space_override_mode"),&Area2D::get_space_override_mode);
ClassDB::bind_method(D_METHOD("set_space_override_mode","enable"),&Area2D::set_space_override_mode);
ClassDB::bind_method(D_METHOD("get_space_override_mode"),&Area2D::get_space_override_mode);
ClassDB::bind_method(_MD("set_gravity_is_point","enable"),&Area2D::set_gravity_is_point);
ClassDB::bind_method(_MD("is_gravity_a_point"),&Area2D::is_gravity_a_point);
ClassDB::bind_method(D_METHOD("set_gravity_is_point","enable"),&Area2D::set_gravity_is_point);
ClassDB::bind_method(D_METHOD("is_gravity_a_point"),&Area2D::is_gravity_a_point);
ClassDB::bind_method(_MD("set_gravity_distance_scale","distance_scale"),&Area2D::set_gravity_distance_scale);
ClassDB::bind_method(_MD("get_gravity_distance_scale"),&Area2D::get_gravity_distance_scale);
ClassDB::bind_method(D_METHOD("set_gravity_distance_scale","distance_scale"),&Area2D::set_gravity_distance_scale);
ClassDB::bind_method(D_METHOD("get_gravity_distance_scale"),&Area2D::get_gravity_distance_scale);
ClassDB::bind_method(_MD("set_gravity_vector","vector"),&Area2D::set_gravity_vector);
ClassDB::bind_method(_MD("get_gravity_vector"),&Area2D::get_gravity_vector);
ClassDB::bind_method(D_METHOD("set_gravity_vector","vector"),&Area2D::set_gravity_vector);
ClassDB::bind_method(D_METHOD("get_gravity_vector"),&Area2D::get_gravity_vector);
ClassDB::bind_method(_MD("set_gravity","gravity"),&Area2D::set_gravity);
ClassDB::bind_method(_MD("get_gravity"),&Area2D::get_gravity);
ClassDB::bind_method(D_METHOD("set_gravity","gravity"),&Area2D::set_gravity);
ClassDB::bind_method(D_METHOD("get_gravity"),&Area2D::get_gravity);
ClassDB::bind_method(_MD("set_linear_damp","linear_damp"),&Area2D::set_linear_damp);
ClassDB::bind_method(_MD("get_linear_damp"),&Area2D::get_linear_damp);
ClassDB::bind_method(D_METHOD("set_linear_damp","linear_damp"),&Area2D::set_linear_damp);
ClassDB::bind_method(D_METHOD("get_linear_damp"),&Area2D::get_linear_damp);
ClassDB::bind_method(_MD("set_angular_damp","angular_damp"),&Area2D::set_angular_damp);
ClassDB::bind_method(_MD("get_angular_damp"),&Area2D::get_angular_damp);
ClassDB::bind_method(D_METHOD("set_angular_damp","angular_damp"),&Area2D::set_angular_damp);
ClassDB::bind_method(D_METHOD("get_angular_damp"),&Area2D::get_angular_damp);
ClassDB::bind_method(_MD("set_priority","priority"),&Area2D::set_priority);
ClassDB::bind_method(_MD("get_priority"),&Area2D::get_priority);
ClassDB::bind_method(D_METHOD("set_priority","priority"),&Area2D::set_priority);
ClassDB::bind_method(D_METHOD("get_priority"),&Area2D::get_priority);
ClassDB::bind_method(_MD("set_collision_mask","collision_mask"),&Area2D::set_collision_mask);
ClassDB::bind_method(_MD("get_collision_mask"),&Area2D::get_collision_mask);
ClassDB::bind_method(D_METHOD("set_collision_mask","collision_mask"),&Area2D::set_collision_mask);
ClassDB::bind_method(D_METHOD("get_collision_mask"),&Area2D::get_collision_mask);
ClassDB::bind_method(_MD("set_layer_mask","layer_mask"),&Area2D::set_layer_mask);
ClassDB::bind_method(_MD("get_layer_mask"),&Area2D::get_layer_mask);
ClassDB::bind_method(D_METHOD("set_layer_mask","layer_mask"),&Area2D::set_layer_mask);
ClassDB::bind_method(D_METHOD("get_layer_mask"),&Area2D::get_layer_mask);
ClassDB::bind_method(_MD("set_collision_mask_bit","bit","value"),&Area2D::set_collision_mask_bit);
ClassDB::bind_method(_MD("get_collision_mask_bit","bit"),&Area2D::get_collision_mask_bit);
ClassDB::bind_method(D_METHOD("set_collision_mask_bit","bit","value"),&Area2D::set_collision_mask_bit);
ClassDB::bind_method(D_METHOD("get_collision_mask_bit","bit"),&Area2D::get_collision_mask_bit);
ClassDB::bind_method(_MD("set_layer_mask_bit","bit","value"),&Area2D::set_layer_mask_bit);
ClassDB::bind_method(_MD("get_layer_mask_bit","bit"),&Area2D::get_layer_mask_bit);
ClassDB::bind_method(D_METHOD("set_layer_mask_bit","bit","value"),&Area2D::set_layer_mask_bit);
ClassDB::bind_method(D_METHOD("get_layer_mask_bit","bit"),&Area2D::get_layer_mask_bit);
ClassDB::bind_method(_MD("set_monitoring","enable"),&Area2D::set_monitoring);
ClassDB::bind_method(_MD("is_monitoring"),&Area2D::is_monitoring);
ClassDB::bind_method(D_METHOD("set_monitoring","enable"),&Area2D::set_monitoring);
ClassDB::bind_method(D_METHOD("is_monitoring"),&Area2D::is_monitoring);
ClassDB::bind_method(_MD("set_monitorable","enable"),&Area2D::set_monitorable);
ClassDB::bind_method(_MD("is_monitorable"),&Area2D::is_monitorable);
ClassDB::bind_method(D_METHOD("set_monitorable","enable"),&Area2D::set_monitorable);
ClassDB::bind_method(D_METHOD("is_monitorable"),&Area2D::is_monitorable);
ClassDB::bind_method(_MD("get_overlapping_bodies"),&Area2D::get_overlapping_bodies);
ClassDB::bind_method(_MD("get_overlapping_areas"),&Area2D::get_overlapping_areas);
ClassDB::bind_method(D_METHOD("get_overlapping_bodies"),&Area2D::get_overlapping_bodies);
ClassDB::bind_method(D_METHOD("get_overlapping_areas"),&Area2D::get_overlapping_areas);
ClassDB::bind_method(_MD("overlaps_body","body"),&Area2D::overlaps_body);
ClassDB::bind_method(_MD("overlaps_area","area"),&Area2D::overlaps_area);
ClassDB::bind_method(D_METHOD("overlaps_body","body"),&Area2D::overlaps_body);
ClassDB::bind_method(D_METHOD("overlaps_area","area"),&Area2D::overlaps_area);
ClassDB::bind_method(_MD("_body_inout"),&Area2D::_body_inout);
ClassDB::bind_method(_MD("_area_inout"),&Area2D::_area_inout);
ClassDB::bind_method(D_METHOD("_body_inout"),&Area2D::_body_inout);
ClassDB::bind_method(D_METHOD("_area_inout"),&Area2D::_area_inout);
ADD_SIGNAL( MethodInfo("body_shape_entered",PropertyInfo(Variant::INT,"body_id"),PropertyInfo(Variant::OBJECT,"body",PROPERTY_HINT_RESOURCE_TYPE,"PhysicsBody2D"),PropertyInfo(Variant::INT,"body_shape"),PropertyInfo(Variant::INT,"area_shape")));

View file

@ -77,11 +77,11 @@ BackBufferCopy::CopyMode BackBufferCopy::get_copy_mode() const{
void BackBufferCopy::_bind_methods() {
ClassDB::bind_method(_MD("set_rect","rect"),&BackBufferCopy::set_rect);
ClassDB::bind_method(_MD("get_rect"),&BackBufferCopy::get_rect);
ClassDB::bind_method(D_METHOD("set_rect","rect"),&BackBufferCopy::set_rect);
ClassDB::bind_method(D_METHOD("get_rect"),&BackBufferCopy::get_rect);
ClassDB::bind_method(_MD("set_copy_mode","copy_mode"),&BackBufferCopy::set_copy_mode);
ClassDB::bind_method(_MD("get_copy_mode"),&BackBufferCopy::get_copy_mode);
ClassDB::bind_method(D_METHOD("set_copy_mode","copy_mode"),&BackBufferCopy::set_copy_mode);
ClassDB::bind_method(D_METHOD("get_copy_mode"),&BackBufferCopy::get_copy_mode);
ADD_PROPERTY( PropertyInfo(Variant::INT,"copy_mode",PROPERTY_HINT_ENUM,"Disabled,Rect,Viewport"),"set_copy_mode","get_copy_mode");
ADD_PROPERTY( PropertyInfo(Variant::RECT2,"rect"),"set_rect","get_rect");

View file

@ -590,65 +590,65 @@ Node* Camera2D::get_custom_viewport() const {
void Camera2D::_bind_methods() {
ClassDB::bind_method(_MD("set_offset","offset"),&Camera2D::set_offset);
ClassDB::bind_method(_MD("get_offset"),&Camera2D::get_offset);
ClassDB::bind_method(D_METHOD("set_offset","offset"),&Camera2D::set_offset);
ClassDB::bind_method(D_METHOD("get_offset"),&Camera2D::get_offset);
ClassDB::bind_method(_MD("set_anchor_mode","anchor_mode"),&Camera2D::set_anchor_mode);
ClassDB::bind_method(_MD("get_anchor_mode"),&Camera2D::get_anchor_mode);
ClassDB::bind_method(D_METHOD("set_anchor_mode","anchor_mode"),&Camera2D::set_anchor_mode);
ClassDB::bind_method(D_METHOD("get_anchor_mode"),&Camera2D::get_anchor_mode);
ClassDB::bind_method(_MD("set_rotating","rotating"),&Camera2D::set_rotating);
ClassDB::bind_method(_MD("is_rotating"),&Camera2D::is_rotating);
ClassDB::bind_method(D_METHOD("set_rotating","rotating"),&Camera2D::set_rotating);
ClassDB::bind_method(D_METHOD("is_rotating"),&Camera2D::is_rotating);
ClassDB::bind_method(_MD("make_current"),&Camera2D::make_current);
ClassDB::bind_method(_MD("clear_current"),&Camera2D::clear_current);
ClassDB::bind_method(_MD("_make_current"),&Camera2D::_make_current);
ClassDB::bind_method(D_METHOD("make_current"),&Camera2D::make_current);
ClassDB::bind_method(D_METHOD("clear_current"),&Camera2D::clear_current);
ClassDB::bind_method(D_METHOD("_make_current"),&Camera2D::_make_current);
ClassDB::bind_method(_MD("_update_scroll"),&Camera2D::_update_scroll);
ClassDB::bind_method(D_METHOD("_update_scroll"),&Camera2D::_update_scroll);
ClassDB::bind_method(_MD("_set_current","current"),&Camera2D::_set_current);
ClassDB::bind_method(_MD("is_current"),&Camera2D::is_current);
ClassDB::bind_method(D_METHOD("_set_current","current"),&Camera2D::_set_current);
ClassDB::bind_method(D_METHOD("is_current"),&Camera2D::is_current);
ClassDB::bind_method(_MD("set_limit","margin","limit"),&Camera2D::set_limit);
ClassDB::bind_method(_MD("get_limit","margin"),&Camera2D::get_limit);
ClassDB::bind_method(D_METHOD("set_limit","margin","limit"),&Camera2D::set_limit);
ClassDB::bind_method(D_METHOD("get_limit","margin"),&Camera2D::get_limit);
ClassDB::bind_method(_MD("set_limit_smoothing_enabled","limit_smoothing_enabled"),&Camera2D::set_limit_smoothing_enabled);
ClassDB::bind_method(_MD("is_limit_smoothing_enabled"),&Camera2D::is_limit_smoothing_enabled);
ClassDB::bind_method(D_METHOD("set_limit_smoothing_enabled","limit_smoothing_enabled"),&Camera2D::set_limit_smoothing_enabled);
ClassDB::bind_method(D_METHOD("is_limit_smoothing_enabled"),&Camera2D::is_limit_smoothing_enabled);
ClassDB::bind_method(_MD("set_v_drag_enabled","enabled"),&Camera2D::set_v_drag_enabled);
ClassDB::bind_method(_MD("is_v_drag_enabled"),&Camera2D::is_v_drag_enabled);
ClassDB::bind_method(D_METHOD("set_v_drag_enabled","enabled"),&Camera2D::set_v_drag_enabled);
ClassDB::bind_method(D_METHOD("is_v_drag_enabled"),&Camera2D::is_v_drag_enabled);
ClassDB::bind_method(_MD("set_h_drag_enabled","enabled"),&Camera2D::set_h_drag_enabled);
ClassDB::bind_method(_MD("is_h_drag_enabled"),&Camera2D::is_h_drag_enabled);
ClassDB::bind_method(D_METHOD("set_h_drag_enabled","enabled"),&Camera2D::set_h_drag_enabled);
ClassDB::bind_method(D_METHOD("is_h_drag_enabled"),&Camera2D::is_h_drag_enabled);
ClassDB::bind_method(_MD("set_v_offset","ofs"),&Camera2D::set_v_offset);
ClassDB::bind_method(_MD("get_v_offset"),&Camera2D::get_v_offset);
ClassDB::bind_method(D_METHOD("set_v_offset","ofs"),&Camera2D::set_v_offset);
ClassDB::bind_method(D_METHOD("get_v_offset"),&Camera2D::get_v_offset);
ClassDB::bind_method(_MD("set_h_offset","ofs"),&Camera2D::set_h_offset);
ClassDB::bind_method(_MD("get_h_offset"),&Camera2D::get_h_offset);
ClassDB::bind_method(D_METHOD("set_h_offset","ofs"),&Camera2D::set_h_offset);
ClassDB::bind_method(D_METHOD("get_h_offset"),&Camera2D::get_h_offset);
ClassDB::bind_method(_MD("set_drag_margin","margin","drag_margin"),&Camera2D::set_drag_margin);
ClassDB::bind_method(_MD("get_drag_margin","margin"),&Camera2D::get_drag_margin);
ClassDB::bind_method(D_METHOD("set_drag_margin","margin","drag_margin"),&Camera2D::set_drag_margin);
ClassDB::bind_method(D_METHOD("get_drag_margin","margin"),&Camera2D::get_drag_margin);
ClassDB::bind_method(_MD("get_camera_pos"),&Camera2D::get_camera_pos);
ClassDB::bind_method(_MD("get_camera_screen_center"),&Camera2D::get_camera_screen_center);
ClassDB::bind_method(D_METHOD("get_camera_pos"),&Camera2D::get_camera_pos);
ClassDB::bind_method(D_METHOD("get_camera_screen_center"),&Camera2D::get_camera_screen_center);
ClassDB::bind_method(_MD("set_zoom","zoom"),&Camera2D::set_zoom);
ClassDB::bind_method(_MD("get_zoom"),&Camera2D::get_zoom);
ClassDB::bind_method(D_METHOD("set_zoom","zoom"),&Camera2D::set_zoom);
ClassDB::bind_method(D_METHOD("get_zoom"),&Camera2D::get_zoom);
ClassDB::bind_method(_MD("set_custom_viewport","viewport:Viewport"),&Camera2D::set_custom_viewport);
ClassDB::bind_method(_MD("get_custom_viewport:Viewport"),&Camera2D::get_custom_viewport);
ClassDB::bind_method(D_METHOD("set_custom_viewport","viewport:Viewport"),&Camera2D::set_custom_viewport);
ClassDB::bind_method(D_METHOD("get_custom_viewport:Viewport"),&Camera2D::get_custom_viewport);
ClassDB::bind_method(_MD("set_follow_smoothing","follow_smoothing"),&Camera2D::set_follow_smoothing);
ClassDB::bind_method(_MD("get_follow_smoothing"),&Camera2D::get_follow_smoothing);
ClassDB::bind_method(D_METHOD("set_follow_smoothing","follow_smoothing"),&Camera2D::set_follow_smoothing);
ClassDB::bind_method(D_METHOD("get_follow_smoothing"),&Camera2D::get_follow_smoothing);
ClassDB::bind_method(_MD("set_enable_follow_smoothing","follow_smoothing"),&Camera2D::set_enable_follow_smoothing);
ClassDB::bind_method(_MD("is_follow_smoothing_enabled"),&Camera2D::is_follow_smoothing_enabled);
ClassDB::bind_method(D_METHOD("set_enable_follow_smoothing","follow_smoothing"),&Camera2D::set_enable_follow_smoothing);
ClassDB::bind_method(D_METHOD("is_follow_smoothing_enabled"),&Camera2D::is_follow_smoothing_enabled);
ClassDB::bind_method(_MD("force_update_scroll"),&Camera2D::force_update_scroll);
ClassDB::bind_method(_MD("reset_smoothing"),&Camera2D::reset_smoothing);
ClassDB::bind_method(_MD("align"),&Camera2D::align);
ClassDB::bind_method(D_METHOD("force_update_scroll"),&Camera2D::force_update_scroll);
ClassDB::bind_method(D_METHOD("reset_smoothing"),&Camera2D::reset_smoothing);
ClassDB::bind_method(D_METHOD("align"),&Camera2D::align);
ClassDB::bind_method(_MD("_set_old_smoothing","follow_smoothing"),&Camera2D::_set_old_smoothing);
ClassDB::bind_method(D_METHOD("_set_old_smoothing","follow_smoothing"),&Camera2D::_set_old_smoothing);
ADD_PROPERTYNZ( PropertyInfo(Variant::VECTOR2,"offset"),"set_offset","get_offset");
ADD_PROPERTY( PropertyInfo(Variant::INT,"anchor_mode",PROPERTY_HINT_ENUM,"Fixed TopLeft,Drag Center"),"set_anchor_mode","get_anchor_mode");

View file

@ -135,10 +135,10 @@ Variant CanvasItemMaterial::get_shader_param(const StringName& p_param) const{
void CanvasItemMaterial::_bind_methods() {
ClassDB::bind_method(_MD("set_shader","shader:Shader"),&CanvasItemMaterial::set_shader);
ClassDB::bind_method(_MD("get_shader:Shader"),&CanvasItemMaterial::get_shader);
ClassDB::bind_method(_MD("set_shader_param","param","value"),&CanvasItemMaterial::set_shader_param);
ClassDB::bind_method(_MD("get_shader_param","param"),&CanvasItemMaterial::get_shader_param);
ClassDB::bind_method(D_METHOD("set_shader","shader:Shader"),&CanvasItemMaterial::set_shader);
ClassDB::bind_method(D_METHOD("get_shader:Shader"),&CanvasItemMaterial::get_shader);
ClassDB::bind_method(D_METHOD("set_shader_param","param","value"),&CanvasItemMaterial::set_shader_param);
ClassDB::bind_method(D_METHOD("get_shader_param","param"),&CanvasItemMaterial::get_shader_param);
@ -905,88 +905,88 @@ Vector2 CanvasItem::get_local_mouse_pos() const{
void CanvasItem::_bind_methods() {
ClassDB::bind_method(_MD("_toplevel_raise_self"),&CanvasItem::_toplevel_raise_self);
ClassDB::bind_method(_MD("_update_callback"),&CanvasItem::_update_callback);
ClassDB::bind_method(D_METHOD("_toplevel_raise_self"),&CanvasItem::_toplevel_raise_self);
ClassDB::bind_method(D_METHOD("_update_callback"),&CanvasItem::_update_callback);
ClassDB::bind_method(_MD("edit_set_state","state"),&CanvasItem::edit_set_state);
ClassDB::bind_method(_MD("edit_get_state:Variant"),&CanvasItem::edit_get_state);
ClassDB::bind_method(_MD("edit_set_rect","rect"),&CanvasItem::edit_set_rect);
ClassDB::bind_method(_MD("edit_rotate","degrees"),&CanvasItem::edit_rotate);
ClassDB::bind_method(D_METHOD("edit_set_state","state"),&CanvasItem::edit_set_state);
ClassDB::bind_method(D_METHOD("edit_get_state:Variant"),&CanvasItem::edit_get_state);
ClassDB::bind_method(D_METHOD("edit_set_rect","rect"),&CanvasItem::edit_set_rect);
ClassDB::bind_method(D_METHOD("edit_rotate","degrees"),&CanvasItem::edit_rotate);
ClassDB::bind_method(_MD("get_item_rect"),&CanvasItem::get_item_rect);
ClassDB::bind_method(_MD("get_item_and_children_rect"),&CanvasItem::get_item_and_children_rect);
//ClassDB::bind_method(_MD("get_transform"),&CanvasItem::get_transform);
ClassDB::bind_method(D_METHOD("get_item_rect"),&CanvasItem::get_item_rect);
ClassDB::bind_method(D_METHOD("get_item_and_children_rect"),&CanvasItem::get_item_and_children_rect);
//ClassDB::bind_method(D_METHOD("get_transform"),&CanvasItem::get_transform);
ClassDB::bind_method(_MD("get_canvas_item"),&CanvasItem::get_canvas_item);
ClassDB::bind_method(D_METHOD("get_canvas_item"),&CanvasItem::get_canvas_item);
ClassDB::bind_method(_MD("set_visible"),&CanvasItem::set_visible);
ClassDB::bind_method(_MD("is_visible"),&CanvasItem::is_visible);
ClassDB::bind_method(_MD("is_visible_in_tree"),&CanvasItem::is_visible_in_tree);
ClassDB::bind_method(_MD("show"),&CanvasItem::show);
ClassDB::bind_method(_MD("hide"),&CanvasItem::hide);
ClassDB::bind_method(D_METHOD("set_visible"),&CanvasItem::set_visible);
ClassDB::bind_method(D_METHOD("is_visible"),&CanvasItem::is_visible);
ClassDB::bind_method(D_METHOD("is_visible_in_tree"),&CanvasItem::is_visible_in_tree);
ClassDB::bind_method(D_METHOD("show"),&CanvasItem::show);
ClassDB::bind_method(D_METHOD("hide"),&CanvasItem::hide);
ClassDB::bind_method(_MD("update"),&CanvasItem::update);
ClassDB::bind_method(D_METHOD("update"),&CanvasItem::update);
ClassDB::bind_method(_MD("set_as_toplevel","enable"),&CanvasItem::set_as_toplevel);
ClassDB::bind_method(_MD("is_set_as_toplevel"),&CanvasItem::is_set_as_toplevel);
ClassDB::bind_method(D_METHOD("set_as_toplevel","enable"),&CanvasItem::set_as_toplevel);
ClassDB::bind_method(D_METHOD("is_set_as_toplevel"),&CanvasItem::is_set_as_toplevel);
ClassDB::bind_method(_MD("set_light_mask","light_mask"),&CanvasItem::set_light_mask);
ClassDB::bind_method(_MD("get_light_mask"),&CanvasItem::get_light_mask);
ClassDB::bind_method(D_METHOD("set_light_mask","light_mask"),&CanvasItem::set_light_mask);
ClassDB::bind_method(D_METHOD("get_light_mask"),&CanvasItem::get_light_mask);
ClassDB::bind_method(_MD("set_modulate","modulate"),&CanvasItem::set_modulate);
ClassDB::bind_method(_MD("get_modulate"),&CanvasItem::get_modulate);
ClassDB::bind_method(_MD("set_self_modulate","self_modulate"),&CanvasItem::set_self_modulate);
ClassDB::bind_method(_MD("get_self_modulate"),&CanvasItem::get_self_modulate);
ClassDB::bind_method(D_METHOD("set_modulate","modulate"),&CanvasItem::set_modulate);
ClassDB::bind_method(D_METHOD("get_modulate"),&CanvasItem::get_modulate);
ClassDB::bind_method(D_METHOD("set_self_modulate","self_modulate"),&CanvasItem::set_self_modulate);
ClassDB::bind_method(D_METHOD("get_self_modulate"),&CanvasItem::get_self_modulate);
ClassDB::bind_method(_MD("set_draw_behind_parent","enable"),&CanvasItem::set_draw_behind_parent);
ClassDB::bind_method(_MD("is_draw_behind_parent_enabled"),&CanvasItem::is_draw_behind_parent_enabled);
ClassDB::bind_method(D_METHOD("set_draw_behind_parent","enable"),&CanvasItem::set_draw_behind_parent);
ClassDB::bind_method(D_METHOD("is_draw_behind_parent_enabled"),&CanvasItem::is_draw_behind_parent_enabled);
ClassDB::bind_method(_MD("_set_on_top","on_top"),&CanvasItem::_set_on_top);
ClassDB::bind_method(_MD("_is_on_top"),&CanvasItem::_is_on_top);
//ClassDB::bind_method(_MD("get_transform"),&CanvasItem::get_transform);
ClassDB::bind_method(D_METHOD("_set_on_top","on_top"),&CanvasItem::_set_on_top);
ClassDB::bind_method(D_METHOD("_is_on_top"),&CanvasItem::_is_on_top);
//ClassDB::bind_method(D_METHOD("get_transform"),&CanvasItem::get_transform);
ClassDB::bind_method(_MD("draw_line","from","to","color","width","antialiased"),&CanvasItem::draw_line,DEFVAL(1.0),DEFVAL(false));
ClassDB::bind_method(_MD("draw_rect","rect","color"),&CanvasItem::draw_rect);
ClassDB::bind_method(_MD("draw_circle","pos","radius","color"),&CanvasItem::draw_circle);
ClassDB::bind_method(_MD("draw_texture","texture:Texture","pos","modulate"),&CanvasItem::draw_texture,DEFVAL(Color(1,1,1,1)));
ClassDB::bind_method(_MD("draw_texture_rect","texture:Texture","rect","tile","modulate","transpose"),&CanvasItem::draw_texture_rect,DEFVAL(Color(1,1,1)),DEFVAL(false));
ClassDB::bind_method(_MD("draw_texture_rect_region","texture:Texture","rect","src_rect","modulate","transpose"),&CanvasItem::draw_texture_rect_region,DEFVAL(Color(1,1,1)),DEFVAL(false));
ClassDB::bind_method(_MD("draw_style_box","style_box:StyleBox","rect"),&CanvasItem::draw_style_box);
ClassDB::bind_method(_MD("draw_primitive","points","colors","uvs","texture:Texture","width"),&CanvasItem::draw_primitive,DEFVAL(Variant()),DEFVAL(1.0));
ClassDB::bind_method(_MD("draw_polygon","points","colors","uvs","texture:Texture"),&CanvasItem::draw_polygon,DEFVAL(PoolVector2Array()),DEFVAL(Variant()));
ClassDB::bind_method(_MD("draw_colored_polygon","points","color","uvs","texture:Texture"),&CanvasItem::draw_colored_polygon,DEFVAL(PoolVector2Array()),DEFVAL(Variant()));
ClassDB::bind_method(_MD("draw_string","font:Font","pos","text","modulate","clip_w"),&CanvasItem::draw_string,DEFVAL(Color(1,1,1)),DEFVAL(-1));
ClassDB::bind_method(_MD("draw_char","font:Font","pos","char","next","modulate"),&CanvasItem::draw_char,DEFVAL(Color(1,1,1)));
ClassDB::bind_method(D_METHOD("draw_line","from","to","color","width","antialiased"),&CanvasItem::draw_line,DEFVAL(1.0),DEFVAL(false));
ClassDB::bind_method(D_METHOD("draw_rect","rect","color"),&CanvasItem::draw_rect);
ClassDB::bind_method(D_METHOD("draw_circle","pos","radius","color"),&CanvasItem::draw_circle);
ClassDB::bind_method(D_METHOD("draw_texture","texture:Texture","pos","modulate"),&CanvasItem::draw_texture,DEFVAL(Color(1,1,1,1)));
ClassDB::bind_method(D_METHOD("draw_texture_rect","texture:Texture","rect","tile","modulate","transpose"),&CanvasItem::draw_texture_rect,DEFVAL(Color(1,1,1)),DEFVAL(false));
ClassDB::bind_method(D_METHOD("draw_texture_rect_region","texture:Texture","rect","src_rect","modulate","transpose"),&CanvasItem::draw_texture_rect_region,DEFVAL(Color(1,1,1)),DEFVAL(false));
ClassDB::bind_method(D_METHOD("draw_style_box","style_box:StyleBox","rect"),&CanvasItem::draw_style_box);
ClassDB::bind_method(D_METHOD("draw_primitive","points","colors","uvs","texture:Texture","width"),&CanvasItem::draw_primitive,DEFVAL(Variant()),DEFVAL(1.0));
ClassDB::bind_method(D_METHOD("draw_polygon","points","colors","uvs","texture:Texture"),&CanvasItem::draw_polygon,DEFVAL(PoolVector2Array()),DEFVAL(Variant()));
ClassDB::bind_method(D_METHOD("draw_colored_polygon","points","color","uvs","texture:Texture"),&CanvasItem::draw_colored_polygon,DEFVAL(PoolVector2Array()),DEFVAL(Variant()));
ClassDB::bind_method(D_METHOD("draw_string","font:Font","pos","text","modulate","clip_w"),&CanvasItem::draw_string,DEFVAL(Color(1,1,1)),DEFVAL(-1));
ClassDB::bind_method(D_METHOD("draw_char","font:Font","pos","char","next","modulate"),&CanvasItem::draw_char,DEFVAL(Color(1,1,1)));
ClassDB::bind_method(_MD("draw_set_transform","pos","rot","scale"),&CanvasItem::draw_set_transform);
ClassDB::bind_method(_MD("draw_set_transform_matrix","xform"),&CanvasItem::draw_set_transform_matrix);
ClassDB::bind_method(_MD("get_transform"),&CanvasItem::get_transform);
ClassDB::bind_method(_MD("get_global_transform"),&CanvasItem::get_global_transform);
ClassDB::bind_method(_MD("get_global_transform_with_canvas"),&CanvasItem::get_global_transform_with_canvas);
ClassDB::bind_method(_MD("get_viewport_transform"),&CanvasItem::get_viewport_transform);
ClassDB::bind_method(_MD("get_viewport_rect"),&CanvasItem::get_viewport_rect);
ClassDB::bind_method(_MD("get_canvas_transform"),&CanvasItem::get_canvas_transform);
ClassDB::bind_method(_MD("get_local_mouse_pos"),&CanvasItem::get_local_mouse_pos);
ClassDB::bind_method(_MD("get_global_mouse_pos"),&CanvasItem::get_global_mouse_pos);
ClassDB::bind_method(_MD("get_canvas"),&CanvasItem::get_canvas);
ClassDB::bind_method(_MD("get_world_2d"),&CanvasItem::get_world_2d);
//ClassDB::bind_method(_MD("get_viewport"),&CanvasItem::get_viewport);
ClassDB::bind_method(D_METHOD("draw_set_transform","pos","rot","scale"),&CanvasItem::draw_set_transform);
ClassDB::bind_method(D_METHOD("draw_set_transform_matrix","xform"),&CanvasItem::draw_set_transform_matrix);
ClassDB::bind_method(D_METHOD("get_transform"),&CanvasItem::get_transform);
ClassDB::bind_method(D_METHOD("get_global_transform"),&CanvasItem::get_global_transform);
ClassDB::bind_method(D_METHOD("get_global_transform_with_canvas"),&CanvasItem::get_global_transform_with_canvas);
ClassDB::bind_method(D_METHOD("get_viewport_transform"),&CanvasItem::get_viewport_transform);
ClassDB::bind_method(D_METHOD("get_viewport_rect"),&CanvasItem::get_viewport_rect);
ClassDB::bind_method(D_METHOD("get_canvas_transform"),&CanvasItem::get_canvas_transform);
ClassDB::bind_method(D_METHOD("get_local_mouse_pos"),&CanvasItem::get_local_mouse_pos);
ClassDB::bind_method(D_METHOD("get_global_mouse_pos"),&CanvasItem::get_global_mouse_pos);
ClassDB::bind_method(D_METHOD("get_canvas"),&CanvasItem::get_canvas);
ClassDB::bind_method(D_METHOD("get_world_2d"),&CanvasItem::get_world_2d);
//ClassDB::bind_method(D_METHOD("get_viewport"),&CanvasItem::get_viewport);
ClassDB::bind_method(_MD("set_material","material:CanvasItemMaterial"),&CanvasItem::set_material);
ClassDB::bind_method(_MD("get_material:CanvasItemMaterial"),&CanvasItem::get_material);
ClassDB::bind_method(D_METHOD("set_material","material:CanvasItemMaterial"),&CanvasItem::set_material);
ClassDB::bind_method(D_METHOD("get_material:CanvasItemMaterial"),&CanvasItem::get_material);
ClassDB::bind_method(_MD("set_use_parent_material","enable"),&CanvasItem::set_use_parent_material);
ClassDB::bind_method(_MD("get_use_parent_material"),&CanvasItem::get_use_parent_material);
ClassDB::bind_method(D_METHOD("set_use_parent_material","enable"),&CanvasItem::set_use_parent_material);
ClassDB::bind_method(D_METHOD("get_use_parent_material"),&CanvasItem::get_use_parent_material);
ClassDB::bind_method(_MD("set_notify_local_transform","enable"),&CanvasItem::set_notify_local_transform);
ClassDB::bind_method(_MD("is_local_transform_notification_enabled"),&CanvasItem::is_local_transform_notification_enabled);
ClassDB::bind_method(D_METHOD("set_notify_local_transform","enable"),&CanvasItem::set_notify_local_transform);
ClassDB::bind_method(D_METHOD("is_local_transform_notification_enabled"),&CanvasItem::is_local_transform_notification_enabled);
ClassDB::bind_method(_MD("set_notify_transform","enable"),&CanvasItem::set_notify_transform);
ClassDB::bind_method(_MD("is_transform_notification_enabled"),&CanvasItem::is_transform_notification_enabled);
ClassDB::bind_method(D_METHOD("set_notify_transform","enable"),&CanvasItem::set_notify_transform);
ClassDB::bind_method(D_METHOD("is_transform_notification_enabled"),&CanvasItem::is_transform_notification_enabled);
ClassDB::bind_method(_MD("make_canvas_pos_local","screen_point"),
ClassDB::bind_method(D_METHOD("make_canvas_pos_local","screen_point"),
&CanvasItem::make_canvas_pos_local);
ClassDB::bind_method(_MD("make_input_local","event"),&CanvasItem::make_input_local);
ClassDB::bind_method(D_METHOD("make_input_local","event"),&CanvasItem::make_input_local);
BIND_VMETHOD(MethodInfo("_draw"));

View file

@ -62,8 +62,8 @@ void CanvasModulate::_notification(int p_what) {
void CanvasModulate::_bind_methods(){
ClassDB::bind_method(_MD("set_color","color"),&CanvasModulate::set_color);
ClassDB::bind_method(_MD("get_color"),&CanvasModulate::get_color);
ClassDB::bind_method(D_METHOD("set_color","color"),&CanvasModulate::set_color);
ClassDB::bind_method(D_METHOD("get_color"),&CanvasModulate::get_color);
ADD_PROPERTY(PropertyInfo(Variant::COLOR,"color"),"set_color","get_color");
}

View file

@ -221,20 +221,20 @@ void CollisionObject2D::_update_pickable() {
void CollisionObject2D::_bind_methods() {
ClassDB::bind_method(_MD("add_shape","shape:Shape2D","transform"),&CollisionObject2D::add_shape,DEFVAL(Transform2D()));
ClassDB::bind_method(_MD("get_shape_count"),&CollisionObject2D::get_shape_count);
ClassDB::bind_method(_MD("set_shape","shape_idx","shape:Shape"),&CollisionObject2D::set_shape);
ClassDB::bind_method(_MD("set_shape_transform","shape_idx","transform"),&CollisionObject2D::set_shape_transform);
ClassDB::bind_method(_MD("set_shape_as_trigger","shape_idx","enable"),&CollisionObject2D::set_shape_as_trigger);
ClassDB::bind_method(_MD("get_shape:Shape2D","shape_idx"),&CollisionObject2D::get_shape);
ClassDB::bind_method(_MD("get_shape_transform","shape_idx"),&CollisionObject2D::get_shape_transform);
ClassDB::bind_method(_MD("is_shape_set_as_trigger","shape_idx"),&CollisionObject2D::is_shape_set_as_trigger);
ClassDB::bind_method(_MD("remove_shape","shape_idx"),&CollisionObject2D::remove_shape);
ClassDB::bind_method(_MD("clear_shapes"),&CollisionObject2D::clear_shapes);
ClassDB::bind_method(_MD("get_rid"),&CollisionObject2D::get_rid);
ClassDB::bind_method(D_METHOD("add_shape","shape:Shape2D","transform"),&CollisionObject2D::add_shape,DEFVAL(Transform2D()));
ClassDB::bind_method(D_METHOD("get_shape_count"),&CollisionObject2D::get_shape_count);
ClassDB::bind_method(D_METHOD("set_shape","shape_idx","shape:Shape"),&CollisionObject2D::set_shape);
ClassDB::bind_method(D_METHOD("set_shape_transform","shape_idx","transform"),&CollisionObject2D::set_shape_transform);
ClassDB::bind_method(D_METHOD("set_shape_as_trigger","shape_idx","enable"),&CollisionObject2D::set_shape_as_trigger);
ClassDB::bind_method(D_METHOD("get_shape:Shape2D","shape_idx"),&CollisionObject2D::get_shape);
ClassDB::bind_method(D_METHOD("get_shape_transform","shape_idx"),&CollisionObject2D::get_shape_transform);
ClassDB::bind_method(D_METHOD("is_shape_set_as_trigger","shape_idx"),&CollisionObject2D::is_shape_set_as_trigger);
ClassDB::bind_method(D_METHOD("remove_shape","shape_idx"),&CollisionObject2D::remove_shape);
ClassDB::bind_method(D_METHOD("clear_shapes"),&CollisionObject2D::clear_shapes);
ClassDB::bind_method(D_METHOD("get_rid"),&CollisionObject2D::get_rid);
ClassDB::bind_method(_MD("set_pickable","enabled"),&CollisionObject2D::set_pickable);
ClassDB::bind_method(_MD("is_pickable"),&CollisionObject2D::is_pickable);
ClassDB::bind_method(D_METHOD("set_pickable","enabled"),&CollisionObject2D::set_pickable);
ClassDB::bind_method(D_METHOD("is_pickable"),&CollisionObject2D::is_pickable);
BIND_VMETHOD( MethodInfo("_input_event",PropertyInfo(Variant::OBJECT,"viewport"),PropertyInfo(Variant::INPUT_EVENT,"event"),PropertyInfo(Variant::INT,"shape_idx")));

View file

@ -314,21 +314,21 @@ String CollisionPolygon2D::get_configuration_warning() const {
void CollisionPolygon2D::_bind_methods() {
ClassDB::bind_method(_MD("_add_to_collision_object"),&CollisionPolygon2D::_add_to_collision_object);
ClassDB::bind_method(_MD("set_polygon","polygon"),&CollisionPolygon2D::set_polygon);
ClassDB::bind_method(_MD("get_polygon"),&CollisionPolygon2D::get_polygon);
ClassDB::bind_method(D_METHOD("_add_to_collision_object"),&CollisionPolygon2D::_add_to_collision_object);
ClassDB::bind_method(D_METHOD("set_polygon","polygon"),&CollisionPolygon2D::set_polygon);
ClassDB::bind_method(D_METHOD("get_polygon"),&CollisionPolygon2D::get_polygon);
ClassDB::bind_method(_MD("set_build_mode","build_mode"),&CollisionPolygon2D::set_build_mode);
ClassDB::bind_method(_MD("get_build_mode"),&CollisionPolygon2D::get_build_mode);
ClassDB::bind_method(D_METHOD("set_build_mode","build_mode"),&CollisionPolygon2D::set_build_mode);
ClassDB::bind_method(D_METHOD("get_build_mode"),&CollisionPolygon2D::get_build_mode);
ClassDB::bind_method(_MD("set_trigger","trigger"),&CollisionPolygon2D::set_trigger);
ClassDB::bind_method(_MD("is_trigger"),&CollisionPolygon2D::is_trigger);
ClassDB::bind_method(D_METHOD("set_trigger","trigger"),&CollisionPolygon2D::set_trigger);
ClassDB::bind_method(D_METHOD("is_trigger"),&CollisionPolygon2D::is_trigger);
ClassDB::bind_method(_MD("_set_shape_range","shape_range"),&CollisionPolygon2D::_set_shape_range);
ClassDB::bind_method(_MD("_get_shape_range"),&CollisionPolygon2D::_get_shape_range);
ClassDB::bind_method(D_METHOD("_set_shape_range","shape_range"),&CollisionPolygon2D::_set_shape_range);
ClassDB::bind_method(D_METHOD("_get_shape_range"),&CollisionPolygon2D::_get_shape_range);
ClassDB::bind_method(_MD("get_collision_object_first_shape"),&CollisionPolygon2D::get_collision_object_first_shape);
ClassDB::bind_method(_MD("get_collision_object_last_shape"),&CollisionPolygon2D::get_collision_object_last_shape);
ClassDB::bind_method(D_METHOD("get_collision_object_first_shape"),&CollisionPolygon2D::get_collision_object_first_shape);
ClassDB::bind_method(D_METHOD("get_collision_object_last_shape"),&CollisionPolygon2D::get_collision_object_last_shape);
ADD_PROPERTY( PropertyInfo(Variant::INT,"build_mode",PROPERTY_HINT_ENUM,"Solids,Segments"),"set_build_mode","get_build_mode");
ADD_PROPERTY( PropertyInfo(Variant::POOL_VECTOR2_ARRAY,"polygon"),"set_polygon","get_polygon");

View file

@ -218,17 +218,17 @@ String CollisionShape2D::get_configuration_warning() const {
void CollisionShape2D::_bind_methods() {
ClassDB::bind_method(_MD("set_shape","shape"),&CollisionShape2D::set_shape);
ClassDB::bind_method(_MD("get_shape"),&CollisionShape2D::get_shape);
ClassDB::bind_method(_MD("_shape_changed"),&CollisionShape2D::_shape_changed);
ClassDB::bind_method(_MD("_add_to_collision_object"),&CollisionShape2D::_add_to_collision_object);
ClassDB::bind_method(_MD("set_trigger","enable"),&CollisionShape2D::set_trigger);
ClassDB::bind_method(_MD("is_trigger"),&CollisionShape2D::is_trigger);
ClassDB::bind_method(D_METHOD("set_shape","shape"),&CollisionShape2D::set_shape);
ClassDB::bind_method(D_METHOD("get_shape"),&CollisionShape2D::get_shape);
ClassDB::bind_method(D_METHOD("_shape_changed"),&CollisionShape2D::_shape_changed);
ClassDB::bind_method(D_METHOD("_add_to_collision_object"),&CollisionShape2D::_add_to_collision_object);
ClassDB::bind_method(D_METHOD("set_trigger","enable"),&CollisionShape2D::set_trigger);
ClassDB::bind_method(D_METHOD("is_trigger"),&CollisionShape2D::is_trigger);
ClassDB::bind_method(_MD("_set_update_shape_index","index"),&CollisionShape2D::_set_update_shape_index);
ClassDB::bind_method(_MD("_get_update_shape_index"),&CollisionShape2D::_get_update_shape_index);
ClassDB::bind_method(D_METHOD("_set_update_shape_index","index"),&CollisionShape2D::_set_update_shape_index);
ClassDB::bind_method(D_METHOD("_get_update_shape_index"),&CollisionShape2D::_get_update_shape_index);
ClassDB::bind_method(_MD("get_collision_object_shape_index"),&CollisionShape2D::get_collision_object_shape_index);
ClassDB::bind_method(D_METHOD("get_collision_object_shape_index"),&CollisionShape2D::get_collision_object_shape_index);
ADD_PROPERTYNZ(PropertyInfo(Variant::OBJECT,"shape",PROPERTY_HINT_RESOURCE_TYPE,"Shape2D"),"set_shape","get_shape");
ADD_PROPERTY(PropertyInfo(Variant::BOOL,"trigger"),"set_trigger","is_trigger");

View file

@ -128,17 +128,17 @@ bool Joint2D::get_exclude_nodes_from_collision() const{
void Joint2D::_bind_methods() {
ClassDB::bind_method( _MD("set_node_a","node"), &Joint2D::set_node_a );
ClassDB::bind_method( _MD("get_node_a"), &Joint2D::get_node_a );
ClassDB::bind_method( D_METHOD("set_node_a","node"), &Joint2D::set_node_a );
ClassDB::bind_method( D_METHOD("get_node_a"), &Joint2D::get_node_a );
ClassDB::bind_method( _MD("set_node_b","node"), &Joint2D::set_node_b );
ClassDB::bind_method( _MD("get_node_b"), &Joint2D::get_node_b );
ClassDB::bind_method( D_METHOD("set_node_b","node"), &Joint2D::set_node_b );
ClassDB::bind_method( D_METHOD("get_node_b"), &Joint2D::get_node_b );
ClassDB::bind_method( _MD("set_bias","bias"), &Joint2D::set_bias );
ClassDB::bind_method( _MD("get_bias"), &Joint2D::get_bias );
ClassDB::bind_method( D_METHOD("set_bias","bias"), &Joint2D::set_bias );
ClassDB::bind_method( D_METHOD("get_bias"), &Joint2D::get_bias );
ClassDB::bind_method( _MD("set_exclude_nodes_from_collision","enable"), &Joint2D::set_exclude_nodes_from_collision );
ClassDB::bind_method( _MD("get_exclude_nodes_from_collision"), &Joint2D::get_exclude_nodes_from_collision );
ClassDB::bind_method( D_METHOD("set_exclude_nodes_from_collision","enable"), &Joint2D::set_exclude_nodes_from_collision );
ClassDB::bind_method( D_METHOD("get_exclude_nodes_from_collision"), &Joint2D::get_exclude_nodes_from_collision );
ADD_PROPERTY( PropertyInfo( Variant::NODE_PATH, "node_a"), "set_node_a","get_node_a") ;
ADD_PROPERTY( PropertyInfo( Variant::NODE_PATH, "node_b"), "set_node_b","get_node_b") ;
@ -225,8 +225,8 @@ real_t PinJoint2D::get_softness() const {
void PinJoint2D::_bind_methods() {
ClassDB::bind_method(_MD("set_softness","softness"), &PinJoint2D::set_softness);
ClassDB::bind_method(_MD("get_softness"), &PinJoint2D::get_softness);
ClassDB::bind_method(D_METHOD("set_softness","softness"), &PinJoint2D::set_softness);
ClassDB::bind_method(D_METHOD("get_softness"), &PinJoint2D::get_softness);
ADD_PROPERTY( PropertyInfo( Variant::REAL, "softness", PROPERTY_HINT_EXP_RANGE,"0.00,16,0.01"), "set_softness", "get_softness");
}
@ -321,10 +321,10 @@ real_t GrooveJoint2D::get_initial_offset() const {
void GrooveJoint2D::_bind_methods() {
ClassDB::bind_method(_MD("set_length","length"),&GrooveJoint2D::set_length);
ClassDB::bind_method(_MD("get_length"),&GrooveJoint2D::get_length);
ClassDB::bind_method(_MD("set_initial_offset","offset"),&GrooveJoint2D::set_initial_offset);
ClassDB::bind_method(_MD("get_initial_offset"),&GrooveJoint2D::get_initial_offset);
ClassDB::bind_method(D_METHOD("set_length","length"),&GrooveJoint2D::set_length);
ClassDB::bind_method(D_METHOD("get_length"),&GrooveJoint2D::get_length);
ClassDB::bind_method(D_METHOD("set_initial_offset","offset"),&GrooveJoint2D::set_initial_offset);
ClassDB::bind_method(D_METHOD("get_initial_offset"),&GrooveJoint2D::get_initial_offset);
ADD_PROPERTY( PropertyInfo( Variant::REAL, "length", PROPERTY_HINT_EXP_RANGE,"1,65535,1"), "set_length","get_length");
ADD_PROPERTY( PropertyInfo( Variant::REAL, "initial_offset", PROPERTY_HINT_EXP_RANGE,"1,65535,1"), "set_initial_offset","get_initial_offset");
@ -453,14 +453,14 @@ real_t DampedSpringJoint2D::get_damping() const {
void DampedSpringJoint2D::_bind_methods() {
ClassDB::bind_method(_MD("set_length","length"),&DampedSpringJoint2D::set_length);
ClassDB::bind_method(_MD("get_length"),&DampedSpringJoint2D::get_length);
ClassDB::bind_method(_MD("set_rest_length","rest_length"),&DampedSpringJoint2D::set_rest_length);
ClassDB::bind_method(_MD("get_rest_length"),&DampedSpringJoint2D::get_rest_length);
ClassDB::bind_method(_MD("set_stiffness","stiffness"),&DampedSpringJoint2D::set_stiffness);
ClassDB::bind_method(_MD("get_stiffness"),&DampedSpringJoint2D::get_stiffness);
ClassDB::bind_method(_MD("set_damping","damping"),&DampedSpringJoint2D::set_damping);
ClassDB::bind_method(_MD("get_damping"),&DampedSpringJoint2D::get_damping);
ClassDB::bind_method(D_METHOD("set_length","length"),&DampedSpringJoint2D::set_length);
ClassDB::bind_method(D_METHOD("get_length"),&DampedSpringJoint2D::get_length);
ClassDB::bind_method(D_METHOD("set_rest_length","rest_length"),&DampedSpringJoint2D::set_rest_length);
ClassDB::bind_method(D_METHOD("get_rest_length"),&DampedSpringJoint2D::get_rest_length);
ClassDB::bind_method(D_METHOD("set_stiffness","stiffness"),&DampedSpringJoint2D::set_stiffness);
ClassDB::bind_method(D_METHOD("get_stiffness"),&DampedSpringJoint2D::get_stiffness);
ClassDB::bind_method(D_METHOD("set_damping","damping"),&DampedSpringJoint2D::set_damping);
ClassDB::bind_method(D_METHOD("get_damping"),&DampedSpringJoint2D::get_damping);
ADD_PROPERTY( PropertyInfo( Variant::REAL, "length", PROPERTY_HINT_EXP_RANGE,"1,65535,1"), "set_length","get_length");
ADD_PROPERTY( PropertyInfo( Variant::REAL, "rest_length", PROPERTY_HINT_EXP_RANGE,"0,65535,1"), "set_rest_length","get_rest_length");

View file

@ -365,67 +365,67 @@ String Light2D::get_configuration_warning() const {
void Light2D::_bind_methods() {
ClassDB::bind_method(_MD("set_enabled","enabled"),&Light2D::set_enabled);
ClassDB::bind_method(_MD("is_enabled"),&Light2D::is_enabled);
ClassDB::bind_method(D_METHOD("set_enabled","enabled"),&Light2D::set_enabled);
ClassDB::bind_method(D_METHOD("is_enabled"),&Light2D::is_enabled);
ClassDB::bind_method(_MD("set_editor_only","editor_only"), &Light2D::set_editor_only );
ClassDB::bind_method(_MD("is_editor_only"), &Light2D::is_editor_only );
ClassDB::bind_method(D_METHOD("set_editor_only","editor_only"), &Light2D::set_editor_only );
ClassDB::bind_method(D_METHOD("is_editor_only"), &Light2D::is_editor_only );
ClassDB::bind_method(_MD("set_texture","texture"),&Light2D::set_texture);
ClassDB::bind_method(_MD("get_texture"),&Light2D::get_texture);
ClassDB::bind_method(D_METHOD("set_texture","texture"),&Light2D::set_texture);
ClassDB::bind_method(D_METHOD("get_texture"),&Light2D::get_texture);
ClassDB::bind_method(_MD("set_texture_offset","texture_offset"),&Light2D::set_texture_offset);
ClassDB::bind_method(_MD("get_texture_offset"),&Light2D::get_texture_offset);
ClassDB::bind_method(D_METHOD("set_texture_offset","texture_offset"),&Light2D::set_texture_offset);
ClassDB::bind_method(D_METHOD("get_texture_offset"),&Light2D::get_texture_offset);
ClassDB::bind_method(_MD("set_color","color"),&Light2D::set_color);
ClassDB::bind_method(_MD("get_color"),&Light2D::get_color);
ClassDB::bind_method(D_METHOD("set_color","color"),&Light2D::set_color);
ClassDB::bind_method(D_METHOD("get_color"),&Light2D::get_color);
ClassDB::bind_method(_MD("set_height","height"),&Light2D::set_height);
ClassDB::bind_method(_MD("get_height"),&Light2D::get_height);
ClassDB::bind_method(D_METHOD("set_height","height"),&Light2D::set_height);
ClassDB::bind_method(D_METHOD("get_height"),&Light2D::get_height);
ClassDB::bind_method(_MD("set_energy","energy"),&Light2D::set_energy);
ClassDB::bind_method(_MD("get_energy"),&Light2D::get_energy);
ClassDB::bind_method(D_METHOD("set_energy","energy"),&Light2D::set_energy);
ClassDB::bind_method(D_METHOD("get_energy"),&Light2D::get_energy);
ClassDB::bind_method(_MD("set_texture_scale","texture_scale"),&Light2D::set_texture_scale);
ClassDB::bind_method(_MD("get_texture_scale"),&Light2D::get_texture_scale);
ClassDB::bind_method(D_METHOD("set_texture_scale","texture_scale"),&Light2D::set_texture_scale);
ClassDB::bind_method(D_METHOD("get_texture_scale"),&Light2D::get_texture_scale);
ClassDB::bind_method(_MD("set_z_range_min","z"),&Light2D::set_z_range_min);
ClassDB::bind_method(_MD("get_z_range_min"),&Light2D::get_z_range_min);
ClassDB::bind_method(D_METHOD("set_z_range_min","z"),&Light2D::set_z_range_min);
ClassDB::bind_method(D_METHOD("get_z_range_min"),&Light2D::get_z_range_min);
ClassDB::bind_method(_MD("set_z_range_max","z"),&Light2D::set_z_range_max);
ClassDB::bind_method(_MD("get_z_range_max"),&Light2D::get_z_range_max);
ClassDB::bind_method(D_METHOD("set_z_range_max","z"),&Light2D::set_z_range_max);
ClassDB::bind_method(D_METHOD("get_z_range_max"),&Light2D::get_z_range_max);
ClassDB::bind_method(_MD("set_layer_range_min","layer"),&Light2D::set_layer_range_min);
ClassDB::bind_method(_MD("get_layer_range_min"),&Light2D::get_layer_range_min);
ClassDB::bind_method(D_METHOD("set_layer_range_min","layer"),&Light2D::set_layer_range_min);
ClassDB::bind_method(D_METHOD("get_layer_range_min"),&Light2D::get_layer_range_min);
ClassDB::bind_method(_MD("set_layer_range_max","layer"),&Light2D::set_layer_range_max);
ClassDB::bind_method(_MD("get_layer_range_max"),&Light2D::get_layer_range_max);
ClassDB::bind_method(D_METHOD("set_layer_range_max","layer"),&Light2D::set_layer_range_max);
ClassDB::bind_method(D_METHOD("get_layer_range_max"),&Light2D::get_layer_range_max);
ClassDB::bind_method(_MD("set_item_cull_mask","item_cull_mask"),&Light2D::set_item_cull_mask);
ClassDB::bind_method(_MD("get_item_cull_mask"),&Light2D::get_item_cull_mask);
ClassDB::bind_method(D_METHOD("set_item_cull_mask","item_cull_mask"),&Light2D::set_item_cull_mask);
ClassDB::bind_method(D_METHOD("get_item_cull_mask"),&Light2D::get_item_cull_mask);
ClassDB::bind_method(_MD("set_item_shadow_cull_mask","item_shadow_cull_mask"),&Light2D::set_item_shadow_cull_mask);
ClassDB::bind_method(_MD("get_item_shadow_cull_mask"),&Light2D::get_item_shadow_cull_mask);
ClassDB::bind_method(D_METHOD("set_item_shadow_cull_mask","item_shadow_cull_mask"),&Light2D::set_item_shadow_cull_mask);
ClassDB::bind_method(D_METHOD("get_item_shadow_cull_mask"),&Light2D::get_item_shadow_cull_mask);
ClassDB::bind_method(_MD("set_mode","mode"),&Light2D::set_mode);
ClassDB::bind_method(_MD("get_mode"),&Light2D::get_mode);
ClassDB::bind_method(D_METHOD("set_mode","mode"),&Light2D::set_mode);
ClassDB::bind_method(D_METHOD("get_mode"),&Light2D::get_mode);
ClassDB::bind_method(_MD("set_shadow_enabled","enabled"),&Light2D::set_shadow_enabled);
ClassDB::bind_method(_MD("is_shadow_enabled"),&Light2D::is_shadow_enabled);
ClassDB::bind_method(D_METHOD("set_shadow_enabled","enabled"),&Light2D::set_shadow_enabled);
ClassDB::bind_method(D_METHOD("is_shadow_enabled"),&Light2D::is_shadow_enabled);
ClassDB::bind_method(_MD("set_shadow_buffer_size","size"),&Light2D::set_shadow_buffer_size);
ClassDB::bind_method(_MD("get_shadow_buffer_size"),&Light2D::get_shadow_buffer_size);
ClassDB::bind_method(D_METHOD("set_shadow_buffer_size","size"),&Light2D::set_shadow_buffer_size);
ClassDB::bind_method(D_METHOD("get_shadow_buffer_size"),&Light2D::get_shadow_buffer_size);
ClassDB::bind_method(_MD("set_shadow_gradient_length","multiplier"),&Light2D::set_shadow_gradient_length);
ClassDB::bind_method(_MD("get_shadow_gradient_length"),&Light2D::get_shadow_gradient_length);
ClassDB::bind_method(D_METHOD("set_shadow_gradient_length","multiplier"),&Light2D::set_shadow_gradient_length);
ClassDB::bind_method(D_METHOD("get_shadow_gradient_length"),&Light2D::get_shadow_gradient_length);
ClassDB::bind_method(_MD("set_shadow_filter","filter"),&Light2D::set_shadow_filter);
ClassDB::bind_method(_MD("get_shadow_filter"),&Light2D::get_shadow_filter);
ClassDB::bind_method(D_METHOD("set_shadow_filter","filter"),&Light2D::set_shadow_filter);
ClassDB::bind_method(D_METHOD("get_shadow_filter"),&Light2D::get_shadow_filter);
ClassDB::bind_method(_MD("set_shadow_color","shadow_color"),&Light2D::set_shadow_color);
ClassDB::bind_method(_MD("get_shadow_color"),&Light2D::get_shadow_color);
ClassDB::bind_method(D_METHOD("set_shadow_color","shadow_color"),&Light2D::set_shadow_color);
ClassDB::bind_method(D_METHOD("get_shadow_color"),&Light2D::get_shadow_color);
ADD_PROPERTY( PropertyInfo(Variant::BOOL,"enabled"),"set_enabled","is_enabled");

View file

@ -78,14 +78,14 @@ RID OccluderPolygon2D::get_rid() const {
void OccluderPolygon2D::_bind_methods() {
ClassDB::bind_method(_MD("set_closed","closed"),&OccluderPolygon2D::set_closed);
ClassDB::bind_method(_MD("is_closed"),&OccluderPolygon2D::is_closed);
ClassDB::bind_method(D_METHOD("set_closed","closed"),&OccluderPolygon2D::set_closed);
ClassDB::bind_method(D_METHOD("is_closed"),&OccluderPolygon2D::is_closed);
ClassDB::bind_method(_MD("set_cull_mode","cull_mode"),&OccluderPolygon2D::set_cull_mode);
ClassDB::bind_method(_MD("get_cull_mode"),&OccluderPolygon2D::get_cull_mode);
ClassDB::bind_method(D_METHOD("set_cull_mode","cull_mode"),&OccluderPolygon2D::set_cull_mode);
ClassDB::bind_method(D_METHOD("get_cull_mode"),&OccluderPolygon2D::get_cull_mode);
ClassDB::bind_method(_MD("set_polygon","polygon"),&OccluderPolygon2D::set_polygon);
ClassDB::bind_method(_MD("get_polygon"),&OccluderPolygon2D::get_polygon);
ClassDB::bind_method(D_METHOD("set_polygon","polygon"),&OccluderPolygon2D::set_polygon);
ClassDB::bind_method(D_METHOD("get_polygon"),&OccluderPolygon2D::get_polygon);
ADD_PROPERTY( PropertyInfo(Variant::BOOL,"closed"),"set_closed","is_closed");
ADD_PROPERTY( PropertyInfo(Variant::INT,"cull_mode",PROPERTY_HINT_ENUM,"Disabled,ClockWise,CounterClockWise"),"set_cull_mode","get_cull_mode");
@ -224,11 +224,11 @@ String LightOccluder2D::get_configuration_warning() const {
void LightOccluder2D::_bind_methods() {
ClassDB::bind_method(_MD("set_occluder_polygon","polygon:OccluderPolygon2D"),&LightOccluder2D::set_occluder_polygon);
ClassDB::bind_method(_MD("get_occluder_polygon:OccluderPolygon2D"),&LightOccluder2D::get_occluder_polygon);
ClassDB::bind_method(D_METHOD("set_occluder_polygon","polygon:OccluderPolygon2D"),&LightOccluder2D::set_occluder_polygon);
ClassDB::bind_method(D_METHOD("get_occluder_polygon:OccluderPolygon2D"),&LightOccluder2D::get_occluder_polygon);
ClassDB::bind_method(_MD("set_occluder_light_mask","mask"),&LightOccluder2D::set_occluder_light_mask);
ClassDB::bind_method(_MD("get_occluder_light_mask"),&LightOccluder2D::get_occluder_light_mask);
ClassDB::bind_method(D_METHOD("set_occluder_light_mask","mask"),&LightOccluder2D::set_occluder_light_mask);
ClassDB::bind_method(D_METHOD("get_occluder_light_mask"),&LightOccluder2D::get_occluder_light_mask);
#ifdef DEBUG_ENABLED
ClassDB::bind_method("_poly_changed",&LightOccluder2D::_poly_changed);

View file

@ -236,46 +236,46 @@ void Line2D::_gradient_changed() {
// static
void Line2D::_bind_methods() {
ClassDB::bind_method(_MD("set_points","points"), &Line2D::set_points);
ClassDB::bind_method(_MD("get_points"), &Line2D::get_points);
ClassDB::bind_method(D_METHOD("set_points","points"), &Line2D::set_points);
ClassDB::bind_method(D_METHOD("get_points"), &Line2D::get_points);
ClassDB::bind_method(_MD("set_point_pos","i", "pos"), &Line2D::set_point_pos);
ClassDB::bind_method(_MD("get_point_pos", "i"), &Line2D::get_point_pos);
ClassDB::bind_method(D_METHOD("set_point_pos","i", "pos"), &Line2D::set_point_pos);
ClassDB::bind_method(D_METHOD("get_point_pos", "i"), &Line2D::get_point_pos);
ClassDB::bind_method(_MD("get_point_count"), &Line2D::get_point_count);
ClassDB::bind_method(D_METHOD("get_point_count"), &Line2D::get_point_count);
ClassDB::bind_method(_MD("add_point", "pos"), &Line2D::add_point);
ClassDB::bind_method(_MD("remove_point", "i"), &Line2D::remove_point);
ClassDB::bind_method(D_METHOD("add_point", "pos"), &Line2D::add_point);
ClassDB::bind_method(D_METHOD("remove_point", "i"), &Line2D::remove_point);
ClassDB::bind_method(_MD("set_width","width"), &Line2D::set_width);
ClassDB::bind_method(_MD("get_width"), &Line2D::get_width);
ClassDB::bind_method(D_METHOD("set_width","width"), &Line2D::set_width);
ClassDB::bind_method(D_METHOD("get_width"), &Line2D::get_width);
ClassDB::bind_method(_MD("set_default_color", "color"), &Line2D::set_default_color);
ClassDB::bind_method(_MD("get_default_color"), &Line2D::get_default_color);
ClassDB::bind_method(D_METHOD("set_default_color", "color"), &Line2D::set_default_color);
ClassDB::bind_method(D_METHOD("get_default_color"), &Line2D::get_default_color);
ClassDB::bind_method(_MD("set_gradient", "color"), &Line2D::set_gradient);
ClassDB::bind_method(_MD("get_gradient"), &Line2D::get_gradient);
ClassDB::bind_method(D_METHOD("set_gradient", "color"), &Line2D::set_gradient);
ClassDB::bind_method(D_METHOD("get_gradient"), &Line2D::get_gradient);
ClassDB::bind_method(_MD("set_texture", "texture"), &Line2D::set_texture);
ClassDB::bind_method(_MD("get_texture"), &Line2D::get_texture);
ClassDB::bind_method(D_METHOD("set_texture", "texture"), &Line2D::set_texture);
ClassDB::bind_method(D_METHOD("get_texture"), &Line2D::get_texture);
ClassDB::bind_method(_MD("set_texture_mode", "mode"), &Line2D::set_texture_mode);
ClassDB::bind_method(_MD("get_texture_mode"), &Line2D::get_texture_mode);
ClassDB::bind_method(D_METHOD("set_texture_mode", "mode"), &Line2D::set_texture_mode);
ClassDB::bind_method(D_METHOD("get_texture_mode"), &Line2D::get_texture_mode);
ClassDB::bind_method(_MD("set_joint_mode", "mode"), &Line2D::set_joint_mode);
ClassDB::bind_method(_MD("get_joint_mode"), &Line2D::get_joint_mode);
ClassDB::bind_method(D_METHOD("set_joint_mode", "mode"), &Line2D::set_joint_mode);
ClassDB::bind_method(D_METHOD("get_joint_mode"), &Line2D::get_joint_mode);
ClassDB::bind_method(_MD("set_begin_cap_mode", "mode"), &Line2D::set_begin_cap_mode);
ClassDB::bind_method(_MD("get_begin_cap_mode"), &Line2D::get_begin_cap_mode);
ClassDB::bind_method(D_METHOD("set_begin_cap_mode", "mode"), &Line2D::set_begin_cap_mode);
ClassDB::bind_method(D_METHOD("get_begin_cap_mode"), &Line2D::get_begin_cap_mode);
ClassDB::bind_method(_MD("set_end_cap_mode", "mode"), &Line2D::set_end_cap_mode);
ClassDB::bind_method(_MD("get_end_cap_mode"), &Line2D::get_end_cap_mode);
ClassDB::bind_method(D_METHOD("set_end_cap_mode", "mode"), &Line2D::set_end_cap_mode);
ClassDB::bind_method(D_METHOD("get_end_cap_mode"), &Line2D::get_end_cap_mode);
ClassDB::bind_method(_MD("set_sharp_limit", "limit"), &Line2D::set_sharp_limit);
ClassDB::bind_method(_MD("get_sharp_limit"), &Line2D::get_sharp_limit);
ClassDB::bind_method(D_METHOD("set_sharp_limit", "limit"), &Line2D::set_sharp_limit);
ClassDB::bind_method(D_METHOD("get_sharp_limit"), &Line2D::get_sharp_limit);
ClassDB::bind_method(_MD("set_round_precision", "precision"), &Line2D::set_round_precision);
ClassDB::bind_method(_MD("get_round_precision"), &Line2D::get_round_precision);
ClassDB::bind_method(D_METHOD("set_round_precision", "precision"), &Line2D::set_round_precision);
ClassDB::bind_method(D_METHOD("get_round_precision"), &Line2D::get_round_precision);
ADD_PROPERTY(PropertyInfo(Variant::POOL_VECTOR2_ARRAY, "points"), "set_points", "get_points");
ADD_PROPERTY(PropertyInfo(Variant::REAL, "width"), "set_width", "get_width");
@ -300,7 +300,7 @@ void Line2D::_bind_methods() {
BIND_CONSTANT(LINE_TEXTURE_NONE);
BIND_CONSTANT(LINE_TEXTURE_TILE);
ClassDB::bind_method(_MD("_gradient_changed"), &Line2D::_gradient_changed);
ClassDB::bind_method(D_METHOD("_gradient_changed"), &Line2D::_gradient_changed);
}

View file

@ -804,13 +804,13 @@ Object* Navigation2D::get_closest_point_owner(const Vector2& p_point) {
void Navigation2D::_bind_methods() {
ClassDB::bind_method(_MD("navpoly_create","mesh:NavigationPolygon","xform","owner"),&Navigation2D::navpoly_create,DEFVAL(Variant()));
ClassDB::bind_method(_MD("navpoly_set_transform","id","xform"),&Navigation2D::navpoly_set_transform);
ClassDB::bind_method(_MD("navpoly_remove","id"),&Navigation2D::navpoly_remove);
ClassDB::bind_method(D_METHOD("navpoly_create","mesh:NavigationPolygon","xform","owner"),&Navigation2D::navpoly_create,DEFVAL(Variant()));
ClassDB::bind_method(D_METHOD("navpoly_set_transform","id","xform"),&Navigation2D::navpoly_set_transform);
ClassDB::bind_method(D_METHOD("navpoly_remove","id"),&Navigation2D::navpoly_remove);
ClassDB::bind_method(_MD("get_simple_path","start","end","optimize"),&Navigation2D::get_simple_path,DEFVAL(true));
ClassDB::bind_method(_MD("get_closest_point","to_point"),&Navigation2D::get_closest_point);
ClassDB::bind_method(_MD("get_closest_point_owner","to_point"),&Navigation2D::get_closest_point_owner);
ClassDB::bind_method(D_METHOD("get_simple_path","start","end","optimize"),&Navigation2D::get_simple_path,DEFVAL(true));
ClassDB::bind_method(D_METHOD("get_closest_point","to_point"),&Navigation2D::get_closest_point);
ClassDB::bind_method(D_METHOD("get_closest_point_owner","to_point"),&Navigation2D::get_closest_point_owner);
}

View file

@ -247,28 +247,28 @@ void NavigationPolygon::make_polygons_from_outlines(){
void NavigationPolygon::_bind_methods() {
ClassDB::bind_method(_MD("set_vertices","vertices"),&NavigationPolygon::set_vertices);
ClassDB::bind_method(_MD("get_vertices"),&NavigationPolygon::get_vertices);
ClassDB::bind_method(D_METHOD("set_vertices","vertices"),&NavigationPolygon::set_vertices);
ClassDB::bind_method(D_METHOD("get_vertices"),&NavigationPolygon::get_vertices);
ClassDB::bind_method(_MD("add_polygon","polygon"),&NavigationPolygon::add_polygon);
ClassDB::bind_method(_MD("get_polygon_count"),&NavigationPolygon::get_polygon_count);
ClassDB::bind_method(_MD("get_polygon","idx"),&NavigationPolygon::get_polygon);
ClassDB::bind_method(_MD("clear_polygons"),&NavigationPolygon::clear_polygons);
ClassDB::bind_method(D_METHOD("add_polygon","polygon"),&NavigationPolygon::add_polygon);
ClassDB::bind_method(D_METHOD("get_polygon_count"),&NavigationPolygon::get_polygon_count);
ClassDB::bind_method(D_METHOD("get_polygon","idx"),&NavigationPolygon::get_polygon);
ClassDB::bind_method(D_METHOD("clear_polygons"),&NavigationPolygon::clear_polygons);
ClassDB::bind_method(_MD("add_outline","outline"),&NavigationPolygon::add_outline);
ClassDB::bind_method(_MD("add_outline_at_index","outline","index"),&NavigationPolygon::add_outline_at_index);
ClassDB::bind_method(_MD("get_outline_count"),&NavigationPolygon::get_outline_count);
ClassDB::bind_method(_MD("set_outline","idx","outline"),&NavigationPolygon::set_outline);
ClassDB::bind_method(_MD("get_outline","idx"),&NavigationPolygon::get_outline);
ClassDB::bind_method(_MD("remove_outline","idx"),&NavigationPolygon::remove_outline);
ClassDB::bind_method(_MD("clear_outlines"),&NavigationPolygon::clear_outlines);
ClassDB::bind_method(_MD("make_polygons_from_outlines"),&NavigationPolygon::make_polygons_from_outlines);
ClassDB::bind_method(D_METHOD("add_outline","outline"),&NavigationPolygon::add_outline);
ClassDB::bind_method(D_METHOD("add_outline_at_index","outline","index"),&NavigationPolygon::add_outline_at_index);
ClassDB::bind_method(D_METHOD("get_outline_count"),&NavigationPolygon::get_outline_count);
ClassDB::bind_method(D_METHOD("set_outline","idx","outline"),&NavigationPolygon::set_outline);
ClassDB::bind_method(D_METHOD("get_outline","idx"),&NavigationPolygon::get_outline);
ClassDB::bind_method(D_METHOD("remove_outline","idx"),&NavigationPolygon::remove_outline);
ClassDB::bind_method(D_METHOD("clear_outlines"),&NavigationPolygon::clear_outlines);
ClassDB::bind_method(D_METHOD("make_polygons_from_outlines"),&NavigationPolygon::make_polygons_from_outlines);
ClassDB::bind_method(_MD("_set_polygons","polygons"),&NavigationPolygon::_set_polygons);
ClassDB::bind_method(_MD("_get_polygons"),&NavigationPolygon::_get_polygons);
ClassDB::bind_method(D_METHOD("_set_polygons","polygons"),&NavigationPolygon::_set_polygons);
ClassDB::bind_method(D_METHOD("_get_polygons"),&NavigationPolygon::_get_polygons);
ClassDB::bind_method(_MD("_set_outlines","outlines"),&NavigationPolygon::_set_outlines);
ClassDB::bind_method(_MD("_get_outlines"),&NavigationPolygon::_get_outlines);
ClassDB::bind_method(D_METHOD("_set_outlines","outlines"),&NavigationPolygon::_set_outlines);
ClassDB::bind_method(D_METHOD("_get_outlines"),&NavigationPolygon::_get_outlines);
ADD_PROPERTY(PropertyInfo(Variant::POOL_VECTOR3_ARRAY,"vertices",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"set_vertices","get_vertices");
ADD_PROPERTY(PropertyInfo(Variant::ARRAY,"polygons",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"_set_polygons","_get_polygons");
@ -480,13 +480,13 @@ String NavigationPolygonInstance::get_configuration_warning() const {
void NavigationPolygonInstance::_bind_methods() {
ClassDB::bind_method(_MD("set_navigation_polygon","navpoly:NavigationPolygon"),&NavigationPolygonInstance::set_navigation_polygon);
ClassDB::bind_method(_MD("get_navigation_polygon:NavigationPolygon"),&NavigationPolygonInstance::get_navigation_polygon);
ClassDB::bind_method(D_METHOD("set_navigation_polygon","navpoly:NavigationPolygon"),&NavigationPolygonInstance::set_navigation_polygon);
ClassDB::bind_method(D_METHOD("get_navigation_polygon:NavigationPolygon"),&NavigationPolygonInstance::get_navigation_polygon);
ClassDB::bind_method(_MD("set_enabled","enabled"),&NavigationPolygonInstance::set_enabled);
ClassDB::bind_method(_MD("is_enabled"),&NavigationPolygonInstance::is_enabled);
ClassDB::bind_method(D_METHOD("set_enabled","enabled"),&NavigationPolygonInstance::set_enabled);
ClassDB::bind_method(D_METHOD("is_enabled"),&NavigationPolygonInstance::is_enabled);
ClassDB::bind_method(_MD("_navpoly_changed"),&NavigationPolygonInstance::_navpoly_changed);
ClassDB::bind_method(D_METHOD("_navpoly_changed"),&NavigationPolygonInstance::_navpoly_changed);
ADD_PROPERTY( PropertyInfo(Variant::OBJECT,"navpoly",PROPERTY_HINT_RESOURCE_TYPE,"NavigationPolygon"),"set_navigation_polygon","get_navigation_polygon");
ADD_PROPERTY( PropertyInfo(Variant::BOOL,"enabled"),"set_enabled","is_enabled");

View file

@ -423,50 +423,50 @@ void Node2D::_bind_methods() {
// TODO: Obsolete those two methods (old name) properly (GH-4397)
ClassDB::bind_method(_MD("_get_rotd"),&Node2D::_get_rotd);
ClassDB::bind_method(_MD("_set_rotd","degrees"),&Node2D::_set_rotd);
ClassDB::bind_method(D_METHOD("_get_rotd"),&Node2D::_get_rotd);
ClassDB::bind_method(D_METHOD("_set_rotd","degrees"),&Node2D::_set_rotd);
ClassDB::bind_method(_MD("set_position","pos"),&Node2D::set_position);
ClassDB::bind_method(_MD("set_rotation","radians"),&Node2D::set_rotation);
ClassDB::bind_method(_MD("set_rotation_in_degrees","degrees"),&Node2D::set_rotation_in_degrees);
ClassDB::bind_method(_MD("set_scale","scale"),&Node2D::set_scale);
ClassDB::bind_method(D_METHOD("set_position","pos"),&Node2D::set_position);
ClassDB::bind_method(D_METHOD("set_rotation","radians"),&Node2D::set_rotation);
ClassDB::bind_method(D_METHOD("set_rotation_in_degrees","degrees"),&Node2D::set_rotation_in_degrees);
ClassDB::bind_method(D_METHOD("set_scale","scale"),&Node2D::set_scale);
ClassDB::bind_method(_MD("get_position"),&Node2D::get_position);
ClassDB::bind_method(_MD("get_rotation"),&Node2D::get_rotation);
ClassDB::bind_method(_MD("get_rotation_in_degrees"),&Node2D::get_rotation_in_degrees);
ClassDB::bind_method(_MD("get_scale"),&Node2D::get_scale);
ClassDB::bind_method(D_METHOD("get_position"),&Node2D::get_position);
ClassDB::bind_method(D_METHOD("get_rotation"),&Node2D::get_rotation);
ClassDB::bind_method(D_METHOD("get_rotation_in_degrees"),&Node2D::get_rotation_in_degrees);
ClassDB::bind_method(D_METHOD("get_scale"),&Node2D::get_scale);
ClassDB::bind_method(_MD("rotate","radians"),&Node2D::rotate);
ClassDB::bind_method(_MD("move_local_x","delta","scaled"),&Node2D::move_x,DEFVAL(false));
ClassDB::bind_method(_MD("move_local_y","delta","scaled"),&Node2D::move_y,DEFVAL(false));
ClassDB::bind_method(_MD("translate","offset"),&Node2D::translate);
ClassDB::bind_method(_MD("global_translate","offset"),&Node2D::global_translate);
ClassDB::bind_method(_MD("scale","ratio"),&Node2D::scale);
ClassDB::bind_method(D_METHOD("rotate","radians"),&Node2D::rotate);
ClassDB::bind_method(D_METHOD("move_local_x","delta","scaled"),&Node2D::move_x,DEFVAL(false));
ClassDB::bind_method(D_METHOD("move_local_y","delta","scaled"),&Node2D::move_y,DEFVAL(false));
ClassDB::bind_method(D_METHOD("translate","offset"),&Node2D::translate);
ClassDB::bind_method(D_METHOD("global_translate","offset"),&Node2D::global_translate);
ClassDB::bind_method(D_METHOD("scale","ratio"),&Node2D::scale);
ClassDB::bind_method(_MD("set_global_position","pos"),&Node2D::set_global_position);
ClassDB::bind_method(_MD("get_global_position"),&Node2D::get_global_position);
ClassDB::bind_method(_MD("set_global_rotation","radians"),&Node2D::set_global_rotation);
ClassDB::bind_method(_MD("get_global_rotation"),&Node2D::get_global_rotation);
ClassDB::bind_method(_MD("set_global_rotation_in_degrees","degrees"),&Node2D::set_global_rotation_in_degrees);
ClassDB::bind_method(_MD("get_global_rotation_in_degrees"),&Node2D::get_global_rotation_in_degrees);
ClassDB::bind_method(_MD("set_global_scale","scale"),&Node2D::set_global_scale);
ClassDB::bind_method(_MD("get_global_scale"),&Node2D::get_global_scale);
ClassDB::bind_method(D_METHOD("set_global_position","pos"),&Node2D::set_global_position);
ClassDB::bind_method(D_METHOD("get_global_position"),&Node2D::get_global_position);
ClassDB::bind_method(D_METHOD("set_global_rotation","radians"),&Node2D::set_global_rotation);
ClassDB::bind_method(D_METHOD("get_global_rotation"),&Node2D::get_global_rotation);
ClassDB::bind_method(D_METHOD("set_global_rotation_in_degrees","degrees"),&Node2D::set_global_rotation_in_degrees);
ClassDB::bind_method(D_METHOD("get_global_rotation_in_degrees"),&Node2D::get_global_rotation_in_degrees);
ClassDB::bind_method(D_METHOD("set_global_scale","scale"),&Node2D::set_global_scale);
ClassDB::bind_method(D_METHOD("get_global_scale"),&Node2D::get_global_scale);
ClassDB::bind_method(_MD("set_transform","xform"),&Node2D::set_transform);
ClassDB::bind_method(_MD("set_global_transform","xform"),&Node2D::set_global_transform);
ClassDB::bind_method(D_METHOD("set_transform","xform"),&Node2D::set_transform);
ClassDB::bind_method(D_METHOD("set_global_transform","xform"),&Node2D::set_global_transform);
ClassDB::bind_method(_MD("look_at","point"),&Node2D::look_at);
ClassDB::bind_method(_MD("get_angle_to","point"),&Node2D::get_angle_to);
ClassDB::bind_method(D_METHOD("look_at","point"),&Node2D::look_at);
ClassDB::bind_method(D_METHOD("get_angle_to","point"),&Node2D::get_angle_to);
ClassDB::bind_method(_MD("set_z","z"),&Node2D::set_z);
ClassDB::bind_method(_MD("get_z"),&Node2D::get_z);
ClassDB::bind_method(D_METHOD("set_z","z"),&Node2D::set_z);
ClassDB::bind_method(D_METHOD("get_z"),&Node2D::get_z);
ClassDB::bind_method(_MD("set_z_as_relative","enable"),&Node2D::set_z_as_relative);
ClassDB::bind_method(_MD("is_z_relative"),&Node2D::is_z_relative);
ClassDB::bind_method(D_METHOD("set_z_as_relative","enable"),&Node2D::set_z_as_relative);
ClassDB::bind_method(D_METHOD("is_z_relative"),&Node2D::is_z_relative);
ClassDB::bind_method(_MD("edit_set_pivot","pivot"),&Node2D::edit_set_pivot);
ClassDB::bind_method(D_METHOD("edit_set_pivot","pivot"),&Node2D::edit_set_pivot);
ClassDB::bind_method(_MD("get_relative_transform_to_parent","parent"),&Node2D::get_relative_transform_to_parent);
ClassDB::bind_method(D_METHOD("get_relative_transform_to_parent","parent"),&Node2D::get_relative_transform_to_parent);
ADD_GROUP("Transform","");
ADD_PROPERTYNZ(PropertyInfo(Variant::VECTOR2,"position"),"set_position","get_position");

View file

@ -189,19 +189,19 @@ Vector2 ParallaxBackground::get_final_offset() const {
void ParallaxBackground::_bind_methods() {
ClassDB::bind_method(_MD("_camera_moved"),&ParallaxBackground::_camera_moved);
ClassDB::bind_method(_MD("set_scroll_offset","ofs"),&ParallaxBackground::set_scroll_offset);
ClassDB::bind_method(_MD("get_scroll_offset"),&ParallaxBackground::get_scroll_offset);
ClassDB::bind_method(_MD("set_scroll_base_offset","ofs"),&ParallaxBackground::set_scroll_base_offset);
ClassDB::bind_method(_MD("get_scroll_base_offset"),&ParallaxBackground::get_scroll_base_offset);
ClassDB::bind_method(_MD("set_scroll_base_scale","scale"),&ParallaxBackground::set_scroll_base_scale);
ClassDB::bind_method(_MD("get_scroll_base_scale"),&ParallaxBackground::get_scroll_base_scale);
ClassDB::bind_method(_MD("set_limit_begin","ofs"),&ParallaxBackground::set_limit_begin);
ClassDB::bind_method(_MD("get_limit_begin"),&ParallaxBackground::get_limit_begin);
ClassDB::bind_method(_MD("set_limit_end","ofs"),&ParallaxBackground::set_limit_end);
ClassDB::bind_method(_MD("get_limit_end"),&ParallaxBackground::get_limit_end);
ClassDB::bind_method(_MD("set_ignore_camera_zoom","ignore"), &ParallaxBackground::set_ignore_camera_zoom);
ClassDB::bind_method(_MD("is_ignore_camera_zoom"), &ParallaxBackground::is_ignore_camera_zoom);
ClassDB::bind_method(D_METHOD("_camera_moved"),&ParallaxBackground::_camera_moved);
ClassDB::bind_method(D_METHOD("set_scroll_offset","ofs"),&ParallaxBackground::set_scroll_offset);
ClassDB::bind_method(D_METHOD("get_scroll_offset"),&ParallaxBackground::get_scroll_offset);
ClassDB::bind_method(D_METHOD("set_scroll_base_offset","ofs"),&ParallaxBackground::set_scroll_base_offset);
ClassDB::bind_method(D_METHOD("get_scroll_base_offset"),&ParallaxBackground::get_scroll_base_offset);
ClassDB::bind_method(D_METHOD("set_scroll_base_scale","scale"),&ParallaxBackground::set_scroll_base_scale);
ClassDB::bind_method(D_METHOD("get_scroll_base_scale"),&ParallaxBackground::get_scroll_base_scale);
ClassDB::bind_method(D_METHOD("set_limit_begin","ofs"),&ParallaxBackground::set_limit_begin);
ClassDB::bind_method(D_METHOD("get_limit_begin"),&ParallaxBackground::get_limit_begin);
ClassDB::bind_method(D_METHOD("set_limit_end","ofs"),&ParallaxBackground::set_limit_end);
ClassDB::bind_method(D_METHOD("get_limit_end"),&ParallaxBackground::get_limit_end);
ClassDB::bind_method(D_METHOD("set_ignore_camera_zoom","ignore"), &ParallaxBackground::set_ignore_camera_zoom);
ClassDB::bind_method(D_METHOD("is_ignore_camera_zoom"), &ParallaxBackground::is_ignore_camera_zoom);
ADD_GROUP("Scroll","scroll_");

View file

@ -150,12 +150,12 @@ String ParallaxLayer::get_configuration_warning() const {
void ParallaxLayer::_bind_methods() {
ClassDB::bind_method(_MD("set_motion_scale","scale"),&ParallaxLayer::set_motion_scale);
ClassDB::bind_method(_MD("get_motion_scale"),&ParallaxLayer::get_motion_scale);
ClassDB::bind_method(_MD("set_motion_offset","offset"),&ParallaxLayer::set_motion_offset);
ClassDB::bind_method(_MD("get_motion_offset"),&ParallaxLayer::get_motion_offset);
ClassDB::bind_method(_MD("set_mirroring","mirror"),&ParallaxLayer::set_mirroring);
ClassDB::bind_method(_MD("get_mirroring"),&ParallaxLayer::get_mirroring);
ClassDB::bind_method(D_METHOD("set_motion_scale","scale"),&ParallaxLayer::set_motion_scale);
ClassDB::bind_method(D_METHOD("get_motion_scale"),&ParallaxLayer::get_motion_scale);
ClassDB::bind_method(D_METHOD("set_motion_offset","offset"),&ParallaxLayer::set_motion_offset);
ClassDB::bind_method(D_METHOD("get_motion_offset"),&ParallaxLayer::get_motion_offset);
ClassDB::bind_method(D_METHOD("set_mirroring","mirror"),&ParallaxLayer::set_mirroring);
ClassDB::bind_method(D_METHOD("get_mirroring"),&ParallaxLayer::get_mirroring);
ADD_GROUP("Motion","motion_");
ADD_PROPERTY( PropertyInfo(Variant::VECTOR2,"motion_scale"),"set_motion_scale","get_motion_scale");

View file

@ -113,23 +113,23 @@ void ParticleAttractor2D::_set_owner(Particles2D* p_owner) {
void ParticleAttractor2D::_bind_methods() {
ClassDB::bind_method(_MD("set_enabled","enabled"),&ParticleAttractor2D::set_enabled);
ClassDB::bind_method(_MD("is_enabled"),&ParticleAttractor2D::is_enabled);
ClassDB::bind_method(D_METHOD("set_enabled","enabled"),&ParticleAttractor2D::set_enabled);
ClassDB::bind_method(D_METHOD("is_enabled"),&ParticleAttractor2D::is_enabled);
ClassDB::bind_method(_MD("set_radius","radius"),&ParticleAttractor2D::set_radius);
ClassDB::bind_method(_MD("get_radius"),&ParticleAttractor2D::get_radius);
ClassDB::bind_method(D_METHOD("set_radius","radius"),&ParticleAttractor2D::set_radius);
ClassDB::bind_method(D_METHOD("get_radius"),&ParticleAttractor2D::get_radius);
ClassDB::bind_method(_MD("set_disable_radius","radius"),&ParticleAttractor2D::set_disable_radius);
ClassDB::bind_method(_MD("get_disable_radius"),&ParticleAttractor2D::get_disable_radius);
ClassDB::bind_method(D_METHOD("set_disable_radius","radius"),&ParticleAttractor2D::set_disable_radius);
ClassDB::bind_method(D_METHOD("get_disable_radius"),&ParticleAttractor2D::get_disable_radius);
ClassDB::bind_method(_MD("set_gravity","gravity"),&ParticleAttractor2D::set_gravity);
ClassDB::bind_method(_MD("get_gravity"),&ParticleAttractor2D::get_gravity);
ClassDB::bind_method(D_METHOD("set_gravity","gravity"),&ParticleAttractor2D::set_gravity);
ClassDB::bind_method(D_METHOD("get_gravity"),&ParticleAttractor2D::get_gravity);
ClassDB::bind_method(_MD("set_absorption","absorption"),&ParticleAttractor2D::set_absorption);
ClassDB::bind_method(_MD("get_absorption"),&ParticleAttractor2D::get_absorption);
ClassDB::bind_method(D_METHOD("set_absorption","absorption"),&ParticleAttractor2D::set_absorption);
ClassDB::bind_method(D_METHOD("get_absorption"),&ParticleAttractor2D::get_absorption);
ClassDB::bind_method(_MD("set_particles_path","path"),&ParticleAttractor2D::set_particles_path);
ClassDB::bind_method(_MD("get_particles_path"),&ParticleAttractor2D::get_particles_path);
ClassDB::bind_method(D_METHOD("set_particles_path","path"),&ParticleAttractor2D::set_particles_path);
ClassDB::bind_method(D_METHOD("get_particles_path"),&ParticleAttractor2D::get_particles_path);
ADD_PROPERTY(PropertyInfo(Variant::BOOL,"enabled"),"set_enabled","is_enabled");
ADD_PROPERTY(PropertyInfo(Variant::REAL,"radius",PROPERTY_HINT_RANGE,"0.1,16000,0.1"),"set_radius","get_radius");
@ -1017,80 +1017,80 @@ void Particles2D::reset() {
void Particles2D::_bind_methods() {
ClassDB::bind_method(_MD("set_emitting","active"),&Particles2D::set_emitting);
ClassDB::bind_method(_MD("is_emitting"),&Particles2D::is_emitting);
ClassDB::bind_method(D_METHOD("set_emitting","active"),&Particles2D::set_emitting);
ClassDB::bind_method(D_METHOD("is_emitting"),&Particles2D::is_emitting);
ClassDB::bind_method(_MD("set_amount","amount"),&Particles2D::set_amount);
ClassDB::bind_method(_MD("get_amount"),&Particles2D::get_amount);
ClassDB::bind_method(D_METHOD("set_amount","amount"),&Particles2D::set_amount);
ClassDB::bind_method(D_METHOD("get_amount"),&Particles2D::get_amount);
ClassDB::bind_method(_MD("set_lifetime","lifetime"),&Particles2D::set_lifetime);
ClassDB::bind_method(_MD("get_lifetime"),&Particles2D::get_lifetime);
ClassDB::bind_method(D_METHOD("set_lifetime","lifetime"),&Particles2D::set_lifetime);
ClassDB::bind_method(D_METHOD("get_lifetime"),&Particles2D::get_lifetime);
ClassDB::bind_method(_MD("set_time_scale","time_scale"),&Particles2D::set_time_scale);
ClassDB::bind_method(_MD("get_time_scale"),&Particles2D::get_time_scale);
ClassDB::bind_method(D_METHOD("set_time_scale","time_scale"),&Particles2D::set_time_scale);
ClassDB::bind_method(D_METHOD("get_time_scale"),&Particles2D::get_time_scale);
ClassDB::bind_method(_MD("set_pre_process_time","time"),&Particles2D::set_pre_process_time);
ClassDB::bind_method(_MD("get_pre_process_time"),&Particles2D::get_pre_process_time);
ClassDB::bind_method(D_METHOD("set_pre_process_time","time"),&Particles2D::set_pre_process_time);
ClassDB::bind_method(D_METHOD("get_pre_process_time"),&Particles2D::get_pre_process_time);
ClassDB::bind_method(_MD("set_emit_timeout","value"),&Particles2D::set_emit_timeout);
ClassDB::bind_method(_MD("get_emit_timeout"),&Particles2D::get_emit_timeout);
ClassDB::bind_method(D_METHOD("set_emit_timeout","value"),&Particles2D::set_emit_timeout);
ClassDB::bind_method(D_METHOD("get_emit_timeout"),&Particles2D::get_emit_timeout);
ClassDB::bind_method(_MD("set_param","param","value"),&Particles2D::set_param);
ClassDB::bind_method(_MD("get_param","param"),&Particles2D::get_param);
ClassDB::bind_method(D_METHOD("set_param","param","value"),&Particles2D::set_param);
ClassDB::bind_method(D_METHOD("get_param","param"),&Particles2D::get_param);
ClassDB::bind_method(_MD("set_randomness","param","value"),&Particles2D::set_randomness);
ClassDB::bind_method(_MD("get_randomness","param"),&Particles2D::get_randomness);
ClassDB::bind_method(D_METHOD("set_randomness","param","value"),&Particles2D::set_randomness);
ClassDB::bind_method(D_METHOD("get_randomness","param"),&Particles2D::get_randomness);
ClassDB::bind_method(_MD("set_texture:Texture","texture"),&Particles2D::set_texture);
ClassDB::bind_method(_MD("get_texture:Texture"),&Particles2D::get_texture);
ClassDB::bind_method(D_METHOD("set_texture:Texture","texture"),&Particles2D::set_texture);
ClassDB::bind_method(D_METHOD("get_texture:Texture"),&Particles2D::get_texture);
ClassDB::bind_method(_MD("set_color","color"),&Particles2D::set_color);
ClassDB::bind_method(_MD("get_color"),&Particles2D::get_color);
ClassDB::bind_method(D_METHOD("set_color","color"),&Particles2D::set_color);
ClassDB::bind_method(D_METHOD("get_color"),&Particles2D::get_color);
ClassDB::bind_method(_MD("set_color_ramp:ColorRamp","color_ramp"),&Particles2D::set_color_ramp);
ClassDB::bind_method(_MD("get_color_ramp:ColorRamp"),&Particles2D::get_color_ramp);
ClassDB::bind_method(D_METHOD("set_color_ramp:ColorRamp","color_ramp"),&Particles2D::set_color_ramp);
ClassDB::bind_method(D_METHOD("get_color_ramp:ColorRamp"),&Particles2D::get_color_ramp);
ClassDB::bind_method(_MD("set_emissor_offset","offset"),&Particles2D::set_emissor_offset);
ClassDB::bind_method(_MD("get_emissor_offset"),&Particles2D::get_emissor_offset);
ClassDB::bind_method(D_METHOD("set_emissor_offset","offset"),&Particles2D::set_emissor_offset);
ClassDB::bind_method(D_METHOD("get_emissor_offset"),&Particles2D::get_emissor_offset);
ClassDB::bind_method(_MD("set_flip_h","enable"),&Particles2D::set_flip_h);
ClassDB::bind_method(_MD("is_flipped_h"),&Particles2D::is_flipped_h);
ClassDB::bind_method(D_METHOD("set_flip_h","enable"),&Particles2D::set_flip_h);
ClassDB::bind_method(D_METHOD("is_flipped_h"),&Particles2D::is_flipped_h);
ClassDB::bind_method(_MD("set_flip_v","enable"),&Particles2D::set_flip_v);
ClassDB::bind_method(_MD("is_flipped_v"),&Particles2D::is_flipped_v);
ClassDB::bind_method(D_METHOD("set_flip_v","enable"),&Particles2D::set_flip_v);
ClassDB::bind_method(D_METHOD("is_flipped_v"),&Particles2D::is_flipped_v);
ClassDB::bind_method(_MD("set_h_frames","enable"),&Particles2D::set_h_frames);
ClassDB::bind_method(_MD("get_h_frames"),&Particles2D::get_h_frames);
ClassDB::bind_method(D_METHOD("set_h_frames","enable"),&Particles2D::set_h_frames);
ClassDB::bind_method(D_METHOD("get_h_frames"),&Particles2D::get_h_frames);
ClassDB::bind_method(_MD("set_v_frames","enable"),&Particles2D::set_v_frames);
ClassDB::bind_method(_MD("get_v_frames"),&Particles2D::get_v_frames);
ClassDB::bind_method(D_METHOD("set_v_frames","enable"),&Particles2D::set_v_frames);
ClassDB::bind_method(D_METHOD("get_v_frames"),&Particles2D::get_v_frames);
ClassDB::bind_method(_MD("set_emission_half_extents","extents"),&Particles2D::set_emission_half_extents);
ClassDB::bind_method(_MD("get_emission_half_extents"),&Particles2D::get_emission_half_extents);
ClassDB::bind_method(D_METHOD("set_emission_half_extents","extents"),&Particles2D::set_emission_half_extents);
ClassDB::bind_method(D_METHOD("get_emission_half_extents"),&Particles2D::get_emission_half_extents);
ClassDB::bind_method(_MD("set_color_phases","phases"),&Particles2D::set_color_phases);
ClassDB::bind_method(_MD("get_color_phases"),&Particles2D::get_color_phases);
ClassDB::bind_method(D_METHOD("set_color_phases","phases"),&Particles2D::set_color_phases);
ClassDB::bind_method(D_METHOD("get_color_phases"),&Particles2D::get_color_phases);
ClassDB::bind_method(_MD("set_color_phase_color","phase","color"),&Particles2D::set_color_phase_color);
ClassDB::bind_method(_MD("get_color_phase_color","phase"),&Particles2D::get_color_phase_color);
ClassDB::bind_method(D_METHOD("set_color_phase_color","phase","color"),&Particles2D::set_color_phase_color);
ClassDB::bind_method(D_METHOD("get_color_phase_color","phase"),&Particles2D::get_color_phase_color);
ClassDB::bind_method(_MD("set_color_phase_pos","phase","pos"),&Particles2D::set_color_phase_pos);
ClassDB::bind_method(_MD("get_color_phase_pos","phase"),&Particles2D::get_color_phase_pos);
ClassDB::bind_method(D_METHOD("set_color_phase_pos","phase","pos"),&Particles2D::set_color_phase_pos);
ClassDB::bind_method(D_METHOD("get_color_phase_pos","phase"),&Particles2D::get_color_phase_pos);
ClassDB::bind_method(_MD("pre_process","time"),&Particles2D::pre_process);
ClassDB::bind_method(_MD("reset"),&Particles2D::reset);
ClassDB::bind_method(D_METHOD("pre_process","time"),&Particles2D::pre_process);
ClassDB::bind_method(D_METHOD("reset"),&Particles2D::reset);
ClassDB::bind_method(_MD("set_use_local_space","enable"),&Particles2D::set_use_local_space);
ClassDB::bind_method(_MD("is_using_local_space"),&Particles2D::is_using_local_space);
ClassDB::bind_method(D_METHOD("set_use_local_space","enable"),&Particles2D::set_use_local_space);
ClassDB::bind_method(D_METHOD("is_using_local_space"),&Particles2D::is_using_local_space);
ClassDB::bind_method(_MD("set_initial_velocity","velocity"),&Particles2D::set_initial_velocity);
ClassDB::bind_method(_MD("get_initial_velocity"),&Particles2D::get_initial_velocity);
ClassDB::bind_method(D_METHOD("set_initial_velocity","velocity"),&Particles2D::set_initial_velocity);
ClassDB::bind_method(D_METHOD("get_initial_velocity"),&Particles2D::get_initial_velocity);
ClassDB::bind_method(_MD("set_explosiveness","amount"),&Particles2D::set_explosiveness);
ClassDB::bind_method(_MD("get_explosiveness"),&Particles2D::get_explosiveness);
ClassDB::bind_method(D_METHOD("set_explosiveness","amount"),&Particles2D::set_explosiveness);
ClassDB::bind_method(D_METHOD("get_explosiveness"),&Particles2D::get_explosiveness);
ClassDB::bind_method(_MD("set_emission_points","points"),&Particles2D::set_emission_points);
ClassDB::bind_method(_MD("get_emission_points"),&Particles2D::get_emission_points);
ClassDB::bind_method(D_METHOD("set_emission_points","points"),&Particles2D::set_emission_points);
ClassDB::bind_method(D_METHOD("get_emission_points"),&Particles2D::get_emission_points);
ADD_PROPERTY(PropertyInfo(Variant::INT,"config/amount",PROPERTY_HINT_EXP_RANGE,"1,1024"),"set_amount","get_amount") ;
ADD_PROPERTY(PropertyInfo(Variant::REAL,"config/lifetime",PROPERTY_HINT_EXP_RANGE,"0.1,3600,0.1"),"set_lifetime","get_lifetime") ;

View file

@ -85,9 +85,9 @@ Ref<Curve2D> Path2D::get_curve() const{
void Path2D::_bind_methods() {
ClassDB::bind_method(_MD("set_curve","curve:Curve2D"),&Path2D::set_curve);
ClassDB::bind_method(_MD("get_curve:Curve2D","curve"),&Path2D::get_curve);
ClassDB::bind_method(_MD("_curve_changed"),&Path2D::_curve_changed);
ClassDB::bind_method(D_METHOD("set_curve","curve:Curve2D"),&Path2D::set_curve);
ClassDB::bind_method(D_METHOD("get_curve:Curve2D","curve"),&Path2D::get_curve);
ClassDB::bind_method(D_METHOD("_curve_changed"),&Path2D::_curve_changed);
ADD_PROPERTY( PropertyInfo( Variant::OBJECT, "curve", PROPERTY_HINT_RESOURCE_TYPE, "Curve2D"), "set_curve","get_curve");
}
@ -252,26 +252,26 @@ String PathFollow2D::get_configuration_warning() const {
void PathFollow2D::_bind_methods() {
ClassDB::bind_method(_MD("set_offset","offset"),&PathFollow2D::set_offset);
ClassDB::bind_method(_MD("get_offset"),&PathFollow2D::get_offset);
ClassDB::bind_method(D_METHOD("set_offset","offset"),&PathFollow2D::set_offset);
ClassDB::bind_method(D_METHOD("get_offset"),&PathFollow2D::get_offset);
ClassDB::bind_method(_MD("set_h_offset","h_offset"),&PathFollow2D::set_h_offset);
ClassDB::bind_method(_MD("get_h_offset"),&PathFollow2D::get_h_offset);
ClassDB::bind_method(D_METHOD("set_h_offset","h_offset"),&PathFollow2D::set_h_offset);
ClassDB::bind_method(D_METHOD("get_h_offset"),&PathFollow2D::get_h_offset);
ClassDB::bind_method(_MD("set_v_offset","v_offset"),&PathFollow2D::set_v_offset);
ClassDB::bind_method(_MD("get_v_offset"),&PathFollow2D::get_v_offset);
ClassDB::bind_method(D_METHOD("set_v_offset","v_offset"),&PathFollow2D::set_v_offset);
ClassDB::bind_method(D_METHOD("get_v_offset"),&PathFollow2D::get_v_offset);
ClassDB::bind_method(_MD("set_unit_offset","unit_offset"),&PathFollow2D::set_unit_offset);
ClassDB::bind_method(_MD("get_unit_offset"),&PathFollow2D::get_unit_offset);
ClassDB::bind_method(D_METHOD("set_unit_offset","unit_offset"),&PathFollow2D::set_unit_offset);
ClassDB::bind_method(D_METHOD("get_unit_offset"),&PathFollow2D::get_unit_offset);
ClassDB::bind_method(_MD("set_rotate","enable"),&PathFollow2D::set_rotate);
ClassDB::bind_method(_MD("is_rotating"),&PathFollow2D::is_rotating);
ClassDB::bind_method(D_METHOD("set_rotate","enable"),&PathFollow2D::set_rotate);
ClassDB::bind_method(D_METHOD("is_rotating"),&PathFollow2D::is_rotating);
ClassDB::bind_method(_MD("set_cubic_interpolation","enable"),&PathFollow2D::set_cubic_interpolation);
ClassDB::bind_method(_MD("get_cubic_interpolation"),&PathFollow2D::get_cubic_interpolation);
ClassDB::bind_method(D_METHOD("set_cubic_interpolation","enable"),&PathFollow2D::set_cubic_interpolation);
ClassDB::bind_method(D_METHOD("get_cubic_interpolation"),&PathFollow2D::get_cubic_interpolation);
ClassDB::bind_method(_MD("set_loop","loop"),&PathFollow2D::set_loop);
ClassDB::bind_method(_MD("has_loop"),&PathFollow2D::has_loop);
ClassDB::bind_method(D_METHOD("set_loop","loop"),&PathFollow2D::set_loop);
ClassDB::bind_method(D_METHOD("has_loop"),&PathFollow2D::has_loop);
}

View file

@ -81,26 +81,26 @@ uint32_t PhysicsBody2D::_get_layers() const{
void PhysicsBody2D::_bind_methods() {
ClassDB::bind_method(_MD("set_collision_layer","mask"),&PhysicsBody2D::set_collision_layer);
ClassDB::bind_method(_MD("get_collision_layer"),&PhysicsBody2D::get_collision_layer);
ClassDB::bind_method(_MD("set_collision_mask","mask"),&PhysicsBody2D::set_collision_mask);
ClassDB::bind_method(_MD("get_collision_mask"),&PhysicsBody2D::get_collision_mask);
ClassDB::bind_method(D_METHOD("set_collision_layer","mask"),&PhysicsBody2D::set_collision_layer);
ClassDB::bind_method(D_METHOD("get_collision_layer"),&PhysicsBody2D::get_collision_layer);
ClassDB::bind_method(D_METHOD("set_collision_mask","mask"),&PhysicsBody2D::set_collision_mask);
ClassDB::bind_method(D_METHOD("get_collision_mask"),&PhysicsBody2D::get_collision_mask);
ClassDB::bind_method(_MD("set_collision_mask_bit","bit","value"),&PhysicsBody2D::set_collision_mask_bit);
ClassDB::bind_method(_MD("get_collision_mask_bit","bit"),&PhysicsBody2D::get_collision_mask_bit);
ClassDB::bind_method(D_METHOD("set_collision_mask_bit","bit","value"),&PhysicsBody2D::set_collision_mask_bit);
ClassDB::bind_method(D_METHOD("get_collision_mask_bit","bit"),&PhysicsBody2D::get_collision_mask_bit);
ClassDB::bind_method(_MD("set_collision_layer_bit","bit","value"),&PhysicsBody2D::set_collision_layer_bit);
ClassDB::bind_method(_MD("get_collision_layer_bit","bit"),&PhysicsBody2D::get_collision_layer_bit);
ClassDB::bind_method(D_METHOD("set_collision_layer_bit","bit","value"),&PhysicsBody2D::set_collision_layer_bit);
ClassDB::bind_method(D_METHOD("get_collision_layer_bit","bit"),&PhysicsBody2D::get_collision_layer_bit);
ClassDB::bind_method(_MD("_set_layers","mask"),&PhysicsBody2D::_set_layers);
ClassDB::bind_method(_MD("_get_layers"),&PhysicsBody2D::_get_layers);
ClassDB::bind_method(_MD("set_one_way_collision_direction","dir"),&PhysicsBody2D::set_one_way_collision_direction);
ClassDB::bind_method(_MD("get_one_way_collision_direction"),&PhysicsBody2D::get_one_way_collision_direction);
ClassDB::bind_method(_MD("set_one_way_collision_max_depth","depth"),&PhysicsBody2D::set_one_way_collision_max_depth);
ClassDB::bind_method(_MD("get_one_way_collision_max_depth"),&PhysicsBody2D::get_one_way_collision_max_depth);
ClassDB::bind_method(_MD("add_collision_exception_with","body:PhysicsBody2D"),&PhysicsBody2D::add_collision_exception_with);
ClassDB::bind_method(_MD("remove_collision_exception_with","body:PhysicsBody2D"),&PhysicsBody2D::remove_collision_exception_with);
ClassDB::bind_method(D_METHOD("_set_layers","mask"),&PhysicsBody2D::_set_layers);
ClassDB::bind_method(D_METHOD("_get_layers"),&PhysicsBody2D::_get_layers);
ClassDB::bind_method(D_METHOD("set_one_way_collision_direction","dir"),&PhysicsBody2D::set_one_way_collision_direction);
ClassDB::bind_method(D_METHOD("get_one_way_collision_direction"),&PhysicsBody2D::get_one_way_collision_direction);
ClassDB::bind_method(D_METHOD("set_one_way_collision_max_depth","depth"),&PhysicsBody2D::set_one_way_collision_max_depth);
ClassDB::bind_method(D_METHOD("get_one_way_collision_max_depth"),&PhysicsBody2D::get_one_way_collision_max_depth);
ClassDB::bind_method(D_METHOD("add_collision_exception_with","body:PhysicsBody2D"),&PhysicsBody2D::add_collision_exception_with);
ClassDB::bind_method(D_METHOD("remove_collision_exception_with","body:PhysicsBody2D"),&PhysicsBody2D::remove_collision_exception_with);
ADD_PROPERTY(PropertyInfo(Variant::INT,"layers",PROPERTY_HINT_LAYERS_2D_PHYSICS,"",0),"_set_layers","_get_layers"); //for backwards compat
ADD_GROUP("Collision","collision_");
@ -271,15 +271,15 @@ real_t StaticBody2D::get_bounce() const{
void StaticBody2D::_bind_methods() {
ClassDB::bind_method(_MD("set_constant_linear_velocity","vel"),&StaticBody2D::set_constant_linear_velocity);
ClassDB::bind_method(_MD("set_constant_angular_velocity","vel"),&StaticBody2D::set_constant_angular_velocity);
ClassDB::bind_method(_MD("get_constant_linear_velocity"),&StaticBody2D::get_constant_linear_velocity);
ClassDB::bind_method(_MD("get_constant_angular_velocity"),&StaticBody2D::get_constant_angular_velocity);
ClassDB::bind_method(_MD("set_friction","friction"),&StaticBody2D::set_friction);
ClassDB::bind_method(_MD("get_friction"),&StaticBody2D::get_friction);
ClassDB::bind_method(D_METHOD("set_constant_linear_velocity","vel"),&StaticBody2D::set_constant_linear_velocity);
ClassDB::bind_method(D_METHOD("set_constant_angular_velocity","vel"),&StaticBody2D::set_constant_angular_velocity);
ClassDB::bind_method(D_METHOD("get_constant_linear_velocity"),&StaticBody2D::get_constant_linear_velocity);
ClassDB::bind_method(D_METHOD("get_constant_angular_velocity"),&StaticBody2D::get_constant_angular_velocity);
ClassDB::bind_method(D_METHOD("set_friction","friction"),&StaticBody2D::set_friction);
ClassDB::bind_method(D_METHOD("get_friction"),&StaticBody2D::get_friction);
ClassDB::bind_method(_MD("set_bounce","bounce"),&StaticBody2D::set_bounce);
ClassDB::bind_method(_MD("get_bounce"),&StaticBody2D::get_bounce);
ClassDB::bind_method(D_METHOD("set_bounce","bounce"),&StaticBody2D::set_bounce);
ClassDB::bind_method(D_METHOD("get_bounce"),&StaticBody2D::get_bounce);
ADD_PROPERTY(PropertyInfo(Variant::VECTOR2,"constant_linear_velocity"),"set_constant_linear_velocity","get_constant_linear_velocity");
ADD_PROPERTY(PropertyInfo(Variant::REAL,"constant_angular_velocity"),"set_constant_angular_velocity","get_constant_angular_velocity");
@ -882,75 +882,75 @@ bool RigidBody2D::is_contact_monitor_enabled() const {
void RigidBody2D::_bind_methods() {
ClassDB::bind_method(_MD("set_mode","mode"),&RigidBody2D::set_mode);
ClassDB::bind_method(_MD("get_mode"),&RigidBody2D::get_mode);
ClassDB::bind_method(D_METHOD("set_mode","mode"),&RigidBody2D::set_mode);
ClassDB::bind_method(D_METHOD("get_mode"),&RigidBody2D::get_mode);
ClassDB::bind_method(_MD("set_mass","mass"),&RigidBody2D::set_mass);
ClassDB::bind_method(_MD("get_mass"),&RigidBody2D::get_mass);
ClassDB::bind_method(D_METHOD("set_mass","mass"),&RigidBody2D::set_mass);
ClassDB::bind_method(D_METHOD("get_mass"),&RigidBody2D::get_mass);
ClassDB::bind_method(_MD("get_inertia"),&RigidBody2D::get_inertia);
ClassDB::bind_method(_MD("set_inertia","inertia"),&RigidBody2D::set_inertia);
ClassDB::bind_method(D_METHOD("get_inertia"),&RigidBody2D::get_inertia);
ClassDB::bind_method(D_METHOD("set_inertia","inertia"),&RigidBody2D::set_inertia);
ClassDB::bind_method(_MD("set_weight","weight"),&RigidBody2D::set_weight);
ClassDB::bind_method(_MD("get_weight"),&RigidBody2D::get_weight);
ClassDB::bind_method(D_METHOD("set_weight","weight"),&RigidBody2D::set_weight);
ClassDB::bind_method(D_METHOD("get_weight"),&RigidBody2D::get_weight);
ClassDB::bind_method(_MD("set_friction","friction"),&RigidBody2D::set_friction);
ClassDB::bind_method(_MD("get_friction"),&RigidBody2D::get_friction);
ClassDB::bind_method(D_METHOD("set_friction","friction"),&RigidBody2D::set_friction);
ClassDB::bind_method(D_METHOD("get_friction"),&RigidBody2D::get_friction);
ClassDB::bind_method(_MD("set_bounce","bounce"),&RigidBody2D::set_bounce);
ClassDB::bind_method(_MD("get_bounce"),&RigidBody2D::get_bounce);
ClassDB::bind_method(D_METHOD("set_bounce","bounce"),&RigidBody2D::set_bounce);
ClassDB::bind_method(D_METHOD("get_bounce"),&RigidBody2D::get_bounce);
ClassDB::bind_method(_MD("set_gravity_scale","gravity_scale"),&RigidBody2D::set_gravity_scale);
ClassDB::bind_method(_MD("get_gravity_scale"),&RigidBody2D::get_gravity_scale);
ClassDB::bind_method(D_METHOD("set_gravity_scale","gravity_scale"),&RigidBody2D::set_gravity_scale);
ClassDB::bind_method(D_METHOD("get_gravity_scale"),&RigidBody2D::get_gravity_scale);
ClassDB::bind_method(_MD("set_linear_damp","linear_damp"),&RigidBody2D::set_linear_damp);
ClassDB::bind_method(_MD("get_linear_damp"),&RigidBody2D::get_linear_damp);
ClassDB::bind_method(D_METHOD("set_linear_damp","linear_damp"),&RigidBody2D::set_linear_damp);
ClassDB::bind_method(D_METHOD("get_linear_damp"),&RigidBody2D::get_linear_damp);
ClassDB::bind_method(_MD("set_angular_damp","angular_damp"),&RigidBody2D::set_angular_damp);
ClassDB::bind_method(_MD("get_angular_damp"),&RigidBody2D::get_angular_damp);
ClassDB::bind_method(D_METHOD("set_angular_damp","angular_damp"),&RigidBody2D::set_angular_damp);
ClassDB::bind_method(D_METHOD("get_angular_damp"),&RigidBody2D::get_angular_damp);
ClassDB::bind_method(_MD("set_linear_velocity","linear_velocity"),&RigidBody2D::set_linear_velocity);
ClassDB::bind_method(_MD("get_linear_velocity"),&RigidBody2D::get_linear_velocity);
ClassDB::bind_method(D_METHOD("set_linear_velocity","linear_velocity"),&RigidBody2D::set_linear_velocity);
ClassDB::bind_method(D_METHOD("get_linear_velocity"),&RigidBody2D::get_linear_velocity);
ClassDB::bind_method(_MD("set_angular_velocity","angular_velocity"),&RigidBody2D::set_angular_velocity);
ClassDB::bind_method(_MD("get_angular_velocity"),&RigidBody2D::get_angular_velocity);
ClassDB::bind_method(D_METHOD("set_angular_velocity","angular_velocity"),&RigidBody2D::set_angular_velocity);
ClassDB::bind_method(D_METHOD("get_angular_velocity"),&RigidBody2D::get_angular_velocity);
ClassDB::bind_method(_MD("set_max_contacts_reported","amount"),&RigidBody2D::set_max_contacts_reported);
ClassDB::bind_method(_MD("get_max_contacts_reported"),&RigidBody2D::get_max_contacts_reported);
ClassDB::bind_method(D_METHOD("set_max_contacts_reported","amount"),&RigidBody2D::set_max_contacts_reported);
ClassDB::bind_method(D_METHOD("get_max_contacts_reported"),&RigidBody2D::get_max_contacts_reported);
ClassDB::bind_method(_MD("set_use_custom_integrator","enable"),&RigidBody2D::set_use_custom_integrator);
ClassDB::bind_method(_MD("is_using_custom_integrator"),&RigidBody2D::is_using_custom_integrator);
ClassDB::bind_method(D_METHOD("set_use_custom_integrator","enable"),&RigidBody2D::set_use_custom_integrator);
ClassDB::bind_method(D_METHOD("is_using_custom_integrator"),&RigidBody2D::is_using_custom_integrator);
ClassDB::bind_method(_MD("set_contact_monitor","enabled"),&RigidBody2D::set_contact_monitor);
ClassDB::bind_method(_MD("is_contact_monitor_enabled"),&RigidBody2D::is_contact_monitor_enabled);
ClassDB::bind_method(D_METHOD("set_contact_monitor","enabled"),&RigidBody2D::set_contact_monitor);
ClassDB::bind_method(D_METHOD("is_contact_monitor_enabled"),&RigidBody2D::is_contact_monitor_enabled);
ClassDB::bind_method(_MD("set_continuous_collision_detection_mode","mode"),&RigidBody2D::set_continuous_collision_detection_mode);
ClassDB::bind_method(_MD("get_continuous_collision_detection_mode"),&RigidBody2D::get_continuous_collision_detection_mode);
ClassDB::bind_method(D_METHOD("set_continuous_collision_detection_mode","mode"),&RigidBody2D::set_continuous_collision_detection_mode);
ClassDB::bind_method(D_METHOD("get_continuous_collision_detection_mode"),&RigidBody2D::get_continuous_collision_detection_mode);
ClassDB::bind_method(_MD("set_axis_velocity","axis_velocity"),&RigidBody2D::set_axis_velocity);
ClassDB::bind_method(_MD("apply_impulse","offset","impulse"),&RigidBody2D::apply_impulse);
ClassDB::bind_method(D_METHOD("set_axis_velocity","axis_velocity"),&RigidBody2D::set_axis_velocity);
ClassDB::bind_method(D_METHOD("apply_impulse","offset","impulse"),&RigidBody2D::apply_impulse);
ClassDB::bind_method(_MD("set_applied_force","force"),&RigidBody2D::set_applied_force);
ClassDB::bind_method(_MD("get_applied_force"),&RigidBody2D::get_applied_force);
ClassDB::bind_method(D_METHOD("set_applied_force","force"),&RigidBody2D::set_applied_force);
ClassDB::bind_method(D_METHOD("get_applied_force"),&RigidBody2D::get_applied_force);
ClassDB::bind_method(_MD("set_applied_torque","torque"),&RigidBody2D::set_applied_torque);
ClassDB::bind_method(_MD("get_applied_torque"),&RigidBody2D::get_applied_torque);
ClassDB::bind_method(D_METHOD("set_applied_torque","torque"),&RigidBody2D::set_applied_torque);
ClassDB::bind_method(D_METHOD("get_applied_torque"),&RigidBody2D::get_applied_torque);
ClassDB::bind_method(_MD("add_force","offset","force"),&RigidBody2D::add_force);
ClassDB::bind_method(D_METHOD("add_force","offset","force"),&RigidBody2D::add_force);
ClassDB::bind_method(_MD("set_sleeping","sleeping"),&RigidBody2D::set_sleeping);
ClassDB::bind_method(_MD("is_sleeping"),&RigidBody2D::is_sleeping);
ClassDB::bind_method(D_METHOD("set_sleeping","sleeping"),&RigidBody2D::set_sleeping);
ClassDB::bind_method(D_METHOD("is_sleeping"),&RigidBody2D::is_sleeping);
ClassDB::bind_method(_MD("set_can_sleep","able_to_sleep"),&RigidBody2D::set_can_sleep);
ClassDB::bind_method(_MD("is_able_to_sleep"),&RigidBody2D::is_able_to_sleep);
ClassDB::bind_method(D_METHOD("set_can_sleep","able_to_sleep"),&RigidBody2D::set_can_sleep);
ClassDB::bind_method(D_METHOD("is_able_to_sleep"),&RigidBody2D::is_able_to_sleep);
ClassDB::bind_method(_MD("test_motion","motion","margin","result:Physics2DTestMotionResult"),&RigidBody2D::_test_motion,DEFVAL(0.08),DEFVAL(Variant()));
ClassDB::bind_method(D_METHOD("test_motion","motion","margin","result:Physics2DTestMotionResult"),&RigidBody2D::_test_motion,DEFVAL(0.08),DEFVAL(Variant()));
ClassDB::bind_method(_MD("_direct_state_changed"),&RigidBody2D::_direct_state_changed);
ClassDB::bind_method(_MD("_body_enter_tree"),&RigidBody2D::_body_enter_tree);
ClassDB::bind_method(_MD("_body_exit_tree"),&RigidBody2D::_body_exit_tree);
ClassDB::bind_method(D_METHOD("_direct_state_changed"),&RigidBody2D::_direct_state_changed);
ClassDB::bind_method(D_METHOD("_body_enter_tree"),&RigidBody2D::_body_enter_tree);
ClassDB::bind_method(D_METHOD("_body_exit_tree"),&RigidBody2D::_body_exit_tree);
ClassDB::bind_method(_MD("get_colliding_bodies"),&RigidBody2D::get_colliding_bodies);
ClassDB::bind_method(D_METHOD("get_colliding_bodies"),&RigidBody2D::get_colliding_bodies);
BIND_VMETHOD(MethodInfo("_integrate_forces",PropertyInfo(Variant::OBJECT,"state:Physics2DDirectBodyState")));
@ -1388,29 +1388,29 @@ float KinematicBody2D::get_collision_margin() const{
void KinematicBody2D::_bind_methods() {
ClassDB::bind_method(_MD("move","rel_vec"),&KinematicBody2D::move);
ClassDB::bind_method(_MD("move_to","position"),&KinematicBody2D::move_to);
ClassDB::bind_method(_MD("move_and_slide","linear_velocity","floor_normal","slope_stop_min_velocity","max_bounces"),&KinematicBody2D::move_and_slide,DEFVAL(Vector2(0,0)),DEFVAL(5),DEFVAL(4));
ClassDB::bind_method(D_METHOD("move","rel_vec"),&KinematicBody2D::move);
ClassDB::bind_method(D_METHOD("move_to","position"),&KinematicBody2D::move_to);
ClassDB::bind_method(D_METHOD("move_and_slide","linear_velocity","floor_normal","slope_stop_min_velocity","max_bounces"),&KinematicBody2D::move_and_slide,DEFVAL(Vector2(0,0)),DEFVAL(5),DEFVAL(4));
ClassDB::bind_method(_MD("test_move","from","rel_vec"),&KinematicBody2D::test_move);
ClassDB::bind_method(_MD("get_travel"),&KinematicBody2D::get_travel);
ClassDB::bind_method(_MD("revert_motion"),&KinematicBody2D::revert_motion);
ClassDB::bind_method(D_METHOD("test_move","from","rel_vec"),&KinematicBody2D::test_move);
ClassDB::bind_method(D_METHOD("get_travel"),&KinematicBody2D::get_travel);
ClassDB::bind_method(D_METHOD("revert_motion"),&KinematicBody2D::revert_motion);
ClassDB::bind_method(_MD("is_colliding"),&KinematicBody2D::is_colliding);
ClassDB::bind_method(D_METHOD("is_colliding"),&KinematicBody2D::is_colliding);
ClassDB::bind_method(_MD("get_collision_pos"),&KinematicBody2D::get_collision_pos);
ClassDB::bind_method(_MD("get_collision_normal"),&KinematicBody2D::get_collision_normal);
ClassDB::bind_method(_MD("get_collider_velocity"),&KinematicBody2D::get_collider_velocity);
ClassDB::bind_method(_MD("get_collider:Variant"),&KinematicBody2D::_get_collider);
ClassDB::bind_method(_MD("get_collider_shape"),&KinematicBody2D::get_collider_shape);
ClassDB::bind_method(_MD("get_collider_metadata:Variant"),&KinematicBody2D::get_collider_metadata);
ClassDB::bind_method(_MD("get_move_and_slide_colliders"),&KinematicBody2D::get_move_and_slide_colliders);
ClassDB::bind_method(_MD("is_move_and_slide_on_floor"),&KinematicBody2D::is_move_and_slide_on_floor);
ClassDB::bind_method(_MD("is_move_and_slide_on_ceiling"),&KinematicBody2D::is_move_and_slide_on_ceiling);
ClassDB::bind_method(_MD("is_move_and_slide_on_wall"),&KinematicBody2D::is_move_and_slide_on_wall);
ClassDB::bind_method(D_METHOD("get_collision_pos"),&KinematicBody2D::get_collision_pos);
ClassDB::bind_method(D_METHOD("get_collision_normal"),&KinematicBody2D::get_collision_normal);
ClassDB::bind_method(D_METHOD("get_collider_velocity"),&KinematicBody2D::get_collider_velocity);
ClassDB::bind_method(D_METHOD("get_collider:Variant"),&KinematicBody2D::_get_collider);
ClassDB::bind_method(D_METHOD("get_collider_shape"),&KinematicBody2D::get_collider_shape);
ClassDB::bind_method(D_METHOD("get_collider_metadata:Variant"),&KinematicBody2D::get_collider_metadata);
ClassDB::bind_method(D_METHOD("get_move_and_slide_colliders"),&KinematicBody2D::get_move_and_slide_colliders);
ClassDB::bind_method(D_METHOD("is_move_and_slide_on_floor"),&KinematicBody2D::is_move_and_slide_on_floor);
ClassDB::bind_method(D_METHOD("is_move_and_slide_on_ceiling"),&KinematicBody2D::is_move_and_slide_on_ceiling);
ClassDB::bind_method(D_METHOD("is_move_and_slide_on_wall"),&KinematicBody2D::is_move_and_slide_on_wall);
ClassDB::bind_method(_MD("set_collision_margin","pixels"),&KinematicBody2D::set_collision_margin);
ClassDB::bind_method(_MD("get_collision_margin","pixels"),&KinematicBody2D::get_collision_margin);
ClassDB::bind_method(D_METHOD("set_collision_margin","pixels"),&KinematicBody2D::set_collision_margin);
ClassDB::bind_method(D_METHOD("get_collision_margin","pixels"),&KinematicBody2D::get_collision_margin);
ADD_PROPERTY( PropertyInfo(Variant::REAL,"collision/margin",PROPERTY_HINT_RANGE,"0.001,256,0.001"),"set_collision_margin","get_collision_margin");

View file

@ -333,42 +333,42 @@ Vector2 Polygon2D::get_offset() const {
void Polygon2D::_bind_methods() {
ClassDB::bind_method(_MD("set_polygon","polygon"),&Polygon2D::set_polygon);
ClassDB::bind_method(_MD("get_polygon"),&Polygon2D::get_polygon);
ClassDB::bind_method(D_METHOD("set_polygon","polygon"),&Polygon2D::set_polygon);
ClassDB::bind_method(D_METHOD("get_polygon"),&Polygon2D::get_polygon);
ClassDB::bind_method(_MD("set_uv","uv"),&Polygon2D::set_uv);
ClassDB::bind_method(_MD("get_uv"),&Polygon2D::get_uv);
ClassDB::bind_method(D_METHOD("set_uv","uv"),&Polygon2D::set_uv);
ClassDB::bind_method(D_METHOD("get_uv"),&Polygon2D::get_uv);
ClassDB::bind_method(_MD("set_color","color"),&Polygon2D::set_color);
ClassDB::bind_method(_MD("get_color"),&Polygon2D::get_color);
ClassDB::bind_method(D_METHOD("set_color","color"),&Polygon2D::set_color);
ClassDB::bind_method(D_METHOD("get_color"),&Polygon2D::get_color);
ClassDB::bind_method(_MD("set_vertex_colors","vertex_colors"),&Polygon2D::set_vertex_colors);
ClassDB::bind_method(_MD("get_vertex_colors"),&Polygon2D::get_vertex_colors);
ClassDB::bind_method(D_METHOD("set_vertex_colors","vertex_colors"),&Polygon2D::set_vertex_colors);
ClassDB::bind_method(D_METHOD("get_vertex_colors"),&Polygon2D::get_vertex_colors);
ClassDB::bind_method(_MD("set_texture","texture"),&Polygon2D::set_texture);
ClassDB::bind_method(_MD("get_texture"),&Polygon2D::get_texture);
ClassDB::bind_method(D_METHOD("set_texture","texture"),&Polygon2D::set_texture);
ClassDB::bind_method(D_METHOD("get_texture"),&Polygon2D::get_texture);
ClassDB::bind_method(_MD("set_texture_offset","texture_offset"),&Polygon2D::set_texture_offset);
ClassDB::bind_method(_MD("get_texture_offset"),&Polygon2D::get_texture_offset);
ClassDB::bind_method(D_METHOD("set_texture_offset","texture_offset"),&Polygon2D::set_texture_offset);
ClassDB::bind_method(D_METHOD("get_texture_offset"),&Polygon2D::get_texture_offset);
ClassDB::bind_method(_MD("set_texture_rotation","texture_rotation"),&Polygon2D::set_texture_rotation);
ClassDB::bind_method(_MD("get_texture_rotation"),&Polygon2D::get_texture_rotation);
ClassDB::bind_method(D_METHOD("set_texture_rotation","texture_rotation"),&Polygon2D::set_texture_rotation);
ClassDB::bind_method(D_METHOD("get_texture_rotation"),&Polygon2D::get_texture_rotation);
ClassDB::bind_method(_MD("_set_texture_rotationd","texture_rotation"),&Polygon2D::_set_texture_rotationd);
ClassDB::bind_method(_MD("_get_texture_rotationd"),&Polygon2D::_get_texture_rotationd);
ClassDB::bind_method(D_METHOD("_set_texture_rotationd","texture_rotation"),&Polygon2D::_set_texture_rotationd);
ClassDB::bind_method(D_METHOD("_get_texture_rotationd"),&Polygon2D::_get_texture_rotationd);
ClassDB::bind_method(_MD("set_texture_scale","texture_scale"),&Polygon2D::set_texture_scale);
ClassDB::bind_method(_MD("get_texture_scale"),&Polygon2D::get_texture_scale);
ClassDB::bind_method(D_METHOD("set_texture_scale","texture_scale"),&Polygon2D::set_texture_scale);
ClassDB::bind_method(D_METHOD("get_texture_scale"),&Polygon2D::get_texture_scale);
ClassDB::bind_method(_MD("set_invert","invert"),&Polygon2D::set_invert);
ClassDB::bind_method(_MD("get_invert"),&Polygon2D::get_invert);
ClassDB::bind_method(D_METHOD("set_invert","invert"),&Polygon2D::set_invert);
ClassDB::bind_method(D_METHOD("get_invert"),&Polygon2D::get_invert);
ClassDB::bind_method(_MD("set_invert_border","invert_border"),&Polygon2D::set_invert_border);
ClassDB::bind_method(_MD("get_invert_border"),&Polygon2D::get_invert_border);
ClassDB::bind_method(D_METHOD("set_invert_border","invert_border"),&Polygon2D::set_invert_border);
ClassDB::bind_method(D_METHOD("get_invert_border"),&Polygon2D::get_invert_border);
ClassDB::bind_method(_MD("set_offset","offset"),&Polygon2D::set_offset);
ClassDB::bind_method(_MD("get_offset"),&Polygon2D::get_offset);
ClassDB::bind_method(D_METHOD("set_offset","offset"),&Polygon2D::set_offset);
ClassDB::bind_method(D_METHOD("get_offset"),&Polygon2D::get_offset);

View file

@ -263,36 +263,36 @@ void RayCast2D::clear_exceptions(){
void RayCast2D::_bind_methods() {
ClassDB::bind_method(_MD("set_enabled","enabled"),&RayCast2D::set_enabled);
ClassDB::bind_method(_MD("is_enabled"),&RayCast2D::is_enabled);
ClassDB::bind_method(D_METHOD("set_enabled","enabled"),&RayCast2D::set_enabled);
ClassDB::bind_method(D_METHOD("is_enabled"),&RayCast2D::is_enabled);
ClassDB::bind_method(_MD("set_cast_to","local_point"),&RayCast2D::set_cast_to);
ClassDB::bind_method(_MD("get_cast_to"),&RayCast2D::get_cast_to);
ClassDB::bind_method(D_METHOD("set_cast_to","local_point"),&RayCast2D::set_cast_to);
ClassDB::bind_method(D_METHOD("get_cast_to"),&RayCast2D::get_cast_to);
ClassDB::bind_method(_MD("is_colliding"),&RayCast2D::is_colliding);
ClassDB::bind_method(_MD("force_raycast_update"),&RayCast2D::force_raycast_update);
ClassDB::bind_method(D_METHOD("is_colliding"),&RayCast2D::is_colliding);
ClassDB::bind_method(D_METHOD("force_raycast_update"),&RayCast2D::force_raycast_update);
ClassDB::bind_method(_MD("get_collider"),&RayCast2D::get_collider);
ClassDB::bind_method(_MD("get_collider_shape"),&RayCast2D::get_collider_shape);
ClassDB::bind_method(_MD("get_collision_point"),&RayCast2D::get_collision_point);
ClassDB::bind_method(_MD("get_collision_normal"),&RayCast2D::get_collision_normal);
ClassDB::bind_method(D_METHOD("get_collider"),&RayCast2D::get_collider);
ClassDB::bind_method(D_METHOD("get_collider_shape"),&RayCast2D::get_collider_shape);
ClassDB::bind_method(D_METHOD("get_collision_point"),&RayCast2D::get_collision_point);
ClassDB::bind_method(D_METHOD("get_collision_normal"),&RayCast2D::get_collision_normal);
ClassDB::bind_method(_MD("add_exception_rid","rid"),&RayCast2D::add_exception_rid);
ClassDB::bind_method(_MD("add_exception","node"),&RayCast2D::add_exception);
ClassDB::bind_method(D_METHOD("add_exception_rid","rid"),&RayCast2D::add_exception_rid);
ClassDB::bind_method(D_METHOD("add_exception","node"),&RayCast2D::add_exception);
ClassDB::bind_method(_MD("remove_exception_rid","rid"),&RayCast2D::remove_exception_rid);
ClassDB::bind_method(_MD("remove_exception","node"),&RayCast2D::remove_exception);
ClassDB::bind_method(D_METHOD("remove_exception_rid","rid"),&RayCast2D::remove_exception_rid);
ClassDB::bind_method(D_METHOD("remove_exception","node"),&RayCast2D::remove_exception);
ClassDB::bind_method(_MD("clear_exceptions"),&RayCast2D::clear_exceptions);
ClassDB::bind_method(D_METHOD("clear_exceptions"),&RayCast2D::clear_exceptions);
ClassDB::bind_method(_MD("set_layer_mask","mask"),&RayCast2D::set_layer_mask);
ClassDB::bind_method(_MD("get_layer_mask"),&RayCast2D::get_layer_mask);
ClassDB::bind_method(D_METHOD("set_layer_mask","mask"),&RayCast2D::set_layer_mask);
ClassDB::bind_method(D_METHOD("get_layer_mask"),&RayCast2D::get_layer_mask);
ClassDB::bind_method(_MD("set_type_mask","mask"),&RayCast2D::set_type_mask);
ClassDB::bind_method(_MD("get_type_mask"),&RayCast2D::get_type_mask);
ClassDB::bind_method(D_METHOD("set_type_mask","mask"),&RayCast2D::set_type_mask);
ClassDB::bind_method(D_METHOD("get_type_mask"),&RayCast2D::get_type_mask);
ClassDB::bind_method(_MD("set_exclude_parent_body","mask"),&RayCast2D::set_exclude_parent_body);
ClassDB::bind_method(_MD("get_exclude_parent_body"),&RayCast2D::get_exclude_parent_body);
ClassDB::bind_method(D_METHOD("set_exclude_parent_body","mask"),&RayCast2D::set_exclude_parent_body);
ClassDB::bind_method(D_METHOD("get_exclude_parent_body"),&RayCast2D::get_exclude_parent_body);
ADD_PROPERTY(PropertyInfo(Variant::BOOL,"enabled"),"set_enabled","is_enabled");
ADD_PROPERTY(PropertyInfo(Variant::BOOL,"exclude_parent"),"set_exclude_parent_body","get_exclude_parent_body");

View file

@ -118,8 +118,8 @@ String RemoteTransform2D::get_configuration_warning() const {
void RemoteTransform2D::_bind_methods() {
ClassDB::bind_method(_MD("set_remote_node","path"),&RemoteTransform2D::set_remote_node);
ClassDB::bind_method(_MD("get_remote_node"),&RemoteTransform2D::get_remote_node);
ClassDB::bind_method(D_METHOD("set_remote_node","path"),&RemoteTransform2D::set_remote_node);
ClassDB::bind_method(D_METHOD("get_remote_node"),&RemoteTransform2D::get_remote_node);
ADD_PROPERTY( PropertyInfo(Variant::NODE_PATH,"remote_path"),"set_remote_node","get_remote_node");
}

View file

@ -359,33 +359,33 @@ bool TouchScreenButton::is_passby_press_enabled() const{
void TouchScreenButton::_bind_methods() {
ClassDB::bind_method(_MD("set_texture","texture"),&TouchScreenButton::set_texture);
ClassDB::bind_method(_MD("get_texture"),&TouchScreenButton::get_texture);
ClassDB::bind_method(D_METHOD("set_texture","texture"),&TouchScreenButton::set_texture);
ClassDB::bind_method(D_METHOD("get_texture"),&TouchScreenButton::get_texture);
ClassDB::bind_method(_MD("set_texture_pressed","texture_pressed"),&TouchScreenButton::set_texture_pressed);
ClassDB::bind_method(_MD("get_texture_pressed"),&TouchScreenButton::get_texture_pressed);
ClassDB::bind_method(D_METHOD("set_texture_pressed","texture_pressed"),&TouchScreenButton::set_texture_pressed);
ClassDB::bind_method(D_METHOD("get_texture_pressed"),&TouchScreenButton::get_texture_pressed);
ClassDB::bind_method(_MD("set_bitmask","bitmask"),&TouchScreenButton::set_bitmask);
ClassDB::bind_method(_MD("get_bitmask"),&TouchScreenButton::get_bitmask);
ClassDB::bind_method(D_METHOD("set_bitmask","bitmask"),&TouchScreenButton::set_bitmask);
ClassDB::bind_method(D_METHOD("get_bitmask"),&TouchScreenButton::get_bitmask);
ClassDB::bind_method(_MD("set_shape","shape"),&TouchScreenButton::set_shape);
ClassDB::bind_method(_MD("get_shape"),&TouchScreenButton::get_shape);
ClassDB::bind_method(D_METHOD("set_shape","shape"),&TouchScreenButton::set_shape);
ClassDB::bind_method(D_METHOD("get_shape"),&TouchScreenButton::get_shape);
ClassDB::bind_method(_MD("set_shape_centered","bool"),&TouchScreenButton::set_shape_centered);
ClassDB::bind_method(_MD("is_shape_centered"),&TouchScreenButton::is_shape_centered);
ClassDB::bind_method(D_METHOD("set_shape_centered","bool"),&TouchScreenButton::set_shape_centered);
ClassDB::bind_method(D_METHOD("is_shape_centered"),&TouchScreenButton::is_shape_centered);
ClassDB::bind_method(_MD("set_action","action"),&TouchScreenButton::set_action);
ClassDB::bind_method(_MD("get_action"),&TouchScreenButton::get_action);
ClassDB::bind_method(D_METHOD("set_action","action"),&TouchScreenButton::set_action);
ClassDB::bind_method(D_METHOD("get_action"),&TouchScreenButton::get_action);
ClassDB::bind_method(_MD("set_visibility_mode","mode"),&TouchScreenButton::set_visibility_mode);
ClassDB::bind_method(_MD("get_visibility_mode"),&TouchScreenButton::get_visibility_mode);
ClassDB::bind_method(D_METHOD("set_visibility_mode","mode"),&TouchScreenButton::set_visibility_mode);
ClassDB::bind_method(D_METHOD("get_visibility_mode"),&TouchScreenButton::get_visibility_mode);
ClassDB::bind_method(_MD("set_passby_press","enabled"),&TouchScreenButton::set_passby_press);
ClassDB::bind_method(_MD("is_passby_press_enabled"),&TouchScreenButton::is_passby_press_enabled);
ClassDB::bind_method(D_METHOD("set_passby_press","enabled"),&TouchScreenButton::set_passby_press);
ClassDB::bind_method(D_METHOD("is_passby_press_enabled"),&TouchScreenButton::is_passby_press_enabled);
ClassDB::bind_method(_MD("is_pressed"),&TouchScreenButton::is_pressed);
ClassDB::bind_method(D_METHOD("is_pressed"),&TouchScreenButton::is_pressed);
ClassDB::bind_method(_MD("_input"),&TouchScreenButton::_input);
ClassDB::bind_method(D_METHOD("_input"),&TouchScreenButton::_input);
ADD_PROPERTY( PropertyInfo(Variant::OBJECT,"normal",PROPERTY_HINT_RESOURCE_TYPE,"Texture"),"set_texture","get_texture");
ADD_PROPERTY( PropertyInfo(Variant::OBJECT,"pressed",PROPERTY_HINT_RESOURCE_TYPE,"Texture"),"set_texture_pressed","get_texture_pressed");

View file

@ -294,35 +294,35 @@ void Sprite::_validate_property(PropertyInfo& property) const {
void Sprite::_bind_methods() {
ClassDB::bind_method(_MD("set_texture","texture:Texture"),&Sprite::set_texture);
ClassDB::bind_method(_MD("get_texture:Texture"),&Sprite::get_texture);
ClassDB::bind_method(D_METHOD("set_texture","texture:Texture"),&Sprite::set_texture);
ClassDB::bind_method(D_METHOD("get_texture:Texture"),&Sprite::get_texture);
ClassDB::bind_method(_MD("set_centered","centered"),&Sprite::set_centered);
ClassDB::bind_method(_MD("is_centered"),&Sprite::is_centered);
ClassDB::bind_method(D_METHOD("set_centered","centered"),&Sprite::set_centered);
ClassDB::bind_method(D_METHOD("is_centered"),&Sprite::is_centered);
ClassDB::bind_method(_MD("set_offset","offset"),&Sprite::set_offset);
ClassDB::bind_method(_MD("get_offset"),&Sprite::get_offset);
ClassDB::bind_method(D_METHOD("set_offset","offset"),&Sprite::set_offset);
ClassDB::bind_method(D_METHOD("get_offset"),&Sprite::get_offset);
ClassDB::bind_method(_MD("set_flip_h","flip_h"),&Sprite::set_flip_h);
ClassDB::bind_method(_MD("is_flipped_h"),&Sprite::is_flipped_h);
ClassDB::bind_method(D_METHOD("set_flip_h","flip_h"),&Sprite::set_flip_h);
ClassDB::bind_method(D_METHOD("is_flipped_h"),&Sprite::is_flipped_h);
ClassDB::bind_method(_MD("set_flip_v","flip_v"),&Sprite::set_flip_v);
ClassDB::bind_method(_MD("is_flipped_v"),&Sprite::is_flipped_v);
ClassDB::bind_method(D_METHOD("set_flip_v","flip_v"),&Sprite::set_flip_v);
ClassDB::bind_method(D_METHOD("is_flipped_v"),&Sprite::is_flipped_v);
ClassDB::bind_method(_MD("set_region","enabled"),&Sprite::set_region);
ClassDB::bind_method(_MD("is_region"),&Sprite::is_region);
ClassDB::bind_method(D_METHOD("set_region","enabled"),&Sprite::set_region);
ClassDB::bind_method(D_METHOD("is_region"),&Sprite::is_region);
ClassDB::bind_method(_MD("set_region_rect","rect"),&Sprite::set_region_rect);
ClassDB::bind_method(_MD("get_region_rect"),&Sprite::get_region_rect);
ClassDB::bind_method(D_METHOD("set_region_rect","rect"),&Sprite::set_region_rect);
ClassDB::bind_method(D_METHOD("get_region_rect"),&Sprite::get_region_rect);
ClassDB::bind_method(_MD("set_frame","frame"),&Sprite::set_frame);
ClassDB::bind_method(_MD("get_frame"),&Sprite::get_frame);
ClassDB::bind_method(D_METHOD("set_frame","frame"),&Sprite::set_frame);
ClassDB::bind_method(D_METHOD("get_frame"),&Sprite::get_frame);
ClassDB::bind_method(_MD("set_vframes","vframes"),&Sprite::set_vframes);
ClassDB::bind_method(_MD("get_vframes"),&Sprite::get_vframes);
ClassDB::bind_method(D_METHOD("set_vframes","vframes"),&Sprite::set_vframes);
ClassDB::bind_method(D_METHOD("get_vframes"),&Sprite::get_vframes);
ClassDB::bind_method(_MD("set_hframes","hframes"),&Sprite::set_hframes);
ClassDB::bind_method(_MD("get_hframes"),&Sprite::get_hframes);
ClassDB::bind_method(D_METHOD("set_hframes","hframes"),&Sprite::set_hframes);
ClassDB::bind_method(D_METHOD("get_hframes"),&Sprite::get_hframes);
ADD_SIGNAL(MethodInfo("frame_changed"));
ADD_SIGNAL(MethodInfo("texture_changed"));
@ -552,17 +552,17 @@ String ViewportSprite::get_configuration_warning() const {
void ViewportSprite::_bind_methods() {
ClassDB::bind_method(_MD("set_viewport_path","path"),&ViewportSprite::set_viewport_path);
ClassDB::bind_method(_MD("get_viewport_path"),&ViewportSprite::get_viewport_path);
ClassDB::bind_method(D_METHOD("set_viewport_path","path"),&ViewportSprite::set_viewport_path);
ClassDB::bind_method(D_METHOD("get_viewport_path"),&ViewportSprite::get_viewport_path);
ClassDB::bind_method(_MD("set_centered","centered"),&ViewportSprite::set_centered);
ClassDB::bind_method(_MD("is_centered"),&ViewportSprite::is_centered);
ClassDB::bind_method(D_METHOD("set_centered","centered"),&ViewportSprite::set_centered);
ClassDB::bind_method(D_METHOD("is_centered"),&ViewportSprite::is_centered);
ClassDB::bind_method(_MD("set_offset","offset"),&ViewportSprite::set_offset);
ClassDB::bind_method(_MD("get_offset"),&ViewportSprite::get_offset);
ClassDB::bind_method(D_METHOD("set_offset","offset"),&ViewportSprite::set_offset);
ClassDB::bind_method(D_METHOD("get_offset"),&ViewportSprite::get_offset);
ClassDB::bind_method(_MD("set_modulate","modulate"),&ViewportSprite::set_modulate);
ClassDB::bind_method(_MD("get_modulate"),&ViewportSprite::get_modulate);
ClassDB::bind_method(D_METHOD("set_modulate","modulate"),&ViewportSprite::set_modulate);
ClassDB::bind_method(D_METHOD("get_modulate"),&ViewportSprite::get_modulate);
ADD_PROPERTYNZ( PropertyInfo( Variant::NODE_PATH, "viewport"), "set_viewport_path","get_viewport_path");
ADD_PROPERTYNO( PropertyInfo( Variant::BOOL, "centered"), "set_centered","is_centered");

View file

@ -1189,78 +1189,78 @@ void TileMap::set_light_mask(int p_light_mask) {
void TileMap::_bind_methods() {
ClassDB::bind_method(_MD("set_tileset","tileset:TileSet"),&TileMap::set_tileset);
ClassDB::bind_method(_MD("get_tileset:TileSet"),&TileMap::get_tileset);
ClassDB::bind_method(D_METHOD("set_tileset","tileset:TileSet"),&TileMap::set_tileset);
ClassDB::bind_method(D_METHOD("get_tileset:TileSet"),&TileMap::get_tileset);
ClassDB::bind_method(_MD("set_mode","mode"),&TileMap::set_mode);
ClassDB::bind_method(_MD("get_mode"),&TileMap::get_mode);
ClassDB::bind_method(D_METHOD("set_mode","mode"),&TileMap::set_mode);
ClassDB::bind_method(D_METHOD("get_mode"),&TileMap::get_mode);
ClassDB::bind_method(_MD("set_half_offset","half_offset"),&TileMap::set_half_offset);
ClassDB::bind_method(_MD("get_half_offset"),&TileMap::get_half_offset);
ClassDB::bind_method(D_METHOD("set_half_offset","half_offset"),&TileMap::set_half_offset);
ClassDB::bind_method(D_METHOD("get_half_offset"),&TileMap::get_half_offset);
ClassDB::bind_method(_MD("set_custom_transform","custom_transform"),&TileMap::set_custom_transform);
ClassDB::bind_method(_MD("get_custom_transform"),&TileMap::get_custom_transform);
ClassDB::bind_method(D_METHOD("set_custom_transform","custom_transform"),&TileMap::set_custom_transform);
ClassDB::bind_method(D_METHOD("get_custom_transform"),&TileMap::get_custom_transform);
ClassDB::bind_method(_MD("set_cell_size","size"),&TileMap::set_cell_size);
ClassDB::bind_method(_MD("get_cell_size"),&TileMap::get_cell_size);
ClassDB::bind_method(D_METHOD("set_cell_size","size"),&TileMap::set_cell_size);
ClassDB::bind_method(D_METHOD("get_cell_size"),&TileMap::get_cell_size);
ClassDB::bind_method(_MD("_set_old_cell_size","size"),&TileMap::_set_old_cell_size);
ClassDB::bind_method(_MD("_get_old_cell_size"),&TileMap::_get_old_cell_size);
ClassDB::bind_method(D_METHOD("_set_old_cell_size","size"),&TileMap::_set_old_cell_size);
ClassDB::bind_method(D_METHOD("_get_old_cell_size"),&TileMap::_get_old_cell_size);
ClassDB::bind_method(_MD("set_quadrant_size","size"),&TileMap::set_quadrant_size);
ClassDB::bind_method(_MD("get_quadrant_size"),&TileMap::get_quadrant_size);
ClassDB::bind_method(D_METHOD("set_quadrant_size","size"),&TileMap::set_quadrant_size);
ClassDB::bind_method(D_METHOD("get_quadrant_size"),&TileMap::get_quadrant_size);
ClassDB::bind_method(_MD("set_tile_origin","origin"),&TileMap::set_tile_origin);
ClassDB::bind_method(_MD("get_tile_origin"),&TileMap::get_tile_origin);
ClassDB::bind_method(D_METHOD("set_tile_origin","origin"),&TileMap::set_tile_origin);
ClassDB::bind_method(D_METHOD("get_tile_origin"),&TileMap::get_tile_origin);
ClassDB::bind_method(_MD("set_center_x","enable"),&TileMap::set_center_x);
ClassDB::bind_method(_MD("get_center_x"),&TileMap::get_center_x);
ClassDB::bind_method(D_METHOD("set_center_x","enable"),&TileMap::set_center_x);
ClassDB::bind_method(D_METHOD("get_center_x"),&TileMap::get_center_x);
ClassDB::bind_method(_MD("set_center_y","enable"),&TileMap::set_center_y);
ClassDB::bind_method(_MD("get_center_y"),&TileMap::get_center_y);
ClassDB::bind_method(D_METHOD("set_center_y","enable"),&TileMap::set_center_y);
ClassDB::bind_method(D_METHOD("get_center_y"),&TileMap::get_center_y);
ClassDB::bind_method(_MD("set_y_sort_mode","enable"),&TileMap::set_y_sort_mode);
ClassDB::bind_method(_MD("is_y_sort_mode_enabled"),&TileMap::is_y_sort_mode_enabled);
ClassDB::bind_method(D_METHOD("set_y_sort_mode","enable"),&TileMap::set_y_sort_mode);
ClassDB::bind_method(D_METHOD("is_y_sort_mode_enabled"),&TileMap::is_y_sort_mode_enabled);
ClassDB::bind_method(_MD("set_collision_use_kinematic","use_kinematic"),&TileMap::set_collision_use_kinematic);
ClassDB::bind_method(_MD("get_collision_use_kinematic"),&TileMap::get_collision_use_kinematic);
ClassDB::bind_method(D_METHOD("set_collision_use_kinematic","use_kinematic"),&TileMap::set_collision_use_kinematic);
ClassDB::bind_method(D_METHOD("get_collision_use_kinematic"),&TileMap::get_collision_use_kinematic);
ClassDB::bind_method(_MD("set_collision_layer","mask"),&TileMap::set_collision_layer);
ClassDB::bind_method(_MD("get_collision_layer"),&TileMap::get_collision_layer);
ClassDB::bind_method(D_METHOD("set_collision_layer","mask"),&TileMap::set_collision_layer);
ClassDB::bind_method(D_METHOD("get_collision_layer"),&TileMap::get_collision_layer);
ClassDB::bind_method(_MD("set_collision_mask","mask"),&TileMap::set_collision_mask);
ClassDB::bind_method(_MD("get_collision_mask"),&TileMap::get_collision_mask);
ClassDB::bind_method(D_METHOD("set_collision_mask","mask"),&TileMap::set_collision_mask);
ClassDB::bind_method(D_METHOD("get_collision_mask"),&TileMap::get_collision_mask);
ClassDB::bind_method(_MD("set_collision_friction","value"),&TileMap::set_collision_friction);
ClassDB::bind_method(_MD("get_collision_friction"),&TileMap::get_collision_friction);
ClassDB::bind_method(D_METHOD("set_collision_friction","value"),&TileMap::set_collision_friction);
ClassDB::bind_method(D_METHOD("get_collision_friction"),&TileMap::get_collision_friction);
ClassDB::bind_method(_MD("set_collision_bounce","value"),&TileMap::set_collision_bounce);
ClassDB::bind_method(_MD("get_collision_bounce"),&TileMap::get_collision_bounce);
ClassDB::bind_method(D_METHOD("set_collision_bounce","value"),&TileMap::set_collision_bounce);
ClassDB::bind_method(D_METHOD("get_collision_bounce"),&TileMap::get_collision_bounce);
ClassDB::bind_method(_MD("set_occluder_light_mask","mask"),&TileMap::set_occluder_light_mask);
ClassDB::bind_method(_MD("get_occluder_light_mask"),&TileMap::get_occluder_light_mask);
ClassDB::bind_method(D_METHOD("set_occluder_light_mask","mask"),&TileMap::set_occluder_light_mask);
ClassDB::bind_method(D_METHOD("get_occluder_light_mask"),&TileMap::get_occluder_light_mask);
ClassDB::bind_method(_MD("set_cell","x","y","tile","flip_x","flip_y","transpose"),&TileMap::set_cell,DEFVAL(false),DEFVAL(false),DEFVAL(false));
ClassDB::bind_method(_MD("set_cellv","pos","tile","flip_x","flip_y","transpose"),&TileMap::set_cellv,DEFVAL(false),DEFVAL(false),DEFVAL(false));
ClassDB::bind_method(_MD("get_cell","x","y"),&TileMap::get_cell);
ClassDB::bind_method(_MD("get_cellv","pos"),&TileMap::get_cellv);
ClassDB::bind_method(_MD("is_cell_x_flipped","x","y"),&TileMap::is_cell_x_flipped);
ClassDB::bind_method(_MD("is_cell_y_flipped","x","y"),&TileMap::is_cell_y_flipped);
ClassDB::bind_method(_MD("is_cell_transposed","x","y"),&TileMap::is_cell_transposed);
ClassDB::bind_method(D_METHOD("set_cell","x","y","tile","flip_x","flip_y","transpose"),&TileMap::set_cell,DEFVAL(false),DEFVAL(false),DEFVAL(false));
ClassDB::bind_method(D_METHOD("set_cellv","pos","tile","flip_x","flip_y","transpose"),&TileMap::set_cellv,DEFVAL(false),DEFVAL(false),DEFVAL(false));
ClassDB::bind_method(D_METHOD("get_cell","x","y"),&TileMap::get_cell);
ClassDB::bind_method(D_METHOD("get_cellv","pos"),&TileMap::get_cellv);
ClassDB::bind_method(D_METHOD("is_cell_x_flipped","x","y"),&TileMap::is_cell_x_flipped);
ClassDB::bind_method(D_METHOD("is_cell_y_flipped","x","y"),&TileMap::is_cell_y_flipped);
ClassDB::bind_method(D_METHOD("is_cell_transposed","x","y"),&TileMap::is_cell_transposed);
ClassDB::bind_method(_MD("clear"),&TileMap::clear);
ClassDB::bind_method(D_METHOD("clear"),&TileMap::clear);
ClassDB::bind_method(_MD("get_used_cells"),&TileMap::get_used_cells);
ClassDB::bind_method(D_METHOD("get_used_cells"),&TileMap::get_used_cells);
ClassDB::bind_method(_MD("map_to_world","mappos","ignore_half_ofs"),&TileMap::map_to_world,DEFVAL(false));
ClassDB::bind_method(_MD("world_to_map","worldpos"),&TileMap::world_to_map);
ClassDB::bind_method(D_METHOD("map_to_world","mappos","ignore_half_ofs"),&TileMap::map_to_world,DEFVAL(false));
ClassDB::bind_method(D_METHOD("world_to_map","worldpos"),&TileMap::world_to_map);
ClassDB::bind_method(_MD("_clear_quadrants"),&TileMap::_clear_quadrants);
ClassDB::bind_method(_MD("_recreate_quadrants"),&TileMap::_recreate_quadrants);
ClassDB::bind_method(_MD("_update_dirty_quadrants"),&TileMap::_update_dirty_quadrants);
ClassDB::bind_method(D_METHOD("_clear_quadrants"),&TileMap::_clear_quadrants);
ClassDB::bind_method(D_METHOD("_recreate_quadrants"),&TileMap::_recreate_quadrants);
ClassDB::bind_method(D_METHOD("_update_dirty_quadrants"),&TileMap::_update_dirty_quadrants);
ClassDB::bind_method(_MD("_set_tile_data"),&TileMap::_set_tile_data);
ClassDB::bind_method(_MD("_get_tile_data"),&TileMap::_get_tile_data);
ClassDB::bind_method(D_METHOD("_set_tile_data"),&TileMap::_set_tile_data);
ClassDB::bind_method(D_METHOD("_get_tile_data"),&TileMap::_get_tile_data);
ADD_PROPERTY( PropertyInfo(Variant::INT,"mode",PROPERTY_HINT_ENUM,"Square,Isometric,Custom"),"set_mode","get_mode");
ADD_PROPERTY( PropertyInfo(Variant::OBJECT,"tile_set",PROPERTY_HINT_RESOURCE_TYPE,"TileSet"),"set_tileset","get_tileset");

View file

@ -129,9 +129,9 @@ bool VisibilityNotifier2D::is_on_screen() const {
void VisibilityNotifier2D::_bind_methods(){
ClassDB::bind_method(_MD("set_rect","rect"),&VisibilityNotifier2D::set_rect);
ClassDB::bind_method(_MD("get_rect"),&VisibilityNotifier2D::get_rect);
ClassDB::bind_method(_MD("is_on_screen"),&VisibilityNotifier2D::is_on_screen);
ClassDB::bind_method(D_METHOD("set_rect","rect"),&VisibilityNotifier2D::set_rect);
ClassDB::bind_method(D_METHOD("get_rect"),&VisibilityNotifier2D::get_rect);
ClassDB::bind_method(D_METHOD("is_on_screen"),&VisibilityNotifier2D::is_on_screen);
ADD_PROPERTY( PropertyInfo(Variant::RECT2,"rect"),"set_rect","get_rect");
@ -355,9 +355,9 @@ String VisibilityEnabler2D::get_configuration_warning() const {
void VisibilityEnabler2D::_bind_methods(){
ClassDB::bind_method(_MD("set_enabler","enabler","enabled"),&VisibilityEnabler2D::set_enabler);
ClassDB::bind_method(_MD("is_enabler_enabled","enabler"),&VisibilityEnabler2D::is_enabler_enabled);
ClassDB::bind_method(_MD("_node_removed"),&VisibilityEnabler2D::_node_removed);
ClassDB::bind_method(D_METHOD("set_enabler","enabler","enabled"),&VisibilityEnabler2D::set_enabler);
ClassDB::bind_method(D_METHOD("is_enabler_enabled","enabler"),&VisibilityEnabler2D::is_enabler_enabled);
ClassDB::bind_method(D_METHOD("_node_removed"),&VisibilityEnabler2D::_node_removed);
ADD_PROPERTYI( PropertyInfo(Variant::BOOL,"pause_animations"),"set_enabler","is_enabler_enabled", ENABLER_PAUSE_ANIMATIONS );
ADD_PROPERTYI( PropertyInfo(Variant::BOOL,"freeze_bodies"),"set_enabler","is_enabler_enabled", ENABLER_FREEZE_BODIES);

View file

@ -43,8 +43,8 @@ bool YSort::is_sort_enabled() const {
void YSort::_bind_methods() {
ClassDB::bind_method(_MD("set_sort_enabled","enabled"),&YSort::set_sort_enabled);
ClassDB::bind_method(_MD("is_sort_enabled"),&YSort::is_sort_enabled);
ClassDB::bind_method(D_METHOD("set_sort_enabled","enabled"),&YSort::set_sort_enabled);
ClassDB::bind_method(D_METHOD("is_sort_enabled"),&YSort::is_sort_enabled);
ADD_GROUP("Sort","sort_");
ADD_PROPERTY(PropertyInfo(Variant::BOOL,"sort_enabled"),"set_sort_enabled","is_sort_enabled");

View file

@ -576,63 +576,63 @@ bool Area::get_layer_mask_bit(int p_bit) const{
void Area::_bind_methods() {
ClassDB::bind_method(_MD("_body_enter_tree","id"),&Area::_body_enter_tree);
ClassDB::bind_method(_MD("_body_exit_tree","id"),&Area::_body_exit_tree);
ClassDB::bind_method(D_METHOD("_body_enter_tree","id"),&Area::_body_enter_tree);
ClassDB::bind_method(D_METHOD("_body_exit_tree","id"),&Area::_body_exit_tree);
ClassDB::bind_method(_MD("_area_enter_tree","id"),&Area::_area_enter_tree);
ClassDB::bind_method(_MD("_area_exit_tree","id"),&Area::_area_exit_tree);
ClassDB::bind_method(D_METHOD("_area_enter_tree","id"),&Area::_area_enter_tree);
ClassDB::bind_method(D_METHOD("_area_exit_tree","id"),&Area::_area_exit_tree);
ClassDB::bind_method(_MD("set_space_override_mode","enable"),&Area::set_space_override_mode);
ClassDB::bind_method(_MD("get_space_override_mode"),&Area::get_space_override_mode);
ClassDB::bind_method(D_METHOD("set_space_override_mode","enable"),&Area::set_space_override_mode);
ClassDB::bind_method(D_METHOD("get_space_override_mode"),&Area::get_space_override_mode);
ClassDB::bind_method(_MD("set_gravity_is_point","enable"),&Area::set_gravity_is_point);
ClassDB::bind_method(_MD("is_gravity_a_point"),&Area::is_gravity_a_point);
ClassDB::bind_method(D_METHOD("set_gravity_is_point","enable"),&Area::set_gravity_is_point);
ClassDB::bind_method(D_METHOD("is_gravity_a_point"),&Area::is_gravity_a_point);
ClassDB::bind_method(_MD("set_gravity_distance_scale","distance_scale"),&Area::set_gravity_distance_scale);
ClassDB::bind_method(_MD("get_gravity_distance_scale"),&Area::get_gravity_distance_scale);
ClassDB::bind_method(D_METHOD("set_gravity_distance_scale","distance_scale"),&Area::set_gravity_distance_scale);
ClassDB::bind_method(D_METHOD("get_gravity_distance_scale"),&Area::get_gravity_distance_scale);
ClassDB::bind_method(_MD("set_gravity_vector","vector"),&Area::set_gravity_vector);
ClassDB::bind_method(_MD("get_gravity_vector"),&Area::get_gravity_vector);
ClassDB::bind_method(D_METHOD("set_gravity_vector","vector"),&Area::set_gravity_vector);
ClassDB::bind_method(D_METHOD("get_gravity_vector"),&Area::get_gravity_vector);
ClassDB::bind_method(_MD("set_gravity","gravity"),&Area::set_gravity);
ClassDB::bind_method(_MD("get_gravity"),&Area::get_gravity);
ClassDB::bind_method(D_METHOD("set_gravity","gravity"),&Area::set_gravity);
ClassDB::bind_method(D_METHOD("get_gravity"),&Area::get_gravity);
ClassDB::bind_method(_MD("set_angular_damp","angular_damp"),&Area::set_angular_damp);
ClassDB::bind_method(_MD("get_angular_damp"),&Area::get_angular_damp);
ClassDB::bind_method(D_METHOD("set_angular_damp","angular_damp"),&Area::set_angular_damp);
ClassDB::bind_method(D_METHOD("get_angular_damp"),&Area::get_angular_damp);
ClassDB::bind_method(_MD("set_linear_damp","linear_damp"),&Area::set_linear_damp);
ClassDB::bind_method(_MD("get_linear_damp"),&Area::get_linear_damp);
ClassDB::bind_method(D_METHOD("set_linear_damp","linear_damp"),&Area::set_linear_damp);
ClassDB::bind_method(D_METHOD("get_linear_damp"),&Area::get_linear_damp);
ClassDB::bind_method(_MD("set_priority","priority"),&Area::set_priority);
ClassDB::bind_method(_MD("get_priority"),&Area::get_priority);
ClassDB::bind_method(D_METHOD("set_priority","priority"),&Area::set_priority);
ClassDB::bind_method(D_METHOD("get_priority"),&Area::get_priority);
ClassDB::bind_method(_MD("set_collision_mask","collision_mask"),&Area::set_collision_mask);
ClassDB::bind_method(_MD("get_collision_mask"),&Area::get_collision_mask);
ClassDB::bind_method(D_METHOD("set_collision_mask","collision_mask"),&Area::set_collision_mask);
ClassDB::bind_method(D_METHOD("get_collision_mask"),&Area::get_collision_mask);
ClassDB::bind_method(_MD("set_layer_mask","layer_mask"),&Area::set_layer_mask);
ClassDB::bind_method(_MD("get_layer_mask"),&Area::get_layer_mask);
ClassDB::bind_method(D_METHOD("set_layer_mask","layer_mask"),&Area::set_layer_mask);
ClassDB::bind_method(D_METHOD("get_layer_mask"),&Area::get_layer_mask);
ClassDB::bind_method(_MD("set_collision_mask_bit","bit","value"),&Area::set_collision_mask_bit);
ClassDB::bind_method(_MD("get_collision_mask_bit","bit"),&Area::get_collision_mask_bit);
ClassDB::bind_method(D_METHOD("set_collision_mask_bit","bit","value"),&Area::set_collision_mask_bit);
ClassDB::bind_method(D_METHOD("get_collision_mask_bit","bit"),&Area::get_collision_mask_bit);
ClassDB::bind_method(_MD("set_layer_mask_bit","bit","value"),&Area::set_layer_mask_bit);
ClassDB::bind_method(_MD("get_layer_mask_bit","bit"),&Area::get_layer_mask_bit);
ClassDB::bind_method(D_METHOD("set_layer_mask_bit","bit","value"),&Area::set_layer_mask_bit);
ClassDB::bind_method(D_METHOD("get_layer_mask_bit","bit"),&Area::get_layer_mask_bit);
ClassDB::bind_method(_MD("set_monitorable","enable"),&Area::set_monitorable);
ClassDB::bind_method(_MD("is_monitorable"),&Area::is_monitorable);
ClassDB::bind_method(D_METHOD("set_monitorable","enable"),&Area::set_monitorable);
ClassDB::bind_method(D_METHOD("is_monitorable"),&Area::is_monitorable);
ClassDB::bind_method(_MD("set_monitoring","enable"),&Area::set_monitoring);
ClassDB::bind_method(_MD("is_monitoring"),&Area::is_monitoring);
ClassDB::bind_method(D_METHOD("set_monitoring","enable"),&Area::set_monitoring);
ClassDB::bind_method(D_METHOD("is_monitoring"),&Area::is_monitoring);
ClassDB::bind_method(_MD("get_overlapping_bodies"),&Area::get_overlapping_bodies);
ClassDB::bind_method(_MD("get_overlapping_areas"),&Area::get_overlapping_areas);
ClassDB::bind_method(D_METHOD("get_overlapping_bodies"),&Area::get_overlapping_bodies);
ClassDB::bind_method(D_METHOD("get_overlapping_areas"),&Area::get_overlapping_areas);
ClassDB::bind_method(_MD("overlaps_body","body"),&Area::overlaps_body);
ClassDB::bind_method(_MD("overlaps_area","area"),&Area::overlaps_area);
ClassDB::bind_method(D_METHOD("overlaps_body","body"),&Area::overlaps_body);
ClassDB::bind_method(D_METHOD("overlaps_area","area"),&Area::overlaps_area);
ClassDB::bind_method(_MD("_body_inout"),&Area::_body_inout);
ClassDB::bind_method(_MD("_area_inout"),&Area::_area_inout);
ClassDB::bind_method(D_METHOD("_body_inout"),&Area::_body_inout);
ClassDB::bind_method(D_METHOD("_area_inout"),&Area::_area_inout);
ADD_SIGNAL( MethodInfo("body_shape_entered",PropertyInfo(Variant::INT,"body_id"),PropertyInfo(Variant::OBJECT,"body"),PropertyInfo(Variant::INT,"body_shape"),PropertyInfo(Variant::INT,"area_shape")));

View file

@ -1718,23 +1718,23 @@ void BakedLight::_debug_mesh_light() {
void BakedLight::_bind_methods() {
ClassDB::bind_method(_MD("set_cell_subdiv","steps"),&BakedLight::set_cell_subdiv);
ClassDB::bind_method(_MD("get_cell_subdiv"),&BakedLight::get_cell_subdiv);
ClassDB::bind_method(D_METHOD("set_cell_subdiv","steps"),&BakedLight::set_cell_subdiv);
ClassDB::bind_method(D_METHOD("get_cell_subdiv"),&BakedLight::get_cell_subdiv);
ClassDB::bind_method(_MD("bake"),&BakedLight::bake);
ClassDB::bind_method(D_METHOD("bake"),&BakedLight::bake);
ClassDB::set_method_flags(get_class_static(),_scs_create("bake"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR);
ClassDB::bind_method(_MD("bake_lights"),&BakedLight::bake_lights);
ClassDB::bind_method(D_METHOD("bake_lights"),&BakedLight::bake_lights);
ClassDB::set_method_flags(get_class_static(),_scs_create("bake_lights"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR);
ClassDB::bind_method(_MD("bake_radiance"),&BakedLight::bake_radiance);
ClassDB::bind_method(D_METHOD("bake_radiance"),&BakedLight::bake_radiance);
ClassDB::set_method_flags(get_class_static(),_scs_create("bake_radiance"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR);
ClassDB::bind_method(_MD("debug_mesh_albedo"),&BakedLight::_debug_mesh_albedo);
ClassDB::bind_method(D_METHOD("debug_mesh_albedo"),&BakedLight::_debug_mesh_albedo);
ClassDB::set_method_flags(get_class_static(),_scs_create("debug_mesh_albedo"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR);
ClassDB::bind_method(_MD("debug_mesh_light"),&BakedLight::_debug_mesh_light);
ClassDB::bind_method(D_METHOD("debug_mesh_light"),&BakedLight::_debug_mesh_light);
ClassDB::set_method_flags(get_class_static(),_scs_create("debug_mesh_light"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR);
ADD_PROPERTY(PropertyInfo(Variant::INT,"cell_subdiv"),"set_cell_subdiv","get_cell_subdiv");
@ -1797,11 +1797,11 @@ DVector<Face3> BakedLightSampler::get_faces(uint32_t p_usage_flags) const {
void BakedLightSampler::_bind_methods() {
ClassDB::bind_method(_MD("set_param","param","value"),&BakedLightSampler::set_param);
ClassDB::bind_method(_MD("get_param","param"),&BakedLightSampler::get_param);
ClassDB::bind_method(D_METHOD("set_param","param","value"),&BakedLightSampler::set_param);
ClassDB::bind_method(D_METHOD("get_param","param"),&BakedLightSampler::get_param);
ClassDB::bind_method(_MD("set_resolution","resolution"),&BakedLightSampler::set_resolution);
ClassDB::bind_method(_MD("get_resolution"),&BakedLightSampler::get_resolution);
ClassDB::bind_method(D_METHOD("set_resolution","resolution"),&BakedLightSampler::set_resolution);
ClassDB::bind_method(D_METHOD("get_resolution"),&BakedLightSampler::get_resolution);
BIND_CONSTANT( PARAM_RADIUS );

View file

@ -414,18 +414,18 @@ String CollisionShape::get_configuration_warning() const {
void CollisionShape::_bind_methods() {
//not sure if this should do anything
ClassDB::bind_method(_MD("resource_changed","resource"),&CollisionShape::resource_changed);
ClassDB::bind_method(_MD("set_shape","shape"),&CollisionShape::set_shape);
ClassDB::bind_method(_MD("get_shape"),&CollisionShape::get_shape);
ClassDB::bind_method(_MD("_add_to_collision_object"),&CollisionShape::_add_to_collision_object);
ClassDB::bind_method(_MD("set_trigger","enable"),&CollisionShape::set_trigger);
ClassDB::bind_method(_MD("is_trigger"),&CollisionShape::is_trigger);
ClassDB::bind_method(_MD("make_convex_from_brothers"),&CollisionShape::make_convex_from_brothers);
ClassDB::bind_method(D_METHOD("resource_changed","resource"),&CollisionShape::resource_changed);
ClassDB::bind_method(D_METHOD("set_shape","shape"),&CollisionShape::set_shape);
ClassDB::bind_method(D_METHOD("get_shape"),&CollisionShape::get_shape);
ClassDB::bind_method(D_METHOD("_add_to_collision_object"),&CollisionShape::_add_to_collision_object);
ClassDB::bind_method(D_METHOD("set_trigger","enable"),&CollisionShape::set_trigger);
ClassDB::bind_method(D_METHOD("is_trigger"),&CollisionShape::is_trigger);
ClassDB::bind_method(D_METHOD("make_convex_from_brothers"),&CollisionShape::make_convex_from_brothers);
ClassDB::set_method_flags("CollisionShape","make_convex_from_brothers",METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR);
ClassDB::bind_method(_MD("_set_update_shape_index","index"),&CollisionShape::_set_update_shape_index);
ClassDB::bind_method(_MD("_get_update_shape_index"),&CollisionShape::_get_update_shape_index);
ClassDB::bind_method(D_METHOD("_set_update_shape_index","index"),&CollisionShape::_set_update_shape_index);
ClassDB::bind_method(D_METHOD("_get_update_shape_index"),&CollisionShape::_get_update_shape_index);
ClassDB::bind_method(_MD("get_collision_object_shape_index"),&CollisionShape::get_collision_object_shape_index);
ClassDB::bind_method(D_METHOD("get_collision_object_shape_index"),&CollisionShape::get_collision_object_shape_index);
ADD_PROPERTY( PropertyInfo( Variant::OBJECT, "shape", PROPERTY_HINT_RESOURCE_TYPE, "Shape"), "set_shape", "get_shape");
ADD_PROPERTY(PropertyInfo(Variant::BOOL,"trigger"),"set_trigger","is_trigger");

View file

@ -139,6 +139,6 @@ BoneAttachment::BoneAttachment()
}
void BoneAttachment::_bind_methods(){
ClassDB::bind_method(_MD("set_bone_name","bone_name"),&BoneAttachment::set_bone_name);
ClassDB::bind_method(_MD("get_bone_name"),&BoneAttachment::get_bone_name);
ClassDB::bind_method(D_METHOD("set_bone_name","bone_name"),&BoneAttachment::set_bone_name);
ClassDB::bind_method(D_METHOD("get_bone_name"),&BoneAttachment::get_bone_name);
}

View file

@ -548,34 +548,34 @@ Camera::KeepAspect Camera::get_keep_aspect_mode() const{
void Camera::_bind_methods() {
ClassDB::bind_method( _MD("project_ray_normal","screen_point"), &Camera::project_ray_normal);
ClassDB::bind_method( _MD("project_local_ray_normal","screen_point"), &Camera::project_local_ray_normal);
ClassDB::bind_method( _MD("project_ray_origin","screen_point"), &Camera::project_ray_origin);
ClassDB::bind_method( _MD("unproject_position","world_point"), &Camera::unproject_position);
ClassDB::bind_method( _MD("is_position_behind","world_point"), &Camera::is_position_behind);
ClassDB::bind_method( _MD("project_position","screen_point"), &Camera::project_position);
ClassDB::bind_method( _MD("set_perspective","fov","z_near","z_far"),&Camera::set_perspective );
ClassDB::bind_method( _MD("set_orthogonal","size","z_near","z_far"),&Camera::set_orthogonal );
ClassDB::bind_method( _MD("make_current"),&Camera::make_current );
ClassDB::bind_method( _MD("clear_current"),&Camera::clear_current );
ClassDB::bind_method( _MD("is_current"),&Camera::is_current );
ClassDB::bind_method( _MD("get_camera_transform"),&Camera::get_camera_transform );
ClassDB::bind_method( _MD("get_fov"),&Camera::get_fov );
ClassDB::bind_method( _MD("get_size"),&Camera::get_size );
ClassDB::bind_method( _MD("get_zfar"),&Camera::get_zfar );
ClassDB::bind_method( _MD("get_znear"),&Camera::get_znear );
ClassDB::bind_method( _MD("get_projection"),&Camera::get_projection );
ClassDB::bind_method( _MD("set_h_offset","ofs"),&Camera::set_h_offset );
ClassDB::bind_method( _MD("get_h_offset"),&Camera::get_h_offset );
ClassDB::bind_method( _MD("set_v_offset","ofs"),&Camera::set_v_offset );
ClassDB::bind_method( _MD("get_v_offset"),&Camera::get_v_offset );
ClassDB::bind_method( _MD("set_cull_mask","mask"),&Camera::set_cull_mask );
ClassDB::bind_method( _MD("get_cull_mask"),&Camera::get_cull_mask );
ClassDB::bind_method( _MD("set_environment","env:Environment"),&Camera::set_environment );
ClassDB::bind_method( _MD("get_environment:Environment"),&Camera::get_environment );
ClassDB::bind_method( _MD("set_keep_aspect_mode","mode"),&Camera::set_keep_aspect_mode );
ClassDB::bind_method( _MD("get_keep_aspect_mode"),&Camera::get_keep_aspect_mode );
//ClassDB::bind_method( _MD("_camera_make_current"),&Camera::_camera_make_current );
ClassDB::bind_method(D_METHOD("project_ray_normal","screen_point"), &Camera::project_ray_normal);
ClassDB::bind_method(D_METHOD("project_local_ray_normal","screen_point"), &Camera::project_local_ray_normal);
ClassDB::bind_method(D_METHOD("project_ray_origin","screen_point"), &Camera::project_ray_origin);
ClassDB::bind_method(D_METHOD("unproject_position","world_point"), &Camera::unproject_position);
ClassDB::bind_method(D_METHOD("is_position_behind","world_point"), &Camera::is_position_behind);
ClassDB::bind_method(D_METHOD("project_position","screen_point"), &Camera::project_position);
ClassDB::bind_method(D_METHOD("set_perspective","fov","z_near","z_far"),&Camera::set_perspective );
ClassDB::bind_method(D_METHOD("set_orthogonal","size","z_near","z_far"),&Camera::set_orthogonal );
ClassDB::bind_method(D_METHOD("make_current"),&Camera::make_current );
ClassDB::bind_method(D_METHOD("clear_current"),&Camera::clear_current );
ClassDB::bind_method(D_METHOD("is_current"),&Camera::is_current );
ClassDB::bind_method(D_METHOD("get_camera_transform"),&Camera::get_camera_transform );
ClassDB::bind_method(D_METHOD("get_fov"),&Camera::get_fov );
ClassDB::bind_method(D_METHOD("get_size"),&Camera::get_size );
ClassDB::bind_method(D_METHOD("get_zfar"),&Camera::get_zfar );
ClassDB::bind_method(D_METHOD("get_znear"),&Camera::get_znear );
ClassDB::bind_method(D_METHOD("get_projection"),&Camera::get_projection );
ClassDB::bind_method(D_METHOD("set_h_offset","ofs"),&Camera::set_h_offset );
ClassDB::bind_method(D_METHOD("get_h_offset"),&Camera::get_h_offset );
ClassDB::bind_method(D_METHOD("set_v_offset","ofs"),&Camera::set_v_offset );
ClassDB::bind_method(D_METHOD("get_v_offset"),&Camera::get_v_offset );
ClassDB::bind_method(D_METHOD("set_cull_mask","mask"),&Camera::set_cull_mask );
ClassDB::bind_method(D_METHOD("get_cull_mask"),&Camera::get_cull_mask );
ClassDB::bind_method(D_METHOD("set_environment","env:Environment"),&Camera::set_environment );
ClassDB::bind_method(D_METHOD("get_environment:Environment"),&Camera::get_environment );
ClassDB::bind_method(D_METHOD("set_keep_aspect_mode","mode"),&Camera::set_keep_aspect_mode );
ClassDB::bind_method(D_METHOD("get_keep_aspect_mode"),&Camera::get_keep_aspect_mode );
//ClassDB::bind_method(D_METHOD("_camera_make_current"),&Camera::_camera_make_current );
BIND_CONSTANT( PROJECTION_PERSPECTIVE );
BIND_CONSTANT( PROJECTION_ORTHOGONAL );

View file

@ -634,30 +634,30 @@ float CharacterCamera::get_autoturn_speed() const {
void CharacterCamera::_bind_methods() {
ClassDB::bind_method(_MD("set_camera_type","type"),&CharacterCamera::set_camera_type);
ClassDB::bind_method(_MD("get_camera_type"),&CharacterCamera::get_camera_type);
ClassDB::bind_method(_MD("set_orbit","orbit"),&CharacterCamera::set_orbit);
ClassDB::bind_method(_MD("get_orbit"),&CharacterCamera::get_orbit);
ClassDB::bind_method(_MD("set_orbit_x","x"),&CharacterCamera::set_orbit_x);
ClassDB::bind_method(_MD("set_orbit_y","y"),&CharacterCamera::set_orbit_y);
ClassDB::bind_method(_MD("set_min_orbit_x","x"),&CharacterCamera::set_min_orbit_x);
ClassDB::bind_method(_MD("get_min_orbit_x"),&CharacterCamera::get_min_orbit_x);
ClassDB::bind_method(_MD("set_max_orbit_x","x"),&CharacterCamera::set_max_orbit_x);
ClassDB::bind_method(_MD("get_max_orbit_x"),&CharacterCamera::get_max_orbit_x);
ClassDB::bind_method(_MD("rotate_orbit"),&CharacterCamera::rotate_orbit);
ClassDB::bind_method(_MD("set_distance","distance"),&CharacterCamera::set_distance);
ClassDB::bind_method(_MD("get_distance"),&CharacterCamera::get_distance);
ClassDB::bind_method(_MD("set_clip","enable"),&CharacterCamera::set_clip);
ClassDB::bind_method(_MD("has_clip"),&CharacterCamera::has_clip);
ClassDB::bind_method(_MD("set_autoturn","enable"),&CharacterCamera::set_autoturn);
ClassDB::bind_method(_MD("has_autoturn"),&CharacterCamera::has_autoturn);
ClassDB::bind_method(_MD("set_autoturn_tolerance","degrees"),&CharacterCamera::set_autoturn_tolerance);
ClassDB::bind_method(_MD("get_autoturn_tolerance"),&CharacterCamera::get_autoturn_tolerance);
ClassDB::bind_method(_MD("set_autoturn_speed","speed"),&CharacterCamera::set_autoturn_speed);
ClassDB::bind_method(_MD("get_autoturn_speed"),&CharacterCamera::get_autoturn_speed);
ClassDB::bind_method(_MD("set_use_lookat_target","use","lookat"),&CharacterCamera::set_use_lookat_target, DEFVAL(Vector3()));
ClassDB::bind_method(D_METHOD("set_camera_type","type"),&CharacterCamera::set_camera_type);
ClassDB::bind_method(D_METHOD("get_camera_type"),&CharacterCamera::get_camera_type);
ClassDB::bind_method(D_METHOD("set_orbit","orbit"),&CharacterCamera::set_orbit);
ClassDB::bind_method(D_METHOD("get_orbit"),&CharacterCamera::get_orbit);
ClassDB::bind_method(D_METHOD("set_orbit_x","x"),&CharacterCamera::set_orbit_x);
ClassDB::bind_method(D_METHOD("set_orbit_y","y"),&CharacterCamera::set_orbit_y);
ClassDB::bind_method(D_METHOD("set_min_orbit_x","x"),&CharacterCamera::set_min_orbit_x);
ClassDB::bind_method(D_METHOD("get_min_orbit_x"),&CharacterCamera::get_min_orbit_x);
ClassDB::bind_method(D_METHOD("set_max_orbit_x","x"),&CharacterCamera::set_max_orbit_x);
ClassDB::bind_method(D_METHOD("get_max_orbit_x"),&CharacterCamera::get_max_orbit_x);
ClassDB::bind_method(D_METHOD("rotate_orbit"),&CharacterCamera::rotate_orbit);
ClassDB::bind_method(D_METHOD("set_distance","distance"),&CharacterCamera::set_distance);
ClassDB::bind_method(D_METHOD("get_distance"),&CharacterCamera::get_distance);
ClassDB::bind_method(D_METHOD("set_clip","enable"),&CharacterCamera::set_clip);
ClassDB::bind_method(D_METHOD("has_clip"),&CharacterCamera::has_clip);
ClassDB::bind_method(D_METHOD("set_autoturn","enable"),&CharacterCamera::set_autoturn);
ClassDB::bind_method(D_METHOD("has_autoturn"),&CharacterCamera::has_autoturn);
ClassDB::bind_method(D_METHOD("set_autoturn_tolerance","degrees"),&CharacterCamera::set_autoturn_tolerance);
ClassDB::bind_method(D_METHOD("get_autoturn_tolerance"),&CharacterCamera::get_autoturn_tolerance);
ClassDB::bind_method(D_METHOD("set_autoturn_speed","speed"),&CharacterCamera::set_autoturn_speed);
ClassDB::bind_method(D_METHOD("get_autoturn_speed"),&CharacterCamera::get_autoturn_speed);
ClassDB::bind_method(D_METHOD("set_use_lookat_target","use","lookat"),&CharacterCamera::set_use_lookat_target, DEFVAL(Vector3()));
ClassDB::bind_method(_MD("_ray_collision"),&CharacterCamera::_ray_collision);
ClassDB::bind_method(D_METHOD("_ray_collision"),&CharacterCamera::_ray_collision);
BIND_CONSTANT( CAMERA_FIXED );
BIND_CONSTANT( CAMERA_FOLLOW );

View file

@ -228,22 +228,22 @@ bool CollisionObject::is_ray_pickable() const {
void CollisionObject::_bind_methods() {
ClassDB::bind_method(_MD("add_shape","shape:Shape","transform"),&CollisionObject::add_shape,DEFVAL(Transform()));
ClassDB::bind_method(_MD("get_shape_count"),&CollisionObject::get_shape_count);
ClassDB::bind_method(_MD("set_shape","shape_idx","shape:Shape"),&CollisionObject::set_shape);
ClassDB::bind_method(_MD("set_shape_transform","shape_idx","transform"),&CollisionObject::set_shape_transform);
// ClassDB::bind_method(_MD("set_shape_transform","shape_idx","transform"),&CollisionObject::set_shape_transform);
ClassDB::bind_method(_MD("set_shape_as_trigger","shape_idx","enable"),&CollisionObject::set_shape_as_trigger);
ClassDB::bind_method(_MD("is_shape_set_as_trigger","shape_idx"),&CollisionObject::is_shape_set_as_trigger);
ClassDB::bind_method(_MD("get_shape:Shape","shape_idx"),&CollisionObject::get_shape);
ClassDB::bind_method(_MD("get_shape_transform","shape_idx"),&CollisionObject::get_shape_transform);
ClassDB::bind_method(_MD("remove_shape","shape_idx"),&CollisionObject::remove_shape);
ClassDB::bind_method(_MD("clear_shapes"),&CollisionObject::clear_shapes);
ClassDB::bind_method(_MD("set_ray_pickable","ray_pickable"),&CollisionObject::set_ray_pickable);
ClassDB::bind_method(_MD("is_ray_pickable"),&CollisionObject::is_ray_pickable);
ClassDB::bind_method(_MD("set_capture_input_on_drag","enable"),&CollisionObject::set_capture_input_on_drag);
ClassDB::bind_method(_MD("get_capture_input_on_drag"),&CollisionObject::get_capture_input_on_drag);
ClassDB::bind_method(_MD("get_rid"),&CollisionObject::get_rid);
ClassDB::bind_method(D_METHOD("add_shape","shape:Shape","transform"),&CollisionObject::add_shape,DEFVAL(Transform()));
ClassDB::bind_method(D_METHOD("get_shape_count"),&CollisionObject::get_shape_count);
ClassDB::bind_method(D_METHOD("set_shape","shape_idx","shape:Shape"),&CollisionObject::set_shape);
ClassDB::bind_method(D_METHOD("set_shape_transform","shape_idx","transform"),&CollisionObject::set_shape_transform);
// ClassDB::bind_method(D_METHOD("set_shape_transform","shape_idx","transform"),&CollisionObject::set_shape_transform);
ClassDB::bind_method(D_METHOD("set_shape_as_trigger","shape_idx","enable"),&CollisionObject::set_shape_as_trigger);
ClassDB::bind_method(D_METHOD("is_shape_set_as_trigger","shape_idx"),&CollisionObject::is_shape_set_as_trigger);
ClassDB::bind_method(D_METHOD("get_shape:Shape","shape_idx"),&CollisionObject::get_shape);
ClassDB::bind_method(D_METHOD("get_shape_transform","shape_idx"),&CollisionObject::get_shape_transform);
ClassDB::bind_method(D_METHOD("remove_shape","shape_idx"),&CollisionObject::remove_shape);
ClassDB::bind_method(D_METHOD("clear_shapes"),&CollisionObject::clear_shapes);
ClassDB::bind_method(D_METHOD("set_ray_pickable","ray_pickable"),&CollisionObject::set_ray_pickable);
ClassDB::bind_method(D_METHOD("is_ray_pickable"),&CollisionObject::is_ray_pickable);
ClassDB::bind_method(D_METHOD("set_capture_input_on_drag","enable"),&CollisionObject::set_capture_input_on_drag);
ClassDB::bind_method(D_METHOD("get_capture_input_on_drag"),&CollisionObject::get_capture_input_on_drag);
ClassDB::bind_method(D_METHOD("get_rid"),&CollisionObject::get_rid);
BIND_VMETHOD( MethodInfo("_input_event",PropertyInfo(Variant::OBJECT,"camera"),PropertyInfo(Variant::INPUT_EVENT,"event"),PropertyInfo(Variant::VECTOR3,"click_pos"),PropertyInfo(Variant::VECTOR3,"click_normal"),PropertyInfo(Variant::INT,"shape_idx")));
ADD_SIGNAL( MethodInfo("input_event",PropertyInfo(Variant::OBJECT,"camera"),PropertyInfo(Variant::INPUT_EVENT,"event"),PropertyInfo(Variant::VECTOR3,"click_pos"),PropertyInfo(Variant::VECTOR3,"click_normal"),PropertyInfo(Variant::INT,"shape_idx")));

View file

@ -275,22 +275,22 @@ String CollisionPolygon::get_configuration_warning() const {
void CollisionPolygon::_bind_methods() {
ClassDB::bind_method(_MD("_add_to_collision_object"),&CollisionPolygon::_add_to_collision_object);
ClassDB::bind_method(D_METHOD("_add_to_collision_object"),&CollisionPolygon::_add_to_collision_object);
ClassDB::bind_method(_MD("set_build_mode","build_mode"),&CollisionPolygon::set_build_mode);
ClassDB::bind_method(_MD("get_build_mode"),&CollisionPolygon::get_build_mode);
ClassDB::bind_method(D_METHOD("set_build_mode","build_mode"),&CollisionPolygon::set_build_mode);
ClassDB::bind_method(D_METHOD("get_build_mode"),&CollisionPolygon::get_build_mode);
ClassDB::bind_method(_MD("set_depth","depth"),&CollisionPolygon::set_depth);
ClassDB::bind_method(_MD("get_depth"),&CollisionPolygon::get_depth);
ClassDB::bind_method(D_METHOD("set_depth","depth"),&CollisionPolygon::set_depth);
ClassDB::bind_method(D_METHOD("get_depth"),&CollisionPolygon::get_depth);
ClassDB::bind_method(_MD("set_polygon","polygon"),&CollisionPolygon::set_polygon);
ClassDB::bind_method(_MD("get_polygon"),&CollisionPolygon::get_polygon);
ClassDB::bind_method(D_METHOD("set_polygon","polygon"),&CollisionPolygon::set_polygon);
ClassDB::bind_method(D_METHOD("get_polygon"),&CollisionPolygon::get_polygon);
ClassDB::bind_method(_MD("_set_shape_range","shape_range"),&CollisionPolygon::_set_shape_range);
ClassDB::bind_method(_MD("_get_shape_range"),&CollisionPolygon::_get_shape_range);
ClassDB::bind_method(D_METHOD("_set_shape_range","shape_range"),&CollisionPolygon::_set_shape_range);
ClassDB::bind_method(D_METHOD("_get_shape_range"),&CollisionPolygon::_get_shape_range);
ClassDB::bind_method(_MD("get_collision_object_first_shape"),&CollisionPolygon::get_collision_object_first_shape);
ClassDB::bind_method(_MD("get_collision_object_last_shape"),&CollisionPolygon::get_collision_object_last_shape);
ClassDB::bind_method(D_METHOD("get_collision_object_first_shape"),&CollisionPolygon::get_collision_object_first_shape);
ClassDB::bind_method(D_METHOD("get_collision_object_last_shape"),&CollisionPolygon::get_collision_object_last_shape);
ADD_PROPERTY( PropertyInfo(Variant::INT,"build_mode",PROPERTY_HINT_ENUM,"Solids,Triangles"),"set_build_mode","get_build_mode");
ADD_PROPERTY( PropertyInfo(Variant::REAL,"depth"),"set_depth","get_depth");

View file

@ -115,32 +115,32 @@ RID GIProbeData::get_rid() const {
void GIProbeData::_bind_methods() {
ClassDB::bind_method(_MD("set_bounds","bounds"),&GIProbeData::set_bounds);
ClassDB::bind_method(_MD("get_bounds"),&GIProbeData::get_bounds);
ClassDB::bind_method(D_METHOD("set_bounds","bounds"),&GIProbeData::set_bounds);
ClassDB::bind_method(D_METHOD("get_bounds"),&GIProbeData::get_bounds);
ClassDB::bind_method(_MD("set_cell_size","cell_size"),&GIProbeData::set_cell_size);
ClassDB::bind_method(_MD("get_cell_size"),&GIProbeData::get_cell_size);
ClassDB::bind_method(D_METHOD("set_cell_size","cell_size"),&GIProbeData::set_cell_size);
ClassDB::bind_method(D_METHOD("get_cell_size"),&GIProbeData::get_cell_size);
ClassDB::bind_method(_MD("set_to_cell_xform","to_cell_xform"),&GIProbeData::set_to_cell_xform);
ClassDB::bind_method(_MD("get_to_cell_xform"),&GIProbeData::get_to_cell_xform);
ClassDB::bind_method(D_METHOD("set_to_cell_xform","to_cell_xform"),&GIProbeData::set_to_cell_xform);
ClassDB::bind_method(D_METHOD("get_to_cell_xform"),&GIProbeData::get_to_cell_xform);
ClassDB::bind_method(_MD("set_dynamic_data","dynamic_data"),&GIProbeData::set_dynamic_data);
ClassDB::bind_method(_MD("get_dynamic_data"),&GIProbeData::get_dynamic_data);
ClassDB::bind_method(D_METHOD("set_dynamic_data","dynamic_data"),&GIProbeData::set_dynamic_data);
ClassDB::bind_method(D_METHOD("get_dynamic_data"),&GIProbeData::get_dynamic_data);
ClassDB::bind_method(_MD("set_dynamic_range","dynamic_range"),&GIProbeData::set_dynamic_range);
ClassDB::bind_method(_MD("get_dynamic_range"),&GIProbeData::get_dynamic_range);
ClassDB::bind_method(D_METHOD("set_dynamic_range","dynamic_range"),&GIProbeData::set_dynamic_range);
ClassDB::bind_method(D_METHOD("get_dynamic_range"),&GIProbeData::get_dynamic_range);
ClassDB::bind_method(_MD("set_energy","energy"),&GIProbeData::set_energy);
ClassDB::bind_method(_MD("get_energy"),&GIProbeData::get_energy);
ClassDB::bind_method(D_METHOD("set_energy","energy"),&GIProbeData::set_energy);
ClassDB::bind_method(D_METHOD("get_energy"),&GIProbeData::get_energy);
ClassDB::bind_method(_MD("set_propagation","propagation"),&GIProbeData::set_propagation);
ClassDB::bind_method(_MD("get_propagation"),&GIProbeData::get_propagation);
ClassDB::bind_method(D_METHOD("set_propagation","propagation"),&GIProbeData::set_propagation);
ClassDB::bind_method(D_METHOD("get_propagation"),&GIProbeData::get_propagation);
ClassDB::bind_method(_MD("set_interior","interior"),&GIProbeData::set_interior);
ClassDB::bind_method(_MD("is_interior"),&GIProbeData::is_interior);
ClassDB::bind_method(D_METHOD("set_interior","interior"),&GIProbeData::set_interior);
ClassDB::bind_method(D_METHOD("is_interior"),&GIProbeData::is_interior);
ClassDB::bind_method(_MD("set_compress","compress"),&GIProbeData::set_compress);
ClassDB::bind_method(_MD("is_compressed"),&GIProbeData::is_compressed);
ClassDB::bind_method(D_METHOD("set_compress","compress"),&GIProbeData::set_compress);
ClassDB::bind_method(D_METHOD("is_compressed"),&GIProbeData::is_compressed);
ADD_PROPERTY(PropertyInfo(Variant::RECT3,"bounds",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"set_bounds","get_bounds");
ADD_PROPERTY(PropertyInfo(Variant::REAL,"cell_size",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"set_cell_size","get_cell_size");
@ -1384,32 +1384,32 @@ PoolVector<Face3> GIProbe::get_faces(uint32_t p_usage_flags) const {
void GIProbe::_bind_methods() {
ClassDB::bind_method(_MD("set_probe_data","data"),&GIProbe::set_probe_data);
ClassDB::bind_method(_MD("get_probe_data"),&GIProbe::get_probe_data);
ClassDB::bind_method(D_METHOD("set_probe_data","data"),&GIProbe::set_probe_data);
ClassDB::bind_method(D_METHOD("get_probe_data"),&GIProbe::get_probe_data);
ClassDB::bind_method(_MD("set_subdiv","subdiv"),&GIProbe::set_subdiv);
ClassDB::bind_method(_MD("get_subdiv"),&GIProbe::get_subdiv);
ClassDB::bind_method(D_METHOD("set_subdiv","subdiv"),&GIProbe::set_subdiv);
ClassDB::bind_method(D_METHOD("get_subdiv"),&GIProbe::get_subdiv);
ClassDB::bind_method(_MD("set_extents","extents"),&GIProbe::set_extents);
ClassDB::bind_method(_MD("get_extents"),&GIProbe::get_extents);
ClassDB::bind_method(D_METHOD("set_extents","extents"),&GIProbe::set_extents);
ClassDB::bind_method(D_METHOD("get_extents"),&GIProbe::get_extents);
ClassDB::bind_method(_MD("set_dynamic_range","max"),&GIProbe::set_dynamic_range);
ClassDB::bind_method(_MD("get_dynamic_range"),&GIProbe::get_dynamic_range);
ClassDB::bind_method(D_METHOD("set_dynamic_range","max"),&GIProbe::set_dynamic_range);
ClassDB::bind_method(D_METHOD("get_dynamic_range"),&GIProbe::get_dynamic_range);
ClassDB::bind_method(_MD("set_energy","max"),&GIProbe::set_energy);
ClassDB::bind_method(_MD("get_energy"),&GIProbe::get_energy);
ClassDB::bind_method(D_METHOD("set_energy","max"),&GIProbe::set_energy);
ClassDB::bind_method(D_METHOD("get_energy"),&GIProbe::get_energy);
ClassDB::bind_method(_MD("set_propagation","max"),&GIProbe::set_propagation);
ClassDB::bind_method(_MD("get_propagation"),&GIProbe::get_propagation);
ClassDB::bind_method(D_METHOD("set_propagation","max"),&GIProbe::set_propagation);
ClassDB::bind_method(D_METHOD("get_propagation"),&GIProbe::get_propagation);
ClassDB::bind_method(_MD("set_interior","enable"),&GIProbe::set_interior);
ClassDB::bind_method(_MD("is_interior"),&GIProbe::is_interior);
ClassDB::bind_method(D_METHOD("set_interior","enable"),&GIProbe::set_interior);
ClassDB::bind_method(D_METHOD("is_interior"),&GIProbe::is_interior);
ClassDB::bind_method(_MD("set_compress","enable"),&GIProbe::set_compress);
ClassDB::bind_method(_MD("is_compressed"),&GIProbe::is_compressed);
ClassDB::bind_method(D_METHOD("set_compress","enable"),&GIProbe::set_compress);
ClassDB::bind_method(D_METHOD("is_compressed"),&GIProbe::is_compressed);
ClassDB::bind_method(_MD("bake","from_node","create_visual_debug"),&GIProbe::bake,DEFVAL(Variant()),DEFVAL(false));
ClassDB::bind_method(_MD("debug_bake"),&GIProbe::_debug_bake);
ClassDB::bind_method(D_METHOD("bake","from_node","create_visual_debug"),&GIProbe::bake,DEFVAL(Variant()),DEFVAL(false));
ClassDB::bind_method(D_METHOD("debug_bake"),&GIProbe::_debug_bake);
ClassDB::set_method_flags(get_class_static(),_scs_create("debug_bake"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR);
ADD_PROPERTY( PropertyInfo(Variant::INT,"subdiv",PROPERTY_HINT_ENUM,"64,128,256,512"),"set_subdiv","get_subdiv");

View file

@ -154,16 +154,16 @@ void ImmediateGeometry::add_sphere(int p_lats, int p_lons, float p_radius, bool
void ImmediateGeometry::_bind_methods() {
ClassDB::bind_method(_MD("begin","primitive","texture:Texture"),&ImmediateGeometry::begin,DEFVAL(Ref<Texture>()));
ClassDB::bind_method(_MD("set_normal","normal"),&ImmediateGeometry::set_normal);
ClassDB::bind_method(_MD("set_tangent","tangent"),&ImmediateGeometry::set_tangent);
ClassDB::bind_method(_MD("set_color","color"),&ImmediateGeometry::set_color);
ClassDB::bind_method(_MD("set_uv","uv"),&ImmediateGeometry::set_uv);
ClassDB::bind_method(_MD("set_uv2","uv"),&ImmediateGeometry::set_uv2);
ClassDB::bind_method(_MD("add_vertex","pos"),&ImmediateGeometry::add_vertex);
ClassDB::bind_method(_MD("add_sphere","lats","lons","radius","add_uv"),&ImmediateGeometry::add_sphere,DEFVAL(true));
ClassDB::bind_method(_MD("end"),&ImmediateGeometry::end);
ClassDB::bind_method(_MD("clear"),&ImmediateGeometry::clear);
ClassDB::bind_method(D_METHOD("begin","primitive","texture:Texture"),&ImmediateGeometry::begin,DEFVAL(Ref<Texture>()));
ClassDB::bind_method(D_METHOD("set_normal","normal"),&ImmediateGeometry::set_normal);
ClassDB::bind_method(D_METHOD("set_tangent","tangent"),&ImmediateGeometry::set_tangent);
ClassDB::bind_method(D_METHOD("set_color","color"),&ImmediateGeometry::set_color);
ClassDB::bind_method(D_METHOD("set_uv","uv"),&ImmediateGeometry::set_uv);
ClassDB::bind_method(D_METHOD("set_uv2","uv"),&ImmediateGeometry::set_uv2);
ClassDB::bind_method(D_METHOD("add_vertex","pos"),&ImmediateGeometry::add_vertex);
ClassDB::bind_method(D_METHOD("add_sphere","lats","lons","radius","add_uv"),&ImmediateGeometry::add_sphere,DEFVAL(true));
ClassDB::bind_method(D_METHOD("end"),&ImmediateGeometry::end);
ClassDB::bind_method(D_METHOD("clear"),&ImmediateGeometry::clear);
}

View file

@ -134,15 +134,15 @@ real_t InterpolatedCamera::get_speed() const {
void InterpolatedCamera::_bind_methods() {
ClassDB::bind_method(_MD("set_target_path","target_path"),&InterpolatedCamera::set_target_path);
ClassDB::bind_method(_MD("get_target_path"),&InterpolatedCamera::get_target_path);
ClassDB::bind_method(_MD("set_target","target:Camera"),&InterpolatedCamera::_set_target);
ClassDB::bind_method(D_METHOD("set_target_path","target_path"),&InterpolatedCamera::set_target_path);
ClassDB::bind_method(D_METHOD("get_target_path"),&InterpolatedCamera::get_target_path);
ClassDB::bind_method(D_METHOD("set_target","target:Camera"),&InterpolatedCamera::_set_target);
ClassDB::bind_method(_MD("set_speed","speed"),&InterpolatedCamera::set_speed);
ClassDB::bind_method(_MD("get_speed"),&InterpolatedCamera::get_speed);
ClassDB::bind_method(D_METHOD("set_speed","speed"),&InterpolatedCamera::set_speed);
ClassDB::bind_method(D_METHOD("get_speed"),&InterpolatedCamera::get_speed);
ClassDB::bind_method(_MD("set_interpolation_enabled","target_path"),&InterpolatedCamera::set_interpolation_enabled);
ClassDB::bind_method(_MD("is_interpolation_enabled"),&InterpolatedCamera::is_interpolation_enabled);
ClassDB::bind_method(D_METHOD("set_interpolation_enabled","target_path"),&InterpolatedCamera::set_interpolation_enabled);
ClassDB::bind_method(D_METHOD("is_interpolation_enabled"),&InterpolatedCamera::is_interpolation_enabled);
ADD_PROPERTY( PropertyInfo(Variant::NODE_PATH,"target"), "set_target_path", "get_target_path") ;
ADD_PROPERTY( PropertyInfo(Variant::REAL,"speed"), "set_speed", "get_speed") ;

View file

@ -221,27 +221,27 @@ bool Light::is_editor_only() const{
void Light::_bind_methods() {
ClassDB::bind_method(_MD("set_editor_only","editor_only"), &Light::set_editor_only );
ClassDB::bind_method(_MD("is_editor_only"), &Light::is_editor_only );
ClassDB::bind_method(D_METHOD("set_editor_only","editor_only"), &Light::set_editor_only );
ClassDB::bind_method(D_METHOD("is_editor_only"), &Light::is_editor_only );
ClassDB::bind_method(_MD("set_param","param","value"), &Light::set_param );
ClassDB::bind_method(_MD("get_param","param"), &Light::get_param );
ClassDB::bind_method(D_METHOD("set_param","param","value"), &Light::set_param );
ClassDB::bind_method(D_METHOD("get_param","param"), &Light::get_param );
ClassDB::bind_method(_MD("set_shadow","enabled"), &Light::set_shadow );
ClassDB::bind_method(_MD("has_shadow"), &Light::has_shadow );
ClassDB::bind_method(D_METHOD("set_shadow","enabled"), &Light::set_shadow );
ClassDB::bind_method(D_METHOD("has_shadow"), &Light::has_shadow );
ClassDB::bind_method(_MD("set_negative","enabled"), &Light::set_negative );
ClassDB::bind_method(_MD("is_negative"), &Light::is_negative );
ClassDB::bind_method(D_METHOD("set_negative","enabled"), &Light::set_negative );
ClassDB::bind_method(D_METHOD("is_negative"), &Light::is_negative );
ClassDB::bind_method(_MD("set_cull_mask","cull_mask"), &Light::set_cull_mask );
ClassDB::bind_method(_MD("get_cull_mask"), &Light::get_cull_mask );
ClassDB::bind_method(D_METHOD("set_cull_mask","cull_mask"), &Light::set_cull_mask );
ClassDB::bind_method(D_METHOD("get_cull_mask"), &Light::get_cull_mask );
ClassDB::bind_method(_MD("set_color","color"), &Light::set_color );
ClassDB::bind_method(_MD("get_color"), &Light::get_color );
ClassDB::bind_method(D_METHOD("set_color","color"), &Light::set_color );
ClassDB::bind_method(D_METHOD("get_color"), &Light::get_color );
ClassDB::bind_method(_MD("set_shadow_color","shadow_color"), &Light::set_shadow_color );
ClassDB::bind_method(_MD("get_shadow_color"), &Light::get_shadow_color );
ClassDB::bind_method(D_METHOD("set_shadow_color","shadow_color"), &Light::set_shadow_color );
ClassDB::bind_method(D_METHOD("get_shadow_color"), &Light::get_shadow_color );
ADD_GROUP("Light","light_");
ADD_PROPERTY( PropertyInfo( Variant::COLOR, "light_color",PROPERTY_HINT_COLOR_NO_ALPHA), "set_color", "get_color");
@ -352,11 +352,11 @@ bool DirectionalLight::is_blend_splits_enabled() const {
void DirectionalLight::_bind_methods() {
ClassDB::bind_method( _MD("set_shadow_mode","mode"),&DirectionalLight::set_shadow_mode);
ClassDB::bind_method( _MD("get_shadow_mode"),&DirectionalLight::get_shadow_mode);
ClassDB::bind_method( D_METHOD("set_shadow_mode","mode"),&DirectionalLight::set_shadow_mode);
ClassDB::bind_method( D_METHOD("get_shadow_mode"),&DirectionalLight::get_shadow_mode);
ClassDB::bind_method( _MD("set_blend_splits","enabled"),&DirectionalLight::set_blend_splits);
ClassDB::bind_method( _MD("is_blend_splits_enabled"),&DirectionalLight::is_blend_splits_enabled);
ClassDB::bind_method( D_METHOD("set_blend_splits","enabled"),&DirectionalLight::set_blend_splits);
ClassDB::bind_method( D_METHOD("is_blend_splits_enabled"),&DirectionalLight::is_blend_splits_enabled);
ADD_GROUP("Directional Shadow","directional_shadow_");
ADD_PROPERTY( PropertyInfo( Variant::INT, "directional_shadow_mode",PROPERTY_HINT_ENUM,"Orthogonal,PSSM 2 Splits,PSSM 4 Splits"), "set_shadow_mode", "get_shadow_mode");
@ -406,11 +406,11 @@ OmniLight::ShadowDetail OmniLight::get_shadow_detail() const{
void OmniLight::_bind_methods() {
ClassDB::bind_method( _MD("set_shadow_mode","mode"),&OmniLight::set_shadow_mode);
ClassDB::bind_method( _MD("get_shadow_mode"),&OmniLight::get_shadow_mode);
ClassDB::bind_method( D_METHOD("set_shadow_mode","mode"),&OmniLight::set_shadow_mode);
ClassDB::bind_method( D_METHOD("get_shadow_mode"),&OmniLight::get_shadow_mode);
ClassDB::bind_method( _MD("set_shadow_detail","detail"),&OmniLight::set_shadow_detail);
ClassDB::bind_method( _MD("get_shadow_detail"),&OmniLight::get_shadow_detail);
ClassDB::bind_method( D_METHOD("set_shadow_detail","detail"),&OmniLight::set_shadow_detail);
ClassDB::bind_method( D_METHOD("get_shadow_detail"),&OmniLight::get_shadow_detail);
ADD_GROUP("Omni","omni_");
ADD_PROPERTYI( PropertyInfo( Variant::REAL, "omni_range",PROPERTY_HINT_RANGE,"0,65536,0.1"), "set_param", "get_param", PARAM_RANGE);

View file

@ -146,10 +146,10 @@ RES Listener::_get_gizmo_geometry() const {
void Listener::_bind_methods() {
ClassDB::bind_method( _MD("make_current"),&Listener::make_current );
ClassDB::bind_method( _MD("clear_current"),&Listener::clear_current );
ClassDB::bind_method( _MD("is_current"),&Listener::is_current );
ClassDB::bind_method( _MD("get_listener_transform"),&Listener::get_listener_transform );
ClassDB::bind_method( D_METHOD("make_current"),&Listener::make_current );
ClassDB::bind_method( D_METHOD("clear_current"),&Listener::clear_current );
ClassDB::bind_method( D_METHOD("is_current"),&Listener::is_current );
ClassDB::bind_method( D_METHOD("get_listener_transform"),&Listener::get_listener_transform );
}
Listener::Listener() {

View file

@ -294,16 +294,16 @@ void MeshInstance::_mesh_changed() {
void MeshInstance::_bind_methods() {
ClassDB::bind_method(_MD("set_mesh","mesh:Mesh"),&MeshInstance::set_mesh);
ClassDB::bind_method(_MD("get_mesh:Mesh"),&MeshInstance::get_mesh);
ClassDB::bind_method(_MD("set_skeleton_path","skeleton_path:NodePath"),&MeshInstance::set_skeleton_path);
ClassDB::bind_method(_MD("get_skeleton_path:NodePath"),&MeshInstance::get_skeleton_path);
ClassDB::bind_method(D_METHOD("set_mesh","mesh:Mesh"),&MeshInstance::set_mesh);
ClassDB::bind_method(D_METHOD("get_mesh:Mesh"),&MeshInstance::get_mesh);
ClassDB::bind_method(D_METHOD("set_skeleton_path","skeleton_path:NodePath"),&MeshInstance::set_skeleton_path);
ClassDB::bind_method(D_METHOD("get_skeleton_path:NodePath"),&MeshInstance::get_skeleton_path);
ClassDB::bind_method(_MD("create_trimesh_collision"),&MeshInstance::create_trimesh_collision);
ClassDB::bind_method(D_METHOD("create_trimesh_collision"),&MeshInstance::create_trimesh_collision);
ClassDB::set_method_flags("MeshInstance","create_trimesh_collision",METHOD_FLAGS_DEFAULT);
ClassDB::bind_method(_MD("create_convex_collision"),&MeshInstance::create_convex_collision);
ClassDB::bind_method(D_METHOD("create_convex_collision"),&MeshInstance::create_convex_collision);
ClassDB::set_method_flags("MeshInstance","create_convex_collision",METHOD_FLAGS_DEFAULT);
ClassDB::bind_method(_MD("_mesh_changed"),&MeshInstance::_mesh_changed);
ClassDB::bind_method(D_METHOD("_mesh_changed"),&MeshInstance::_mesh_changed);
ADD_PROPERTY( PropertyInfo( Variant::OBJECT, "mesh", PROPERTY_HINT_RESOURCE_TYPE, "Mesh" ), "set_mesh", "get_mesh");
ADD_PROPERTY( PropertyInfo (Variant::NODE_PATH, "skeleton"), "set_skeleton_path", "get_skeleton_path");

View file

@ -34,8 +34,8 @@
void MultiMeshInstance::_bind_methods() {
ClassDB::bind_method(_MD("set_multimesh","multimesh"),&MultiMeshInstance::set_multimesh);
ClassDB::bind_method(_MD("get_multimesh"),&MultiMeshInstance::get_multimesh);
ClassDB::bind_method(D_METHOD("set_multimesh","multimesh"),&MultiMeshInstance::set_multimesh);
ClassDB::bind_method(D_METHOD("get_multimesh"),&MultiMeshInstance::get_multimesh);
ADD_PROPERTY( PropertyInfo(Variant::OBJECT,"multimesh",PROPERTY_HINT_RESOURCE_TYPE,"MultiMesh"), "set_multimesh", "get_multimesh");

View file

@ -730,18 +730,18 @@ Vector3 Navigation::get_up_vector() const{
void Navigation::_bind_methods() {
ClassDB::bind_method(_MD("navmesh_create","mesh:NavigationMesh","xform","owner"),&Navigation::navmesh_create,DEFVAL(Variant()));
ClassDB::bind_method(_MD("navmesh_set_transform","id","xform"),&Navigation::navmesh_set_transform);
ClassDB::bind_method(_MD("navmesh_remove","id"),&Navigation::navmesh_remove);
ClassDB::bind_method(D_METHOD("navmesh_create","mesh:NavigationMesh","xform","owner"),&Navigation::navmesh_create,DEFVAL(Variant()));
ClassDB::bind_method(D_METHOD("navmesh_set_transform","id","xform"),&Navigation::navmesh_set_transform);
ClassDB::bind_method(D_METHOD("navmesh_remove","id"),&Navigation::navmesh_remove);
ClassDB::bind_method(_MD("get_simple_path","start","end","optimize"),&Navigation::get_simple_path,DEFVAL(true));
ClassDB::bind_method(_MD("get_closest_point_to_segment","start","end","use_collision"),&Navigation::get_closest_point_to_segment,DEFVAL(false));
ClassDB::bind_method(_MD("get_closest_point","to_point"),&Navigation::get_closest_point);
ClassDB::bind_method(_MD("get_closest_point_normal","to_point"),&Navigation::get_closest_point_normal);
ClassDB::bind_method(_MD("get_closest_point_owner","to_point"),&Navigation::get_closest_point_owner);
ClassDB::bind_method(D_METHOD("get_simple_path","start","end","optimize"),&Navigation::get_simple_path,DEFVAL(true));
ClassDB::bind_method(D_METHOD("get_closest_point_to_segment","start","end","use_collision"),&Navigation::get_closest_point_to_segment,DEFVAL(false));
ClassDB::bind_method(D_METHOD("get_closest_point","to_point"),&Navigation::get_closest_point);
ClassDB::bind_method(D_METHOD("get_closest_point_normal","to_point"),&Navigation::get_closest_point_normal);
ClassDB::bind_method(D_METHOD("get_closest_point_owner","to_point"),&Navigation::get_closest_point_owner);
ClassDB::bind_method(_MD("set_up_vector","up"),&Navigation::set_up_vector);
ClassDB::bind_method(_MD("get_up_vector"),&Navigation::get_up_vector);
ClassDB::bind_method(D_METHOD("set_up_vector","up"),&Navigation::set_up_vector);
ClassDB::bind_method(D_METHOD("get_up_vector"),&Navigation::get_up_vector);
ADD_PROPERTY( PropertyInfo(Variant::VECTOR3,"up_vector"),"set_up_vector","get_up_vector");
}

View file

@ -208,16 +208,16 @@ Ref<Mesh> NavigationMesh::get_debug_mesh() {
void NavigationMesh::_bind_methods() {
ClassDB::bind_method(_MD("set_vertices","vertices"),&NavigationMesh::set_vertices);
ClassDB::bind_method(_MD("get_vertices"),&NavigationMesh::get_vertices);
ClassDB::bind_method(D_METHOD("set_vertices","vertices"),&NavigationMesh::set_vertices);
ClassDB::bind_method(D_METHOD("get_vertices"),&NavigationMesh::get_vertices);
ClassDB::bind_method(_MD("add_polygon","polygon"),&NavigationMesh::add_polygon);
ClassDB::bind_method(_MD("get_polygon_count"),&NavigationMesh::get_polygon_count);
ClassDB::bind_method(_MD("get_polygon","idx"),&NavigationMesh::get_polygon);
ClassDB::bind_method(_MD("clear_polygons"),&NavigationMesh::clear_polygons);
ClassDB::bind_method(D_METHOD("add_polygon","polygon"),&NavigationMesh::add_polygon);
ClassDB::bind_method(D_METHOD("get_polygon_count"),&NavigationMesh::get_polygon_count);
ClassDB::bind_method(D_METHOD("get_polygon","idx"),&NavigationMesh::get_polygon);
ClassDB::bind_method(D_METHOD("clear_polygons"),&NavigationMesh::clear_polygons);
ClassDB::bind_method(_MD("_set_polygons","polygons"),&NavigationMesh::_set_polygons);
ClassDB::bind_method(_MD("_get_polygons"),&NavigationMesh::_get_polygons);
ClassDB::bind_method(D_METHOD("_set_polygons","polygons"),&NavigationMesh::_set_polygons);
ClassDB::bind_method(D_METHOD("_get_polygons"),&NavigationMesh::_get_polygons);
ADD_PROPERTY(PropertyInfo(Variant::POOL_VECTOR3_ARRAY,"vertices",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"set_vertices","get_vertices");
ADD_PROPERTY(PropertyInfo(Variant::ARRAY,"polygons",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"_set_polygons","_get_polygons");
@ -394,11 +394,11 @@ String NavigationMeshInstance::get_configuration_warning() const {
void NavigationMeshInstance::_bind_methods() {
ClassDB::bind_method(_MD("set_navigation_mesh","navmesh"),&NavigationMeshInstance::set_navigation_mesh);
ClassDB::bind_method(_MD("get_navigation_mesh"),&NavigationMeshInstance::get_navigation_mesh);
ClassDB::bind_method(D_METHOD("set_navigation_mesh","navmesh"),&NavigationMeshInstance::set_navigation_mesh);
ClassDB::bind_method(D_METHOD("get_navigation_mesh"),&NavigationMeshInstance::get_navigation_mesh);
ClassDB::bind_method(_MD("set_enabled","enabled"),&NavigationMeshInstance::set_enabled);
ClassDB::bind_method(_MD("is_enabled"),&NavigationMeshInstance::is_enabled);
ClassDB::bind_method(D_METHOD("set_enabled","enabled"),&NavigationMeshInstance::set_enabled);
ClassDB::bind_method(D_METHOD("is_enabled"),&NavigationMeshInstance::is_enabled);
ADD_PROPERTY( PropertyInfo(Variant::OBJECT,"navmesh",PROPERTY_HINT_RESOURCE_TYPE,"NavigationMesh"),"set_navigation_mesh","get_navigation_mesh");
ADD_PROPERTY( PropertyInfo(Variant::BOOL,"enabled"),"set_enabled","is_enabled");

View file

@ -406,39 +406,39 @@ RES Particles::_get_gizmo_geometry() const {
void Particles::_bind_methods() {
ClassDB::bind_method(_MD("set_amount","amount"),&Particles::set_amount);
ClassDB::bind_method(_MD("get_amount"),&Particles::get_amount);
ClassDB::bind_method(_MD("set_emitting","enabled"),&Particles::set_emitting);
ClassDB::bind_method(_MD("is_emitting"),&Particles::is_emitting);
ClassDB::bind_method(_MD("set_visibility_aabb","aabb"),&Particles::set_visibility_aabb);
ClassDB::bind_method(_MD("get_visibility_aabb"),&Particles::get_visibility_aabb);
ClassDB::bind_method(_MD("set_emission_half_extents","half_extents"),&Particles::set_emission_half_extents);
ClassDB::bind_method(_MD("get_emission_half_extents"),&Particles::get_emission_half_extents);
ClassDB::bind_method(_MD("set_emission_base_velocity","base_velocity"),&Particles::set_emission_base_velocity);
ClassDB::bind_method(_MD("get_emission_base_velocity"),&Particles::get_emission_base_velocity);
ClassDB::bind_method(_MD("set_emission_points","points"),&Particles::set_emission_points);
ClassDB::bind_method(_MD("get_emission_points"),&Particles::get_emission_points);
ClassDB::bind_method(_MD("set_gravity_normal","normal"),&Particles::set_gravity_normal);
ClassDB::bind_method(_MD("get_gravity_normal"),&Particles::get_gravity_normal);
ClassDB::bind_method(_MD("set_variable","variable","value"),&Particles::set_variable);
ClassDB::bind_method(_MD("get_variable","variable"),&Particles::get_variable);
ClassDB::bind_method(_MD("set_randomness","variable","randomness"),&Particles::set_randomness);
ClassDB::bind_method(_MD("get_randomness","variable"),&Particles::get_randomness);
ClassDB::bind_method(_MD("set_color_phase_pos","phase","pos"),&Particles::set_color_phase_pos);
ClassDB::bind_method(_MD("get_color_phase_pos","phase"),&Particles::get_color_phase_pos);
ClassDB::bind_method(_MD("set_color_phase_color","phase","color"),&Particles::set_color_phase_color);
ClassDB::bind_method(_MD("get_color_phase_color","phase"),&Particles::get_color_phase_color);
ClassDB::bind_method(_MD("set_material","material:Material"),&Particles::set_material);
ClassDB::bind_method(_MD("get_material:Material"),&Particles::get_material);
ClassDB::bind_method(_MD("set_emit_timeout","timeout"),&Particles::set_emit_timeout);
ClassDB::bind_method(_MD("get_emit_timeout"),&Particles::get_emit_timeout);
ClassDB::bind_method(_MD("set_height_from_velocity","enable"),&Particles::set_height_from_velocity);
ClassDB::bind_method(_MD("has_height_from_velocity"),&Particles::has_height_from_velocity);
ClassDB::bind_method(_MD("set_use_local_coordinates","enable"),&Particles::set_use_local_coordinates);
ClassDB::bind_method(_MD("is_using_local_coordinates"),&Particles::is_using_local_coordinates);
ClassDB::bind_method(D_METHOD("set_amount","amount"),&Particles::set_amount);
ClassDB::bind_method(D_METHOD("get_amount"),&Particles::get_amount);
ClassDB::bind_method(D_METHOD("set_emitting","enabled"),&Particles::set_emitting);
ClassDB::bind_method(D_METHOD("is_emitting"),&Particles::is_emitting);
ClassDB::bind_method(D_METHOD("set_visibility_aabb","aabb"),&Particles::set_visibility_aabb);
ClassDB::bind_method(D_METHOD("get_visibility_aabb"),&Particles::get_visibility_aabb);
ClassDB::bind_method(D_METHOD("set_emission_half_extents","half_extents"),&Particles::set_emission_half_extents);
ClassDB::bind_method(D_METHOD("get_emission_half_extents"),&Particles::get_emission_half_extents);
ClassDB::bind_method(D_METHOD("set_emission_base_velocity","base_velocity"),&Particles::set_emission_base_velocity);
ClassDB::bind_method(D_METHOD("get_emission_base_velocity"),&Particles::get_emission_base_velocity);
ClassDB::bind_method(D_METHOD("set_emission_points","points"),&Particles::set_emission_points);
ClassDB::bind_method(D_METHOD("get_emission_points"),&Particles::get_emission_points);
ClassDB::bind_method(D_METHOD("set_gravity_normal","normal"),&Particles::set_gravity_normal);
ClassDB::bind_method(D_METHOD("get_gravity_normal"),&Particles::get_gravity_normal);
ClassDB::bind_method(D_METHOD("set_variable","variable","value"),&Particles::set_variable);
ClassDB::bind_method(D_METHOD("get_variable","variable"),&Particles::get_variable);
ClassDB::bind_method(D_METHOD("set_randomness","variable","randomness"),&Particles::set_randomness);
ClassDB::bind_method(D_METHOD("get_randomness","variable"),&Particles::get_randomness);
ClassDB::bind_method(D_METHOD("set_color_phase_pos","phase","pos"),&Particles::set_color_phase_pos);
ClassDB::bind_method(D_METHOD("get_color_phase_pos","phase"),&Particles::get_color_phase_pos);
ClassDB::bind_method(D_METHOD("set_color_phase_color","phase","color"),&Particles::set_color_phase_color);
ClassDB::bind_method(D_METHOD("get_color_phase_color","phase"),&Particles::get_color_phase_color);
ClassDB::bind_method(D_METHOD("set_material","material:Material"),&Particles::set_material);
ClassDB::bind_method(D_METHOD("get_material:Material"),&Particles::get_material);
ClassDB::bind_method(D_METHOD("set_emit_timeout","timeout"),&Particles::set_emit_timeout);
ClassDB::bind_method(D_METHOD("get_emit_timeout"),&Particles::get_emit_timeout);
ClassDB::bind_method(D_METHOD("set_height_from_velocity","enable"),&Particles::set_height_from_velocity);
ClassDB::bind_method(D_METHOD("has_height_from_velocity"),&Particles::has_height_from_velocity);
ClassDB::bind_method(D_METHOD("set_use_local_coordinates","enable"),&Particles::set_use_local_coordinates);
ClassDB::bind_method(D_METHOD("is_using_local_coordinates"),&Particles::is_using_local_coordinates);
ClassDB::bind_method(_MD("set_color_phases","count"),&Particles::set_color_phases);
ClassDB::bind_method(_MD("get_color_phases"),&Particles::get_color_phases);
ClassDB::bind_method(D_METHOD("set_color_phases","count"),&Particles::set_color_phases);
ClassDB::bind_method(D_METHOD("get_color_phases"),&Particles::get_color_phases);
ADD_PROPERTY( PropertyInfo( Variant::OBJECT, "material", PROPERTY_HINT_RESOURCE_TYPE, "Material" ), "set_material", "get_material") ;

View file

@ -80,9 +80,9 @@ Ref<Curve3D> Path::get_curve() const{
void Path::_bind_methods() {
ClassDB::bind_method(_MD("set_curve","curve:Curve3D"),&Path::set_curve);
ClassDB::bind_method(_MD("get_curve:Curve3D","curve"),&Path::get_curve);
ClassDB::bind_method(_MD("_curve_changed"),&Path::_curve_changed);
ClassDB::bind_method(D_METHOD("set_curve","curve:Curve3D"),&Path::set_curve);
ClassDB::bind_method(D_METHOD("get_curve:Curve3D","curve"),&Path::get_curve);
ClassDB::bind_method(D_METHOD("_curve_changed"),&Path::_curve_changed);
ADD_PROPERTY( PropertyInfo( Variant::OBJECT, "curve", PROPERTY_HINT_RESOURCE_TYPE, "Curve3D"), "set_curve","get_curve");
}
@ -257,26 +257,26 @@ void PathFollow::_get_property_list( List<PropertyInfo> *p_list) const{
void PathFollow::_bind_methods() {
ClassDB::bind_method(_MD("set_offset","offset"),&PathFollow::set_offset);
ClassDB::bind_method(_MD("get_offset"),&PathFollow::get_offset);
ClassDB::bind_method(D_METHOD("set_offset","offset"),&PathFollow::set_offset);
ClassDB::bind_method(D_METHOD("get_offset"),&PathFollow::get_offset);
ClassDB::bind_method(_MD("set_h_offset","h_offset"),&PathFollow::set_h_offset);
ClassDB::bind_method(_MD("get_h_offset"),&PathFollow::get_h_offset);
ClassDB::bind_method(D_METHOD("set_h_offset","h_offset"),&PathFollow::set_h_offset);
ClassDB::bind_method(D_METHOD("get_h_offset"),&PathFollow::get_h_offset);
ClassDB::bind_method(_MD("set_v_offset","v_offset"),&PathFollow::set_v_offset);
ClassDB::bind_method(_MD("get_v_offset"),&PathFollow::get_v_offset);
ClassDB::bind_method(D_METHOD("set_v_offset","v_offset"),&PathFollow::set_v_offset);
ClassDB::bind_method(D_METHOD("get_v_offset"),&PathFollow::get_v_offset);
ClassDB::bind_method(_MD("set_unit_offset","unit_offset"),&PathFollow::set_unit_offset);
ClassDB::bind_method(_MD("get_unit_offset"),&PathFollow::get_unit_offset);
ClassDB::bind_method(D_METHOD("set_unit_offset","unit_offset"),&PathFollow::set_unit_offset);
ClassDB::bind_method(D_METHOD("get_unit_offset"),&PathFollow::get_unit_offset);
ClassDB::bind_method(_MD("set_rotation_mode","rotation_mode"),&PathFollow::set_rotation_mode);
ClassDB::bind_method(_MD("get_rotation_mode"),&PathFollow::get_rotation_mode);
ClassDB::bind_method(D_METHOD("set_rotation_mode","rotation_mode"),&PathFollow::set_rotation_mode);
ClassDB::bind_method(D_METHOD("get_rotation_mode"),&PathFollow::get_rotation_mode);
ClassDB::bind_method(_MD("set_cubic_interpolation","enable"),&PathFollow::set_cubic_interpolation);
ClassDB::bind_method(_MD("get_cubic_interpolation"),&PathFollow::get_cubic_interpolation);
ClassDB::bind_method(D_METHOD("set_cubic_interpolation","enable"),&PathFollow::set_cubic_interpolation);
ClassDB::bind_method(D_METHOD("get_cubic_interpolation"),&PathFollow::get_cubic_interpolation);
ClassDB::bind_method(_MD("set_loop","loop"),&PathFollow::set_loop);
ClassDB::bind_method(_MD("has_loop"),&PathFollow::has_loop);
ClassDB::bind_method(D_METHOD("set_loop","loop"),&PathFollow::set_loop);
ClassDB::bind_method(D_METHOD("has_loop"),&PathFollow::has_loop);
BIND_CONSTANT( ROTATION_NONE );
BIND_CONSTANT( ROTATION_Y );

Some files were not shown because too many files have changed in this diff Show more