29 #ifndef RESOURCE_SAVER_H 30 #define RESOURCE_SAVER_H 46 virtual Error save(
const String &p_path,
const RES& p_resource,uint32_t p_flags=0)=0;
47 virtual bool recognize(
const RES& p_resource)
const=0;
48 virtual void get_recognized_extensions(
const RES& p_resource,
List<String> *p_extensions)
const=0;
53 typedef void (*ResourceSavedCallback)(
const String& p_path);
62 static int saver_count;
63 static bool timestamp_on_save;
64 static ResourceSavedCallback save_callback;
71 FLAG_RELATIVE_PATHS=1,
72 FLAG_BUNDLE_RESOURCES=2,
74 FLAG_OMIT_EDITOR_PROPERTIES=8,
75 FLAG_SAVE_BIG_ENDIAN=16,
77 FLAG_REPLACE_SUBRESOURCE_PATHS=64,
81 static Error save(
const String &p_path,
const RES& p_resource,uint32_t p_flags=0);
82 static void get_recognized_extensions(
const RES& p_resource,
List<String> *p_extensions);
85 static void set_timestamp_on_save(
bool p_timestamp) { timestamp_on_save=p_timestamp; }
86 static void set_save_callback(ResourceSavedCallback p_callback);
Definition: resource_saver.h:55