This commit is contained in:
MihailRis
2023-12-14 00:20:40 +03:00
parent 82c772bfdb
commit c6d2266026
6 changed files with 33 additions and 57 deletions
-16
View File
@@ -1,17 +1 @@
#include "ContentPack.h"
using std::string;
using std::filesystem::path;
ContentPack::ContentPack(const string id,
const path folder)
: id(id), folder(folder) {
}
const string& ContentPack::getId() const {
return id;
}
const path& ContentPack::getFolder() const {
return folder;
}
+3 -9
View File
@@ -4,15 +4,9 @@
#include <string>
#include <filesystem>
class ContentPack {
const std::string id;
const std::filesystem::path folder;
public:
ContentPack(const std::string id,
const std::filesystem::path folder);
const std::string& getId() const;
const std::filesystem::path& getFolder() const;
struct ContentPack {
std::string id;
std::filesystem::path folder;
};
#endif // CONTENT_CONTENT_PACK_H_