|
|
@ -828,7 +828,6 @@ void StockpileSerializer::furniture_setup_other_mats()
|
|
|
|
void StockpileSerializer::write_furniture()
|
|
|
|
void StockpileSerializer::write_furniture()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
StockpileSettings::FurnitureSet *furniture= mBuffer.mutable_furniture();
|
|
|
|
StockpileSettings::FurnitureSet *furniture= mBuffer.mutable_furniture();
|
|
|
|
furniture->set_sand_bags ( mPile->settings.furniture.sand_bags );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// FURNITURE type
|
|
|
|
// FURNITURE type
|
|
|
|
using df::enums::furniture_type::furniture_type;
|
|
|
|
using df::enums::furniture_type::furniture_type;
|
|
|
@ -880,11 +879,6 @@ void StockpileSerializer::read_furniture()
|
|
|
|
const StockpileSettings::FurnitureSet furniture = mBuffer.furniture();
|
|
|
|
const StockpileSettings::FurnitureSet furniture = mBuffer.furniture();
|
|
|
|
debug() << "furniture:" <<endl;
|
|
|
|
debug() << "furniture:" <<endl;
|
|
|
|
|
|
|
|
|
|
|
|
if ( mBuffer.furniture().has_sand_bags() )
|
|
|
|
|
|
|
|
mPile->settings.furniture.sand_bags = mBuffer.furniture().sand_bags();
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
mPile->settings.furniture.sand_bags = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// type
|
|
|
|
// type
|
|
|
|
using df::enums::furniture_type::furniture_type;
|
|
|
|
using df::enums::furniture_type::furniture_type;
|
|
|
|
df::enum_traits<furniture_type> type_traits;
|
|
|
|
df::enum_traits<furniture_type> type_traits;
|
|
|
|