A 2D tile-based sandbox game.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516
  1. #include "Clock.h"
  2. #include <time.h>
  3. namespace Swan {
  4. bool Clock::periodic(float secs) {
  5. if (time_ >= secs) {
  6. time_ = 0;
  7. return true;
  8. }
  9. return false;
  10. }
  11. }