|
|
|
@ -271,23 +271,34 @@ private:
|
|
|
|
|
class ConvertPCDT : public Converter
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ConvertPCDT() : mFirstPersonCam(true) {}
|
|
|
|
|
ConvertPCDT()
|
|
|
|
|
: mFirstPersonCam(true),
|
|
|
|
|
mTeleportingEnabled(true),
|
|
|
|
|
mLevitationEnabled(true)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
virtual void read(ESM::ESMReader &esm)
|
|
|
|
|
{
|
|
|
|
|
PCDT pcdt;
|
|
|
|
|
pcdt.load(esm);
|
|
|
|
|
|
|
|
|
|
convertPCDT(pcdt, mContext->mPlayer, mContext->mDialogueState.mKnownTopics, mFirstPersonCam, mContext->mControlsState);
|
|
|
|
|
convertPCDT(pcdt, mContext->mPlayer, mContext->mDialogueState.mKnownTopics, mFirstPersonCam, mTeleportingEnabled, mLevitationEnabled, mContext->mControlsState);
|
|
|
|
|
}
|
|
|
|
|
virtual void write(ESM::ESMWriter &esm)
|
|
|
|
|
{
|
|
|
|
|
esm.startRecord(ESM::REC_ENAB);
|
|
|
|
|
esm.writeHNT("TELE", mTeleportingEnabled);
|
|
|
|
|
esm.writeHNT("LEVT", mLevitationEnabled);
|
|
|
|
|
esm.endRecord(ESM::REC_ENAB);
|
|
|
|
|
|
|
|
|
|
esm.startRecord(ESM::REC_CAM_);
|
|
|
|
|
esm.writeHNT("FIRS", mFirstPersonCam);
|
|
|
|
|
esm.endRecord(ESM::REC_CAM_);
|
|
|
|
|
}
|
|
|
|
|
private:
|
|
|
|
|
bool mFirstPersonCam;
|
|
|
|
|
bool mTeleportingEnabled;
|
|
|
|
|
bool mLevitationEnabled;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class ConvertCNTC : public Converter
|
|
|
|
|