1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-20 14:45:44 +00:00

implement signal related methods in csharp_script so signals can be used with emit

(cherry picked from commit cfbd7fd21e)
This commit is contained in:
Paul Joannon
2018-01-18 23:27:43 +01:00
committed by Hein-Pieter van Braam
parent 416cd9c8b8
commit 9cba5ef772
4 changed files with 89 additions and 8 deletions

View File

@@ -229,6 +229,20 @@ String GDMonoMethod::get_signature_desc(bool p_namespaces) const {
return res;
}
void GDMonoMethod::get_parameter_names(Vector<StringName> &names) const {
const char *_names[params_count];
mono_method_get_param_names(mono_method, _names);
for (int i = 0; i < params_count; ++i) {
names.push_back(StringName(_names[i]));
}
}
void GDMonoMethod::get_parameter_types(Vector<ManagedType> &types) const {
for (int i = 0; i < param_types.size(); ++i) {
types.push_back(param_types[i]);
}
}
GDMonoMethod::GDMonoMethod(StringName p_name, MonoMethod *p_method) {
name = p_name;