1 #ifndef OPENMW_ESM_CONTROLSSTATE_H 2 #define OPENMW_ESM_CONTROLSSTATE_H 3 4 namespace ESM 5 { 6 class ESMReader; 7 class ESMWriter; 8 9 // format 0, saved games only 10 11 struct ControlsState 12 { 13 ControlsState(); 14 15 enum Flags 16 { 17 ViewSwitchDisabled = 0x1, 18 ControlsDisabled = 0x4, 19 JumpingDisabled = 0x1000, 20 LookingDisabled = 0x2000, 21 VanityModeDisabled = 0x4000, 22 WeaponDrawingDisabled = 0x8000, 23 SpellDrawingDisabled = 0x10000 24 }; 25 26 bool mViewSwitchDisabled; 27 bool mControlsDisabled; 28 bool mJumpingDisabled; 29 bool mLookingDisabled; 30 bool mVanityModeDisabled; 31 bool mWeaponDrawingDisabled; 32 bool mSpellDrawingDisabled; 33 34 void load (ESMReader &esm); 35 void save (ESMWriter &esm) const; 36 }; 37 } 38 39 #endif 40