mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
languages support (WIP)
This commit is contained in:
parent
0837cf4f03
commit
7bf70bb26e
21 changed files with 456 additions and 38 deletions
17
src/content/ContentPack.cpp
Normal file
17
src/content/ContentPack.cpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#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;
|
||||
}
|
||||
18
src/content/ContentPack.h
Normal file
18
src/content/ContentPack.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef CONTENT_CONTENT_PACK_H_
|
||||
#define CONTENT_CONTENT_PACK_H_
|
||||
|
||||
#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;
|
||||
};
|
||||
|
||||
#endif // CONTENT_CONTENT_PACK_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue