void serialize(std::ostream &os);
void deSerialize(std::istream &is, std::string playername);
- bool checkModified()
+ bool checkModified() const
{
- return m_dirty;
+ return m_dirty || inventory.checkModified();
+ }
+
+ void setModified(const bool x)
+ {
+ m_dirty = x;
+ if (x == false)
+ inventory.setModified(x);
}
bool touching_ground;
bool swimming_vertical;
bool camera_barely_in_ceiling;
- u8 light;
-
Inventory inventory;
f32 movement_acceleration_default;