Config.cs 863 B

12345678910111213141516171819202122232425262728
  1. using CommonLang.Property;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace CommonTickBattle.Battle
  7. {
  8. public class TBConfig
  9. {
  10. [Desc("主游戏更新时间", "MAIN")]
  11. public uint GAME_FIXED_UPDATE_INTERVAL_MS = 33;
  12. [Desc("Local->Host 超时时间", "MAIN")]
  13. public uint GAME_REQUEST_LAGGING_MS = 3000;
  14. [Desc("Host->Local 超时时间", "MAIN")]
  15. public uint GAME_RESPONSE_LAGGING_MS = 2000;
  16. public virtual TBConfig Clone()
  17. {
  18. TBConfig cfg = new TBConfig();
  19. cfg.GAME_FIXED_UPDATE_INTERVAL_MS = this.GAME_FIXED_UPDATE_INTERVAL_MS;
  20. cfg.GAME_REQUEST_LAGGING_MS = this.GAME_REQUEST_LAGGING_MS;
  21. cfg.GAME_RESPONSE_LAGGING_MS = this.GAME_RESPONSE_LAGGING_MS;
  22. return cfg;
  23. }
  24. }
  25. }