Jump to content

Timers.zh

Overview
Creator: Timelord Updated: 24 Sep 2014 Tags: Global, Library Downloads: 29
Rating[?]: Rating: 1/5 (2 ratings)
View Script Download Script
(5.58 KB)
Information

Description Setup Reviews Comments

Deedee  
Rating: 0/5

Posted 13 January 2015 - 08:38 PM
Exactly what moosh said. Most beginners only import std out of habit, and by the time people start importing other directories for use in creating scripts, they likely know What the number 100 is.

No offense, but this is pretty useless.
 

Moosh  
Rating: 0/5

Edited 23 September 2014 - 10:22 PM
This header contains only functions and constants for things that can easily be done without them. I do not need a constant for the length of two and a half seconds in frames, nor do I need a function to set or check a global variable. For that matter, I don't need a global array for most cases where I'd use a timer. So not only is the header redundant, but it's only situationally useful. To put the icing on the cake, the setup instructions are longer than the header itself.

And then I just noticed this:
const int TD_100 = 100;
This is the single most redundant constant I've ever seen. And I'm the guy who once didn't know you could convert hex to decimal in ZScript and tried making constants for it.
  • Joelmacool , Twilight-Prince and HavoX like this