AntiCfg.cs 953 B

123456789101112131415161718192021
  1. 
  2. public struct AntiCheatCfg
  3. {
  4. public const float c_fTimeScaleCheckTime = 3.0f; //timescale 检测间隔(s)
  5. public const float c_fTimeSysteCheckTime = 0.0f; //系统时间 检测间隔(s)
  6. public const float c_fTimeScaleMaxValidTime = 2.0f; //最大有效速度
  7. public const float c_fTimeScaleNorlValidTime = 1.0f; //正常速度
  8. public const int c_nTimeSysteMaxDurationTime = 10; //服務器时间间隔-本地时间间隔 最大时差(s)
  9. public const float c_fErrorTime = -1.0f;
  10. public const string c_strUIPageWndId = "2100"; //错误窗口
  11. public const float c_fDeltaServerTime = 65f; //網絡延遲 大於延遲 不計算加速排除網絡延遲嚴重的誤判65 - 62 = 3s延迟)
  12. }
  13. public enum EnAntiCheatType
  14. {
  15. enSystemTime = 0, //检测系统时间
  16. enScaleTime, //检测加速速率
  17. enDefault, //必须在最下面 用于默认跟数量
  18. }