summaryrefslogtreecommitdiff
path: root/modules/mono/glue
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2017-10-17 14:02:19 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2017-10-17 14:42:13 +0200
commit6e6b455d1fe791894e1a6bd66e1f5f8471c02abc (patch)
tree43863242fc7677aed0684dda7b06ddb9551b3806 /modules/mono/glue
parent1b2e09355e890ae32fe172aad19dcda137ed636f (diff)
Export attribute fixes and improvements
- Allow non-public fields to be exported as well (to avoid confusion). - Set PROPERTY_HINT_RESOURCE_TYPE for resource derived fields. - Support enums and automatically fill PROPERTY_HINT_ENUM's hint_string for enum fields.
Diffstat (limited to 'modules/mono/glue')
-rw-r--r--modules/mono/glue/cs_files/ExportAttribute.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/mono/glue/cs_files/ExportAttribute.cs b/modules/mono/glue/cs_files/ExportAttribute.cs
index af3f603d6d..a4e7d447dd 100644
--- a/modules/mono/glue/cs_files/ExportAttribute.cs
+++ b/modules/mono/glue/cs_files/ExportAttribute.cs
@@ -7,13 +7,11 @@ namespace Godot
{
private int hint;
private string hint_string;
- private int usage;
- public ExportAttribute(int hint = GD.PROPERTY_HINT_NONE, string hint_string = "", int usage = GD.PROPERTY_USAGE_DEFAULT)
+ public ExportAttribute(int hint = GD.PROPERTY_HINT_NONE, string hint_string = "")
{
this.hint = hint;
this.hint_string = hint_string;
- this.usage = usage;
}
}
}