Scripting scheduler is now paused while pause menu is shown
[supertux.git] / src / scripting / time_scheduler.hpp
index e3bf895..c431f14 100644 (file)
@@ -41,6 +41,8 @@ public:
 
   static TimeScheduler* instance;
 
+  void set_pause(bool paused);
+
 private:
   struct ScheduleEntry {
     /// weak reference to the squirrel vm object
@@ -54,12 +56,14 @@ private:
       return wakeup_time > other.wakeup_time;
     }
   };
-  
+
   typedef std::vector<ScheduleEntry> ScheduleHeap;
   ScheduleHeap schedule;
+  bool paused;
+  float last_update; 
+  float internal_time;
 };
 
 }
 
 #endif
-