mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
implement blocks data conversion
This commit is contained in:
parent
28d746f371
commit
bc05716772
16 changed files with 341 additions and 23 deletions
|
|
@ -30,6 +30,12 @@ namespace data {
|
|||
TYPE_ERROR,
|
||||
MISSING,
|
||||
};
|
||||
inline const char* to_string(FieldIncapatibilityType type) {
|
||||
const char* names[] = {
|
||||
"none", "data_loss", "type_error", "missing"
|
||||
};
|
||||
return names[static_cast<int>(type)];
|
||||
}
|
||||
|
||||
struct FieldIncapatibility {
|
||||
std::string name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue