SpiecsEngine
 
Loading...
Searching...
No Matches
Spices::ResourceSystem Class Reference

ResourceSystem Class. Handles resource load/unload event. More...

#include <ResourceSystem.h>

Inheritance diagram for Spices::ResourceSystem:
Spices::System

Public Member Functions

 ResourceSystem (const std::string &systemName)
 Constructor Function. Init class variable. Usually call it.
 
virtual ~ResourceSystem () override=default
 Destructor Function.
 
virtual void OnSystemInitialize () override
 This interface defines the behave on specific system initialized. Called when system Pushed to SystemManager.
 
virtual void OnSystemShutDown () override
 This interface defines the behave on specific system shutdown. Called when system poped from SystemManager.
 
virtual void OnSystemUpdate (TimeStep &ts) override
 This interface defines the behave on specific system updated every frame.
 
virtual void OnEvent (Event &event) override
 This interface defines the behave on global event function pointer is called.
 

Static Public Member Functions

static const std::vector< std::string > & GetSearchFolder ()
 Get Resource Search Folder.
 
static void RegistryResourceFolder (const std::string &folder)
 Registry Resource Search Folder.
 

Protected Attributes

std::string m_SystemName
 Specific system name.
 

Static Private Attributes

static std::vector< std::string > m_ResourceSearchFolder = { SPICES_ENGINE_ASSETS_PATH }
 Registry Resource Search Folder.
 

Detailed Description

ResourceSystem Class. Handles resource load/unload event.

Todo
Resource garbage collection

Definition at line 18 of file ResourceSystem.h.


The documentation for this class was generated from the following files: