mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
feat: save player 'suspended' status
This commit is contained in:
parent
1c76870228
commit
cf77f73d1b
1 changed files with 2 additions and 0 deletions
|
|
@ -324,6 +324,7 @@ dv::value Player::serialize() const {
|
|||
|
||||
root["flight"] = flight;
|
||||
root["noclip"] = noclip;
|
||||
root["suspended"] = suspended;
|
||||
root["infinite-items"] = infiniteItems;
|
||||
root["instant-destruction"] = instantDestruction;
|
||||
root["loading-chunks"] = loadingChunks;
|
||||
|
|
@ -357,6 +358,7 @@ void Player::deserialize(const dv::value& src) {
|
|||
|
||||
flight = src["flight"].asBoolean();
|
||||
noclip = src["noclip"].asBoolean();
|
||||
src.at("suspended").get(suspended);
|
||||
src.at("infinite-items").get(infiniteItems);
|
||||
src.at("instant-destruction").get(instantDestruction);
|
||||
src.at("loading-chunks").get(loadingChunks);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue