Timer.cs 459 B

1234567891011121314151617181920212223242526
  1. namespace KYFramework;
  2. public class Timer : Component
  3. {
  4. private int timeZone;
  5. public int TimeZone
  6. {
  7. get
  8. {
  9. return this.timeZone;
  10. }
  11. set
  12. {
  13. this.timeZone = value;
  14. dt = dt1970.AddHours(TimeZone);
  15. }
  16. }
  17. public DateTime dt1970;
  18. public DateTime dt;
  19. public long ServerMinusClientTime { get; set; }
  20. public long FrameTime;
  21. }