|
|
@ -271,23 +271,34 @@ private:
|
|
|
|
class ConvertPCDT : public Converter
|
|
|
|
class ConvertPCDT : public Converter
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
ConvertPCDT() : mFirstPersonCam(true) {}
|
|
|
|
ConvertPCDT()
|
|
|
|
|
|
|
|
: mFirstPersonCam(true),
|
|
|
|
|
|
|
|
mTeleportingEnabled(true),
|
|
|
|
|
|
|
|
mLevitationEnabled(true)
|
|
|
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
|
virtual void read(ESM::ESMReader &esm)
|
|
|
|
virtual void read(ESM::ESMReader &esm)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
PCDT pcdt;
|
|
|
|
PCDT pcdt;
|
|
|
|
pcdt.load(esm);
|
|
|
|
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)
|
|
|
|
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.startRecord(ESM::REC_CAM_);
|
|
|
|
esm.writeHNT("FIRS", mFirstPersonCam);
|
|
|
|
esm.writeHNT("FIRS", mFirstPersonCam);
|
|
|
|
esm.endRecord(ESM::REC_CAM_);
|
|
|
|
esm.endRecord(ESM::REC_CAM_);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
bool mFirstPersonCam;
|
|
|
|
bool mFirstPersonCam;
|
|
|
|
|
|
|
|
bool mTeleportingEnabled;
|
|
|
|
|
|
|
|
bool mLevitationEnabled;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class ConvertCNTC : public Converter
|
|
|
|
class ConvertCNTC : public Converter
|
|
|
|