aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Asset.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-14 14:06:18 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-14 14:06:18 +0100
commit431b0bd7c6c502b42bb5be5488371d8c475e7024 (patch)
treee077fe2365f3d441c2201f7cb3ab38920bf2b3ae /src/crepe/Asset.h
parent07adbf48e0781cd8c95983c1871a84b6160ee5bf (diff)
move some shit around
Diffstat (limited to 'src/crepe/Asset.h')
-rw-r--r--src/crepe/Asset.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/crepe/Asset.h b/src/crepe/Asset.h
deleted file mode 100644
index f6e6782..0000000
--- a/src/crepe/Asset.h
+++ /dev/null
@@ -1,43 +0,0 @@
-#pragma once
-
-#include <string>
-
-namespace crepe {
-
-/**
- * \brief Asset location helper
- *
- * This class is used to locate game asset files, and should *always* be used
- * instead of reading file paths directly.
- */
-class Asset {
-public:
- /**
- * \param src Unique identifier to asset
- */
- Asset(const std::string & src);
- /**
- * \param src Unique identifier to asset
- */
- Asset(const char * src);
-
-public:
- /**
- * \brief Get the path to this asset
- * \return path to this asset
- */
- const std::string & get_path() const noexcept;
-
-private:
- //! path to asset
- const std::string src;
-
-private:
- std::string find_asset(const std::string & src) const;
- /**
- * \returns The path to the current executable
- */
- std::string whereami() const noexcept;
-};
-
-} // namespace crepe