| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.LuaCallCSharp]
|
| | | public class SkillModel : Model, IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | |
|
| | | public class SkillModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | public override void Init()
|
| | | {
|
| | | 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()
|
| | |
| | | public int minTaskHole { get; private set; }
|
| | | public int maxTaskHole { get; private set; }
|
| | |
|
| | | public bool skillMatchRedpointable
|
| | | {
|
| | | public bool skillMatchRedpointable {
|
| | | get { return LocalSave.GetBool("SkillMatchRedpointable_" + PlayerDatas.Instance.baseData.PlayerID); }
|
| | | set
|
| | | {
|
| | | set {
|
| | | LocalSave.SetBool("SkillMatchRedpointable_" + PlayerDatas.Instance.baseData.PlayerID, value);
|
| | | UpdateSkillMatchRedpoint();
|
| | | }
|
| | |
| | | if (xpSkillsDic.ContainsKey(job))
|
| | | {
|
| | | return xpSkillsDic[job] == config.SkillTypeID;
|
| | | } |
| | | }
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
| | | public int skillDragId = 0;
|
| | | public float onDragDelay = 0.1f;
|
| | | private Skill m_XpSkill;
|
| | | public Skill xpSkill
|
| | | {
|
| | | get
|
| | | {
|
| | | public Skill xpSkill {
|
| | | get {
|
| | | return m_XpSkill ?? (m_XpSkill = PlayerDatas.Instance.hero.SkillMgr.Get(GetXpSkillID()));
|
| | | }
|
| | | }
|
| | |
| | | SoundPlayer.Instance.PlayUIAudio(28);
|
| | | SendEquipPassSkill(presentSltPage, _hole, _skillId);
|
| | | }
|
| | | |
| | |
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | public const string TASKHOLEKEY = "OpenSkillSlots";
|
| | |
|
| | | public int UnlockPassHole
|
| | | {
|
| | | public int UnlockPassHole {
|
| | | get { return LocalSave.GetInt(StringUtility.Contact(TASKHOLEKEY, "_", PlayerDatas.Instance.baseData.PlayerID)); }
|
| | | set { LocalSave.SetInt(StringUtility.Contact(TASKHOLEKEY, "_", PlayerDatas.Instance.baseData.PlayerID), value); }
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | RolePromoteModel m_PromoteModel;
|
| | | RolePromoteModel promoteModel
|
| | | {
|
| | | get
|
| | | {
|
| | | RolePromoteModel promoteModel {
|
| | | get {
|
| | | return m_PromoteModel ?? (m_PromoteModel = ModelCenter.Instance.GetModel<RolePromoteModel>());
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | public event Action onSkillMatchPageUpdate;
|
| | | private void OnSkillMatchPageUpdate()
|
| | |
|
| | | public void OnSkillMatchPageUpdate()
|
| | | {
|
| | | if (onSkillMatchPageUpdate != null)
|
| | | {
|
| | |
| | |
|
| | | public List<int> GetSkillMatchs()
|
| | | {
|
| | | ISkillMatch skillMatch = LuaUtility.Global.Get<ISkillMatch>("SkillMatchModel");
|
| | | if (skillMatch != null)
|
| | | {
|
| | | return skillMatch.GetSkills();
|
| | | }
|
| | | return null;
|
| | | return ILRuntimeUtility.Instance.ModelInvoke<List<int>>("SkillMatchModel", "GetSkills");
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | [XLua.CSharpCallLua]
|
| | | public interface ISkillMatch
|
| | | {
|
| | | List<int> GetSkills();
|