summaryrefslogtreecommitdiffstats
path: root/modules/mono/csharp_script.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-06-18 16:31:29 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-06-18 16:31:29 +0200
commit19e0135acb64f6f1e119add0806763315c125e9f (patch)
tree086478a58e239ae4b91be92ea166990227ad4089 /modules/mono/csharp_script.cpp
parentb7976f4ad65bbda075f400843a40d6c75c385b49 (diff)
parent48e20c628a8848866037a49e81a43d094d312fe9 (diff)
downloadredot-engine-19e0135acb64f6f1e119add0806763315c125e9f.tar.gz
Merge pull request #78349 from raulsntos/dotnet/fix-method-info
C#: Set `PropertyInfo.class_name` for method parameters
Diffstat (limited to 'modules/mono/csharp_script.cpp')
-rw-r--r--modules/mono/csharp_script.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp
index f46bb7ee84..bc26352e9c 100644
--- a/modules/mono/csharp_script.cpp
+++ b/modules/mono/csharp_script.cpp
@@ -2320,6 +2320,9 @@ void CSharpScript::update_script_class_info(Ref<CSharpScript> p_script) {
Variant::Type param_type = (Variant::Type)(int)param["type"];
PropertyInfo arg_info = PropertyInfo(param_type, (String)param["name"]);
arg_info.usage = (uint32_t)param["usage"];
+ if (param.has("class_name")) {
+ arg_info.class_name = (StringName)param["class_name"];
+ }
mi.arguments.push_back(arg_info);
}
@@ -2350,6 +2353,9 @@ void CSharpScript::update_script_class_info(Ref<CSharpScript> p_script) {
Variant::Type param_type = (Variant::Type)(int)param["type"];
PropertyInfo arg_info = PropertyInfo(param_type, (String)param["name"]);
arg_info.usage = (uint32_t)param["usage"];
+ if (param.has("class_name")) {
+ arg_info.class_name = (StringName)param["class_name"];
+ }
mi.arguments.push_back(arg_info);
}