Implement CSharpScript::is_valid()

This commit is contained in:
Ignacio Etcheverry 2018-11-30 21:45:44 +01:00
parent 989b93d6a4
commit 5fd3ef4e78
2 changed files with 1 additions and 5 deletions

View file

@ -2594,10 +2594,6 @@ void CSharpScript::update_exports() {
#endif
}
bool CSharpScript::is_valid() const {
return true; //TODO return false if invalid
}
bool CSharpScript::has_script_signal(const StringName &p_signal) const {
if (_signals.has(p_signal))
return true;

View file

@ -169,7 +169,7 @@ public:
virtual void update_exports();
virtual bool is_tool() const { return tool; }
virtual bool is_valid() const;
virtual bool is_valid() const { return valid; }
virtual Ref<Script> get_base_script() const;
virtual ScriptLanguage *get_language() const;