summaryrefslogtreecommitdiffstats
path: root/modules/mono/csharp_script.h
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2018-10-22 19:43:19 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2018-10-25 18:00:24 +0200
commit1aac95a7375e58bacade69ed12f9dade484a03a8 (patch)
tree740e21d53c5a65e1e405f3f71b89ba05a7cf4fae /modules/mono/csharp_script.h
parentc6e2873605c33230210af2738f59b869ffe2141c (diff)
downloadredot-engine-1aac95a7375e58bacade69ed12f9dade484a03a8.tar.gz
Parse C# script namespace and class
- Added a very simple parser that can extract the namespace and class name of a C# script.
Diffstat (limited to 'modules/mono/csharp_script.h')
-rw-r--r--modules/mono/csharp_script.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/mono/csharp_script.h b/modules/mono/csharp_script.h
index 2636ffbcc8..fc604df2a0 100644
--- a/modules/mono/csharp_script.h
+++ b/modules/mono/csharp_script.h
@@ -275,6 +275,8 @@ class CSharpLanguage : public ScriptLanguage {
int lang_idx;
+ Dictionary scripts_metadata;
+
public:
StringNameCache string_names;
@@ -295,6 +297,10 @@ public:
void reload_assemblies_if_needed(bool p_soft_reload);
#endif
+ void project_assembly_loaded();
+
+ _FORCE_INLINE_ const Dictionary &get_scripts_metadata() { return scripts_metadata; }
+
virtual String get_name() const;
/* LANGUAGE FUNCTIONS */