mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
start splitting render pipelines & remove the obsolete world fog parameter
This commit is contained in:
parent
07c35f001c
commit
22f09d3659
8 changed files with 223 additions and 147 deletions
|
|
@ -216,9 +216,6 @@ void WorldInfo::deserialize(const dv::value& root) {
|
|||
daytimeSpeed = timeobj["day-time-speed"].asNumber();
|
||||
totalTime = timeobj["total-time"].asNumber();
|
||||
}
|
||||
if (root.has("weather")) {
|
||||
fog = root["weather"]["fog"].asNumber();
|
||||
}
|
||||
nextInventoryId = root["next-inventory-id"].asInteger(2);
|
||||
nextEntityId = root["next-entity-id"].asInteger(1);
|
||||
root.at("next-player-id").get(nextPlayerId);
|
||||
|
|
@ -244,9 +241,6 @@ dv::value WorldInfo::serialize() const {
|
|||
timeobj["day-time-speed"] = daytimeSpeed;
|
||||
timeobj["total-time"] = totalTime;
|
||||
|
||||
root["weather"] = dv::object();
|
||||
root["weather"]["fog"] = fog;
|
||||
|
||||
root["next-inventory-id"] = nextInventoryId;
|
||||
root["next-entity-id"] = nextEntityId;
|
||||
root["next-player-id"] = nextPlayerId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue