mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-06 19:01:21 +03:00
Make deleted flag a parameter of load/save methods (instead of a record member) in ESM records
(cherry picked from commit 4a16eba716
)
Conflicts:
components/esm/loadland.cpp
components/esm/loadland.hpp
This commit is contained in:
parent
7013ba751c
commit
82363bf318
90 changed files with 715 additions and 1051 deletions
|
@ -60,12 +60,8 @@ struct BodyPart
|
|||
BYDTstruct mData;
|
||||
std::string mId, mModel, mRace;
|
||||
|
||||
bool mIsDeleted;
|
||||
|
||||
BodyPart();
|
||||
|
||||
void load(ESMReader &esm);
|
||||
void save(ESMWriter &esm) const;
|
||||
void load(ESMReader &esm, bool &isDeleted);
|
||||
void save(ESMWriter &esm, bool isDeleted = false) const;
|
||||
|
||||
void blank();
|
||||
///< Set record to default state (does not touch the ID).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue