12345678910111213141516171819202122232425262728 |
- using CommonLang.Property;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace CommonTickBattle.Battle
- {
- public class TBConfig
- {
- [Desc("主游戏更新时间", "MAIN")]
- public uint GAME_FIXED_UPDATE_INTERVAL_MS = 33;
- [Desc("Local->Host 超时时间", "MAIN")]
- public uint GAME_REQUEST_LAGGING_MS = 3000;
- [Desc("Host->Local 超时时间", "MAIN")]
- public uint GAME_RESPONSE_LAGGING_MS = 2000;
- public virtual TBConfig Clone()
- {
- TBConfig cfg = new TBConfig();
- cfg.GAME_FIXED_UPDATE_INTERVAL_MS = this.GAME_FIXED_UPDATE_INTERVAL_MS;
- cfg.GAME_REQUEST_LAGGING_MS = this.GAME_REQUEST_LAGGING_MS;
- cfg.GAME_RESPONSE_LAGGING_MS = this.GAME_RESPONSE_LAGGING_MS;
- return cfg;
- }
- }
- }
|