1234567891011121314151617181920212223242526272829303132333435 |
- using CommonLang;
- using CommonLang.Property;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace XmdsServerNode.CheatingDeath
- {
- /// <summary>
- /// 反作弊相关配置
- /// </summary>
- public class CheatingDeathConfig
- {
- [Desc("允许检测位移作弊")]
- public static bool ENABLE_MOVE_SPEED_CHECKER = true;
- [Desc("位移异常累加总和")]
- public static float TOTAL_EXCEPTION_MOVE_DISTANCE_LIMIT = 3.0f;
- [Desc("位移异常总和")]
- public static int TOTAL_EXCEPTION_COUNT = 2;
- [Desc("作弊者锁定时间")]
- public static int CHEATER_LOCK_TIME_MS = 15000;
- public static void Load(Properties cfg)
- {
- if (cfg != null)
- {
- cfg.LoadStaticFields(typeof(CheatingDeathConfig));
- }
- }
- }
- }
|