少年修仙传客户端代码仓库
client_Wu Xijin
2019-06-13 033958214c0b16d7e7b93cc821b018c295251867
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//--------------------------------------------------------
//    [Author]:           第二世界
//    [  Date ]:           Wednesday, January 03, 2018
//--------------------------------------------------------
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
 
using UnityEngine.UI;
 
namespace Snxxz.UI {
    public class MCTJGInfoClass
    {
        public int Exp1;//经验
        public int Exp2;//超亿经验;
        public int Time;//使用时间秒
        public int PurpleEquip;//产出紫装数量
        public int OrangeEquip;//产出橙装数量
        public int EatPurpleEquip;//吞噬紫装数量
        public int GiveCount;//获得炼丹材料数量
        public int PlayerLV;//玩家等级
 
    }
 
 
    [XLua.LuaCallCSharp]
    public class OffLineOnHookModel : Model, IBeforePlayerDataInitialize
    {
        public MCTJGInfoClass mCTJGInfoClass = new MCTJGInfoClass();
       public  Dictionary<int, int> DicItem = new Dictionary<int, int>();
        public bool IsOpenOffLineOnHookBool = false;
        public override void Init()
        {
           
        }
 
        public void OnBeforePlayerDataInitialize()
        {
            IsOpenOffLineOnHookBool = false;
        }
 
        public override void UnInit()
        {
            
        }
 
        public void MCTJGInfo(HB409_tagMCTJGInfo info)
        {
            IsOpenOffLineOnHookBool = true;
            mCTJGInfoClass.Exp1 = (int)info.Exp1;
            mCTJGInfoClass.Exp2 = (int)info.Exp2;
            mCTJGInfoClass.Time = (int)info.Times;
            mCTJGInfoClass.PurpleEquip = (int)info.PurpleEquip;
            mCTJGInfoClass.OrangeEquip = (int)info.OrangeEquip;
            mCTJGInfoClass.EatPurpleEquip = (int)info.EatPurpleEquip;
            mCTJGInfoClass.PlayerLV = (int)info.BeforeLV;
            mCTJGInfoClass.GiveCount = (int)info.GiveCnt;
            DicItem.Clear();
            if (info.Items.Length > 0)
            {
                for (int i = 0; i < info.Items.Length; i++)
                {
                    if (!DicItem.ContainsKey((int)info.Items[i].ItemID))
                    {
                        DicItem.Add((int)info.Items[i].ItemID, (int)info.Items[i].Count);
                    }
                }
            }
        }
    }
 
}