mirror of
https://github.com/godotengine/godot.git
synced 2025-10-28 20:24:41 +00:00
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:
parent
bf64df4427
commit
411ee71b4d
297 changed files with 5445 additions and 5443 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue