mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-22 12:39:59 +00:00
made object state polymorphic
This commit is contained in:
parent
a623f03850
commit
e0537a3253
@ -46,4 +46,6 @@ void ESM::ObjectState::save (ESMWriter &esm, bool inInventory) const
|
||||
esm.writeHNT ("POS_", mPosition, 24);
|
||||
esm.writeHNT ("LROT", mLocalRotation, 12);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ESM::ObjectState::~ObjectState() {}
|
@ -26,8 +26,10 @@ namespace ESM
|
||||
ESM::Position mPosition;
|
||||
float mLocalRotation[3];
|
||||
|
||||
void load (ESMReader &esm);
|
||||
void save (ESMWriter &esm, bool inInventory = false) const;
|
||||
virtual void load (ESMReader &esm);
|
||||
virtual void save (ESMWriter &esm, bool inInventory = false) const;
|
||||
|
||||
virtual ~ObjectState();
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user