Timer.cs 506 B

12345678910111213141516171819202122232425
  1. namespace Server.MirEnvir
  2. {
  3. public class Timer
  4. {
  5. private static Envir Envir
  6. {
  7. get { return Envir.Main; }
  8. }
  9. public string Key;
  10. public byte Type;
  11. public int Seconds;
  12. public long RelativeTime;
  13. public Timer(string key, int seconds, byte type)
  14. {
  15. Key = key;
  16. Seconds = seconds;
  17. Type = type;
  18. RelativeTime = Envir.Time + (seconds * Settings.Second);
  19. }
  20. }
  21. }