Add Asset system
- Add Abstract Asset class which defines Assets - Add AssetManager class to keep track of all the Asset - Add AssetFile class to cache the asset without loading it - Add UUID class to uniquely identify assets - Add MetaFile class to load meta asset files
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include "copium/util/Common.h"
|
||||
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
namespace Copium
|
||||
{
|
||||
|
||||
class StringUtil
|
||||
{
|
||||
CP_STATIC_CLASS(StringUtil);
|
||||
|
||||
public:
|
||||
static std::string_view Trim(const std::string& str);
|
||||
static std::string_view Trim(const std::string_view& str);
|
||||
private:
|
||||
static size_t GetTrimStartPos(const std::string_view& str);
|
||||
static size_t GetTrimEndPos(const std::string_view& str);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user