29 #ifndef RESOURCE_FORMAT_BINARY_H 30 #define RESOURCE_FORMAT_BINARY_H 32 #include "io/resource_loader.h" 33 #include "io/resource_saver.h" 34 #include "os/file_access.h" 49 uint64_t importmd_ofs;
71 String get_unicode_string();
72 void _advance_padding(uint32_t p_len);
82 Error parse_variant(
Variant& r_v);
86 virtual void set_local_path(
const String& p_local_path);
89 virtual int get_stage()
const;
90 virtual int get_stage_count()
const;
107 virtual void get_recognized_extensions_for_type(
const String& p_type,
List<String> *p_extensions)
const;
108 virtual void get_recognized_extensions(
List<String> *p_extensions)
const;
109 virtual bool handles_type(
const String& p_type)
const;
110 virtual String get_resource_type(
const String &p_path)
const;
111 virtual void get_dependencies(
const String& p_path,
List<String> *p_dependencies,
bool p_add_types=
false);
128 bool bundle_resources;
151 struct ResourceData {
160 void _pad_buffer(
int p_bytes);
162 void _find_resources(
const Variant& p_variant,
bool p_main=
false);
163 void save_unicode_string(
const String& p_string);
164 int get_string_index(
const String& p_string);
168 Error save(
const String &p_path,
const RES& p_resource,uint32_t p_flags=0);
181 virtual Error save(
const String &p_path,
const RES& p_resource,uint32_t p_flags=0);
182 virtual bool recognize(
const RES& p_resource)
const;
183 virtual void get_recognized_extensions(
const RES& p_resource,
List<String> *p_extensions)
const;
189 #endif // RESOURCE_FORMAT_BINARY_H
Definition: resource_format_binary.h:37
Definition: file_access.h:40
Definition: resource_loader.h:38