1.1 --- a/public/ITimerSystem.h Sun Sep 23 16:01:12 2007 +0000
1.2 +++ b/public/ITimerSystem.h Sun Sep 23 19:33:19 2007 +0000
1.3 @@ -42,7 +42,7 @@
1.4 #include <IForwardSys.h>
1.5
1.6 #define SMINTERFACE_TIMERSYS_NAME "ITimerSys"
1.7 -#define SMINTERFACE_TIMERSYS_VERSION 1
1.8 +#define SMINTERFACE_TIMERSYS_VERSION 3
1.9
1.10 namespace SourceMod
1.11 {
1.12 @@ -63,15 +63,6 @@
1.13 virtual int GetMapTimeLimit() =0;
1.14
1.15 /**
1.16 - * Returns how much time is left in the map.
1.17 - *
1.18 - * @param time_left Pointer to store time, in seconds.
1.19 - * @return True if there is a time limit, false
1.20 - * if the time limit is 0.
1.21 - */
1.22 - virtual bool GetMapTimeLeft(int *time_left) =0;
1.23 -
1.24 - /**
1.25 * Extends the map limit (either positively or negatively) in seconds.
1.26 *
1.27 * @param extra_time Time to extend map by. If 0, the map will
1.28 @@ -194,6 +185,23 @@
1.29 * @return Universal ticked time.
1.30 */
1.31 virtual float GetTickedTime() =0;
1.32 +
1.33 + /**
1.34 + * @brief Notification that the "starting point" in the game has has
1.35 + * changed. This does not invoke MapTimeLeftChanged() automatically.
1.36 + *
1.37 + * @param offset Optional offset to add to the new time.
1.38 + */
1.39 + virtual void NotifyOfGameStart(float offset = 0.0f) =0;
1.40 +
1.41 + /**
1.42 + * @brief Returns the time left in the map.
1.43 + *
1.44 + * @param pTime Pointer to store time left, in seconds.
1.45 + * @return True on success, false if there no time limit
1.46 + * or if the time limit could not be determined.
1.47 + */
1.48 + virtual bool GetMapTimeLeft(float *pTime) =0;
1.49 };
1.50 }
1.51