Debian Codegraph @

include/igameresource.h

raw
1 #pragma once
2
3 #include <string>
4
5 namespace game
6 {
7
8 /**
9 * Interface for objects representing resources which were defined within
10 * either a directory or a PK4 archive belonging to a particular mod/game. Provides
11 * a single method to retrieve the name of the mod that contains this particular
12 * resource.
13 */
14 class IResource
15 {
16 public:
17 virtual ~IResource() {}
18
19 /**
20 * Return the name of the mod which owns this resource object. Objects that
21 * are not part of a separate mod are found in the base/ directory, and will
22 * return "base" from this function.
23 */
24 virtual std::string getModName() const = 0;
25 };
26
27 }