ZoneNodeConfig.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using CommonLang.Property;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace CommonAIServer.Node
  7. {
  8. public class ZoneNodeConfig
  9. {
  10. [Desc("主游戏更新时间 - 重要,位置更新等", "MAIN")]
  11. public int GAME_UPDATE_INTERVAL_MS = 500;
  12. [Desc("主游戏更新时间 - 普通 - AOI视野", "MAIN")]
  13. public int GAME_LOWLV_UPDATE_INTERVAL_MS = 500;
  14. [Desc("客户端消息同步范围(进视野)", "AOI")]
  15. public int CLIENT_SYNC_OBJECT_IN_RANGE = 15;
  16. [Desc("客户端消息同步范围(出视野)", "AOI")]
  17. public int CLIENT_SYNC_OBJECT_OUT_RANGE = 20;
  18. [Desc("是否测试", "TEST")]
  19. public bool TEST = true;
  20. [Desc("每隔多少时间发送服务器状态(ms)", "TEST")]
  21. public int TEST_POST_SERVER_INFO_INTERVAL_MS = 5000;
  22. public virtual ZoneNodeConfig Clone()
  23. {
  24. ZoneNodeConfig cfg = new ZoneNodeConfig();
  25. cfg.GAME_UPDATE_INTERVAL_MS = this.GAME_UPDATE_INTERVAL_MS;
  26. cfg.GAME_LOWLV_UPDATE_INTERVAL_MS = this.GAME_LOWLV_UPDATE_INTERVAL_MS;
  27. cfg.CLIENT_SYNC_OBJECT_IN_RANGE = this.CLIENT_SYNC_OBJECT_IN_RANGE;
  28. cfg.CLIENT_SYNC_OBJECT_OUT_RANGE = this.CLIENT_SYNC_OBJECT_OUT_RANGE;
  29. cfg.TEST = this.TEST;
  30. cfg.TEST_POST_SERVER_INFO_INTERVAL_MS = this.TEST_POST_SERVER_INFO_INTERVAL_MS;
  31. return cfg;
  32. }
  33. }
  34. }