feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -28,15 +28,14 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef RESOURCE_LOADER_H
|
||||
#define RESOURCE_LOADER_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/resource.h"
|
||||
#include "core/object/gdvirtual.gen.inc"
|
||||
#include "core/object/worker_thread_pool.h"
|
||||
#include "core/os/thread.h"
|
||||
|
||||
namespace core_bind {
|
||||
namespace CoreBind {
|
||||
class ResourceLoader;
|
||||
}
|
||||
|
||||
|
|
@ -105,7 +104,7 @@ typedef void (*ResourceLoadedCallback)(Ref<Resource> p_resource, const String &p
|
|||
|
||||
class ResourceLoader {
|
||||
friend class LoadToken;
|
||||
friend class core_bind::ResourceLoader;
|
||||
friend class CoreBind::ResourceLoader;
|
||||
|
||||
enum {
|
||||
MAX_LOADERS = 64
|
||||
|
|
@ -205,6 +204,7 @@ private:
|
|||
|
||||
static void _run_load_task(void *p_userdata);
|
||||
|
||||
static thread_local bool import_thread;
|
||||
static thread_local int load_nesting;
|
||||
static thread_local HashMap<int, HashMap<String, Ref<Resource>>> res_ref_overrides; // Outermost key is nesting level.
|
||||
static thread_local Vector<String> load_paths_stack;
|
||||
|
|
@ -254,6 +254,8 @@ public:
|
|||
static bool is_imported(const String &p_path);
|
||||
static int get_import_order(const String &p_path);
|
||||
|
||||
static void set_is_import_thread(bool p_import_thread);
|
||||
|
||||
static void set_timestamp_on_load(bool p_timestamp) { timestamp_on_load = p_timestamp; }
|
||||
static bool get_timestamp_on_load() { return timestamp_on_load; }
|
||||
|
||||
|
|
@ -316,5 +318,3 @@ public:
|
|||
static void initialize();
|
||||
static void finalize();
|
||||
};
|
||||
|
||||
#endif // RESOURCE_LOADER_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue