少年修仙传客户端代码仓库
client_Zxw
2019-01-21 6c5d1158b5ed64e376d61fcb416463f1e23f190c
5927 【前端】【1.5.100】XX巡礼
4个文件已添加
1个文件已修改
163 ■■■■■ 已修改文件
System/OpenServerActivity/SpringFestivalModel.cs 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/OpenServerActivity/SpringFestivalModel.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/OpenServerActivity/SpringFestivalWin.cs 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/OpenServerActivity/SpringFestivalWin.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Welfare/OperationTimeHepler.cs 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/OpenServerActivity/SpringFestivalModel.cs
New file
@@ -0,0 +1,40 @@
//--------------------------------------------------------
//    [Author]:           第二世界
//    [  Date ]:           Monday, January 21, 2019
//--------------------------------------------------------
using System;
using System.Collections.Generic;
using TableConfig;
using Snxxz.UI;
using System.Linq;
[XLua.LuaCallCSharp]
//春节活动巡礼
public class SpringFestivalModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
{
    public override void Init()
    {
    }
    public void OnBeforePlayerDataInitialize()
    {
    }
    public void OnPlayerLoginOk()
    {
    }
    public override void UnInit()
    {
    }
}
System/OpenServerActivity/SpringFestivalModel.cs.meta
New file
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: e745d55fc89be58489c27c9c7b292b0a
timeCreated: 1548042965
licenseType: Free
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant:
System/OpenServerActivity/SpringFestivalWin.cs
New file
@@ -0,0 +1,66 @@
//--------------------------------------------------------
//    [Author]:           第二世界
//    [  Date ]:           Monday, January 21, 2019
//--------------------------------------------------------
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TableConfig;
using EnhancedUI.EnhancedScroller;
namespace Snxxz.UI {
    public class SpringFestivalWin : Window
    {
        //春节巡礼
        #region Built-in
        [XLua.Hotfix]
        [SerializeField]
        ScrollerController m_ScrollerController1;//天
        [SerializeField] ScrollerController m_ScrollerController2;//列表
        [SerializeField] Text m_TextIntegral;//当前积分
        [SerializeField] GameObject m_One;
        [SerializeField] GameObject m_Two;
        [SerializeField] OpenServiceItem m_OpenServiceItemA;
        [SerializeField] OpenServiceItem m_OpenServiceItemA1;
        [SerializeField] OpenServiceItem m_OpenServiceItemB1;
        DailyQuestModel dailymodel { get { return ModelCenter.Instance.GetModel<DailyQuestModel>(); } }
        List<int> SortList = new List<int>();
        protected override void BindController()
        {
            //m_ScrollerController1.OnRefreshCell += OnRefreshGridCell_1;
            //m_ScrollerController2.OnRefreshCell += OnRefreshGridCell_2;
        }
        protected override void AddListeners()
        {
        }
        protected override void OnPreOpen()
        {
        }
        protected override void OnAfterOpen()
        {
        }
        protected override void OnPreClose()
        {
        }
        protected override void OnAfterClose()
        {
        }
        #endregion
    }
}
System/OpenServerActivity/SpringFestivalWin.cs.meta
New file
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 3f29b1e883e6d9b4d8eeac6532685502
timeCreated: 1548041885
licenseType: Free
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant:
System/Welfare/OperationTimeHepler.cs
@@ -489,6 +489,38 @@
                }
            }
        }
        /// <summary>
        /// 春节巡礼
        /// </summary>
        /// <param name="package"></param>
        public void SpringFestival(HAA0A_tagMCWeekPartyInfo package)
        {
            OperationBase operation = null;
            operationDict.TryGetValue(Operation.SpringFestival, out operation);
            if (string.IsNullOrEmpty(package.StartDate) || string.IsNullOrEmpty(package.EndtDate))
            {
                ForceStopOperation(Operation.SpringFestival);
            }
            else
            {
                if (operation == null)
                {
                    operation = new EventDaysTime();
                    operationDict.Add(Operation.SpringFestival, operation);
                }
                operation.Reset();
                operation.startDate = ParseOperationDate(package.StartDate);
                operation.endDate = ParseOperationDate(package.EndtDate);
                operation.limitLv = package.LimitLV;
                operation.dayReset = package.IsDayReset == 1;
                operation.resetType = package.ResetType;
                operation.inAdvanceMinute = package.AdvanceMinutes;
                if (operationTimeUpdateEvent != null)
                {
                    operationTimeUpdateEvent(Operation.SpringFestival);
                }
            }
        }
        void ForceStopOperation(Operation operationType)
        {
            if (operationDict.ContainsKey(operationType))
@@ -792,6 +824,7 @@
        WishingWellInfo, //许愿池
        AccumulateRecharge,//累计充值
        LoginReward,//登录奖励
        SpringFestival,//春节巡礼
        max,
    }
}