diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-10-09 23:49:17 +0200 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-10-09 23:49:17 +0200 |
commit | 0c2e882210f8848475f7d9547af50a202f53a110 (patch) | |
tree | 8f6e149bb22426cb2023daa6b6bdeefce976f39b /modules/mono | |
parent | eb920406ae0ddae54aafb866b23c218a12c18bb4 (diff) |
Adds 'exposed' field to ClassInfo
This field represents if the class is exposed to the scripting API.
The value is 'true' if the class was registered manually ('ClassDB::register_*class()'), otherwise it's false (registered on '_post_initialize').
- Added missing registration of classes that are meant to be exposed.
Diffstat (limited to 'modules/mono')
-rw-r--r-- | modules/mono/register_types.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/mono/register_types.cpp b/modules/mono/register_types.cpp index 2a84f0d1a6..2656de5b14 100644 --- a/modules/mono/register_types.cpp +++ b/modules/mono/register_types.cpp @@ -44,6 +44,7 @@ void register_mono_types() { _godotsharp = memnew(_GodotSharp); + ClassDB::register_class<_GodotSharp>(); ProjectSettings::get_singleton()->add_singleton(ProjectSettings::Singleton("GodotSharp", _GodotSharp::get_singleton())); script_language_cs = memnew(CSharpLanguage); |