SourceMod SDK  1.7
SourceMod::IMapTimer Class Referenceabstract

Interface for map timers. More...

#include <public/ITimerSystem.h>

Public Member Functions

virtual int GetMapTimeLimit ()=0
 
virtual void ExtendMapTimeLimit (int extra_time)=0
 
virtual void SetMapTimerStatus (bool enabled)=0
 

Detailed Description

Interface for map timers.

Member Function Documentation

virtual void SourceMod::IMapTimer::ExtendMapTimeLimit ( int  extra_time)
pure virtual

Extends the map limit (either positively or negatively) in seconds.

Parameters
extra_timeTime to extend map by. If 0, the map will be set to have no time limit.
virtual int SourceMod::IMapTimer::GetMapTimeLimit ( )
pure virtual

Returns the current map time limit in seconds.

Returns
Time limit, in seconds, or 0 if there is no limit.
virtual void SourceMod::IMapTimer::SetMapTimerStatus ( bool  enabled)
pure virtual

Tells the map timer whether it is being used or not.

Map timers are automatically enabled when they are set, and automatically disabled if being un-set.

Parameters
enabledTrue if enabling, false if disabling.

The documentation for this class was generated from the following file: