feat: updated godot version
This commit is contained in:
parent
0c508b0831
commit
42b028dbb5
4694 changed files with 236470 additions and 401376 deletions
|
|
@ -34,6 +34,8 @@
|
|||
#include "mono_gd/gd_mono.h"
|
||||
|
||||
#include "core/doc_data.h"
|
||||
#include "core/io/resource_loader.h"
|
||||
#include "core/io/resource_saver.h"
|
||||
#include "core/object/script_language.h"
|
||||
#include "core/templates/rb_map.h"
|
||||
#include "core/templates/self_list.h"
|
||||
|
|
@ -511,6 +513,7 @@ public:
|
|||
return true;
|
||||
}
|
||||
String validate_path(const String &p_path) const override;
|
||||
Script *create_script() const override;
|
||||
bool supports_builtin_mode() const override;
|
||||
/* TODO? */ int find_function(const String &p_function, const String &p_code) const override {
|
||||
return -1;
|
||||
|
|
@ -582,3 +585,22 @@ public:
|
|||
CSharpLanguage();
|
||||
~CSharpLanguage();
|
||||
};
|
||||
|
||||
class ResourceFormatLoaderCSharpScript : public ResourceFormatLoader {
|
||||
GDSOFTCLASS(ResourceFormatLoaderCSharpScript, ResourceFormatLoader);
|
||||
|
||||
public:
|
||||
Ref<Resource> load(const String &p_path, const String &p_original_path = "", Error *r_error = nullptr, bool p_use_sub_threads = false, float *r_progress = nullptr, CacheMode p_cache_mode = CACHE_MODE_REUSE) override;
|
||||
void get_recognized_extensions(List<String> *p_extensions) const override;
|
||||
bool handles_type(const String &p_type) const override;
|
||||
String get_resource_type(const String &p_path) const override;
|
||||
};
|
||||
|
||||
class ResourceFormatSaverCSharpScript : public ResourceFormatSaver {
|
||||
GDSOFTCLASS(ResourceFormatSaverCSharpScript, ResourceFormatSaver);
|
||||
|
||||
public:
|
||||
Error save(const Ref<Resource> &p_resource, const String &p_path, uint32_t p_flags = 0) override;
|
||||
void get_recognized_extensions(const Ref<Resource> &p_resource, List<String> *p_extensions) const override;
|
||||
bool recognize(const Ref<Resource> &p_resource) const override;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue