Merge pull request #24092 from neikeq/jj

Implement CSharpScript::is_valid()
This commit is contained in:
Ignacio Etcheverry 2018-11-30 22:09:23 +01:00 committed by GitHub
commit b613c29053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;