From 2c6123a7605913bdbf3984b77fbe04446eb400c8 Mon Sep 17 00:00:00 2001
From: client_Lhy <995049470@qq.com>
Date: 星期四, 27 六月 2019 11:01:03 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Skill/SkillModel.cs | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/System/Skill/SkillModel.cs b/System/Skill/SkillModel.cs
index f5e1725..8de9ba2 100644
--- a/System/Skill/SkillModel.cs
+++ b/System/Skill/SkillModel.cs
@@ -16,6 +16,12 @@
ParseConfig();
FuncOpen.Instance.OnFuncStateChangeEvent += OnFuncStateChangeEvent;
TaskModel.Event_TaskInformation += TaskInformationUpdate;
+
+ ISkillMatch skillMatch = LuaUtility.Global.Get<ISkillMatch>("SkillMatchModel");
+ if (skillMatch != null)
+ {
+ skillMatch.onSkillMatchPageUpdate += OnSkillMatchPageUpdate;
+ }
}
public override void UnInit()
@@ -708,6 +714,25 @@
//UpdateTaskHoleRedpoint();
}
}
+
+ public event Action onSkillMatchPageUpdate;
+ private void OnSkillMatchPageUpdate()
+ {
+ if (onSkillMatchPageUpdate != null)
+ {
+ onSkillMatchPageUpdate();
+ }
+ }
+
+ public List<int> GetSkillMatchs()
+ {
+ ISkillMatch skillMatch = LuaUtility.Global.Get<ISkillMatch>("SkillMatchModel");
+ if (skillMatch != null)
+ {
+ return skillMatch.GetSkills();
+ }
+ return null;
+ }
}
public struct PassSkillLimit
@@ -765,5 +790,12 @@
}
}
}
+
+ [XLua.CSharpCallLua]
+ public interface ISkillMatch
+ {
+ List<int> GetSkills();
+ event Action onSkillMatchPageUpdate;
+ }
}
--
Gitblit v1.8.0