button_switcher.h 452 B

123456789101112131415161718192021222324
  1. class idButtonSwitcher : public idAnimated
  2. {
  3. public:
  4. CLASS_PROTOTYPE( idButtonSwitcher );
  5. void Spawn( void );
  6. void Save( idSaveGame *savefile ) const;
  7. void Restore( idRestoreGame *savefile );
  8. //virtual void Think( void );
  9. void OnFrob( idEntity* activator );
  10. private:
  11. int state;
  12. bool active;
  13. void Event_buttonswitcheractivate(int value);
  14. void CallScript(const char* name);
  15. };