//--------------------------------------------------------
|
// [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);
|
}
|
}
|
}
|
}
|
}
|
|
}
|
|
|
|