mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
Refactor
This commit is contained in:
parent
82c772bfdb
commit
c6d2266026
6 changed files with 33 additions and 57 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue