struct TimeUntil

Summary

A convenience struct to easily manage a time countdown, based on <see cref="P:Sandbox.Time.Now" />.<br /><br /> Typical usage would see you assigning to a variable of this type a necessary amount of seconds. Then the struct would return the time countdown, or can be used as a bool i.e.: <code> TimeUntil nextAttack = 10; if ( nextAttack ) { /*Do something*/ } </code>

User Comments