From 418dcaebfdc1bdf82c07bab2e3b37da32c2eeafd Mon Sep 17 00:00:00 2001 From: Xiao Qi Date: Fri, 11 Nov 2022 13:18:28 +0800 Subject: [PATCH] Removed unnecessary stuff from macros --- src/AssetMacros.h | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/AssetMacros.h b/src/AssetMacros.h index 7e72ee6..a3ca82b 100644 --- a/src/AssetMacros.h +++ b/src/AssetMacros.h @@ -1,5 +1,5 @@ /****************************************************************************** - * \file SHAssetMacros.h + * \file AssetMacros.h * \author Loh Xiao Qi * \brief Macros and typedefs for assets * @@ -7,21 +7,12 @@ * or disclosure of this file or its contents without the prior * written consent of Digipen Institute of Technology is prohibited ******************************************************************************/ -#ifndef SH_ASSET_MACROS_H -#define SH_ASSET_MACROS_H +#pragma once -#include -#include #include // Typedefs -typedef uint32_t AssetID; -typedef std::string AssetName; typedef std::filesystem::path AssetPath; -typedef unsigned char* AssetData; -typedef std::string AssetMetaVersion; -typedef std::string AssetExtension; -typedef size_t AssetTypeMeta; //Directory #ifdef _PUBLISH @@ -33,7 +24,6 @@ constexpr std::string_view BUILT_IN_ASSET_ROOT{ "../../Built_In" }; #endif // ASSET EXTENSIONS -constexpr std::string_view TEXTURE_EXTENSION {".shtex"}; constexpr std::string_view MODEL_EXTENSION {".shmodel"}; // EXTERNAL EXTENSIONS @@ -44,11 +34,3 @@ constexpr std::string_view EXTERNALS[] = { FBX_EXTENSION, GLTF_EXTENSION }; - -// Error flags -constexpr std::string_view FILE_NOT_FOUND_ERR {"FILE NOT FOUND"}; -constexpr std::string_view META_NOT_FOUND_ERR {"META NOT FOUND"}; -constexpr std::string_view ASSET_NOT_FOUND_ERR {"ASSET NOT FOUND"}; -constexpr std::string_view EXT_DOES_NOT_EXIST {"TYPE DOES NOT HAVE EXTENSION DEFINED"}; - -#endif // !SH_ASSET_MACROS_H