Added basic support for custom resource savers and loaders
This commit is contained in:
parent
ca28c455bf
commit
065e2670af
77 changed files with 1102 additions and 145 deletions
|
|
@ -161,6 +161,7 @@ public:
|
|||
};
|
||||
|
||||
class GDNativeLibraryResourceLoader : public ResourceFormatLoader {
|
||||
GDCLASS(GDNativeLibraryResourceLoader, ResourceFormatLoader)
|
||||
public:
|
||||
virtual RES load(const String &p_path, const String &p_original_path, Error *r_error);
|
||||
virtual void get_recognized_extensions(List<String> *p_extensions) const;
|
||||
|
|
@ -169,6 +170,7 @@ public:
|
|||
};
|
||||
|
||||
class GDNativeLibraryResourceSaver : public ResourceFormatSaver {
|
||||
GDCLASS(GDNativeLibraryResourceSaver, ResourceFormatSaver)
|
||||
public:
|
||||
virtual Error save(const String &p_path, const RES &p_resource, uint32_t p_flags);
|
||||
virtual bool recognize(const RES &p_resource) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue