From d28c8c44cb757cfc965a56e8923152357933ccc2 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期五, 09 十一月 2018 21:03:10 +0800
Subject: [PATCH] 4697 【前端】【代码、配置优化】【1.3】部分关于守护的配置从功能配置表转移,新增守护表
---
System/Guard/GuardModel.cs | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/System/Guard/GuardModel.cs b/System/Guard/GuardModel.cs
index 275adc4..f9ffbb8 100644
--- a/System/Guard/GuardModel.cs
+++ b/System/Guard/GuardModel.cs
@@ -136,12 +136,49 @@
}
}
+ #region 閰嶇疆
+ public float speed { get; private set; }
+ public float pickUpViewRange { get; private set; }
+ public float pickUpAreaRange { get; private set; }
+ public float traceRange { get; private set; }
+ public float impendRange { get; private set; }
+ public float idleTimeMin { get; private set; }
+ public float idleTimeMax { get; private set; }
+ public float stopAnimationSpeed { get; private set; }
+ public float height { get; private set; }
+ public float pickUpSfxSpeed { get; private set; }
+ public float resetDistance { get; private set; }
+
void ParseConfig()
{
var config = Config.Instance.Get<FuncConfigConfig>("XjmjGuardian");
fairyLandGuardItems.AddRange(ConfigParse.GetMultipleStr<int>(config.Numerical1));
fairyLandGuardItems.Sort(Compare);
+
+ config = Config.Instance.Get<FuncConfigConfig>("GuardianSpeed");
+ speed = float.Parse(config.Numerical1);
+ stopAnimationSpeed = float.Parse(config.Numerical2);
+ pickUpSfxSpeed = float.Parse(config.Numerical3);
+
+ config = Config.Instance.Get<FuncConfigConfig>("GuardianPickupRange");
+ pickUpViewRange = float.Parse(config.Numerical1);
+ pickUpAreaRange = float.Parse(config.Numerical2);
+
+ config = Config.Instance.Get<FuncConfigConfig>("GuardianTraceRange");
+ traceRange = float.Parse(config.Numerical1);
+ resetDistance = float.Parse(config.Numerical2);
+
+ config = Config.Instance.Get<FuncConfigConfig>("GuardianImpendRange");
+ impendRange = float.Parse(config.Numerical1);
+
+ config = Config.Instance.Get<FuncConfigConfig>("GuardianRandomIdle");
+ idleTimeMin = float.Parse(config.Numerical1);
+ idleTimeMax = float.Parse(config.Numerical2);
+
+ config = Config.Instance.Get<FuncConfigConfig>("GuardianHigh");
+ height = float.Parse(config.Numerical1);
}
+ #endregion
int Compare(int x, int y)
{
--
Gitblit v1.8.0