Skip to content

Commit

Permalink
Add serialisation + deserialisation to hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
Procyonae committed Dec 13, 2024
1 parent 3a03335 commit 772a4b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/savegame_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3234,6 +3234,7 @@ void vehicle_part::deserialize( const JsonObject &data )
data.read( "locked", locked );
data.read( "last_disconnected", last_disconnected );
data.read( "last_charged", last_charged );
data.read( "hidden", hidden );

if( migration != nullptr ) {
for( const itype_id &it : migration->add_veh_tools ) {
Expand Down Expand Up @@ -3289,6 +3290,7 @@ void vehicle_part::serialize( JsonOut &json ) const
json.member( "locked", locked );
json.member( "last_disconnected", last_disconnected );
json.member( "last_charged", last_charged );
json.member( "hidden", hidden );
json.end_object();
}

Expand Down

0 comments on commit 772a4b9

Please sign in to comment.