You've already forked godot
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:
committed by
Hein-Pieter van Braam
parent
416cd9c8b8
commit
9cba5ef772
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user