aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Resource.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 12:33:59 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 12:33:59 +0100
commit9d58e897fb68ab8dd001a5085cde2fae4634c274 (patch)
treeb70c33c6343be56a536c0b639435a45a1d2429ed /src/crepe/Resource.h
parent87c74782e486647c46f9ca4d2f857094006e563c (diff)
move some files from `loek/tests` to `loek/audio`
Diffstat (limited to 'src/crepe/Resource.h')
-rw-r--r--src/crepe/Resource.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/crepe/Resource.h b/src/crepe/Resource.h
deleted file mode 100644
index dcf3dbd..0000000
--- a/src/crepe/Resource.h
+++ /dev/null
@@ -1,33 +0,0 @@
-#pragma once
-
-#include <memory>
-
-namespace crepe {
-
-class ResourceManager;
-class Asset;
-
-/**
- * Resource is an interface class used to represent a (deserialized) game
- * resource (e.g. textures, sounds).
- */
-class Resource {
-private:
- /**
- * \brief Prototype pattern clone function.
- *
- * \param src Source file of new resource (abstraction for file saved on
- * disk)
- *
- * \returns New instance of concrete resource
- */
- virtual std::unique_ptr<Resource> clone(const Asset & src) const = 0;
- /**
- * The resource manager uses \c clone to create new instances of the concrete
- * resource class. This may be used to inherit references to classes that
- * would otherwise need to be implemented as singletons.
- */
- friend class ResourceManager;
-};
-
-} // namespace crepe