From 6beea42305d7bae180f5ec6769f3e9daca3d849c Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期一, 04 三月 2019 11:59:26 +0800
Subject: [PATCH] 3335 修改报错

---
 System/MainInterfacePanel/OffLineOnHookModel.cs |  151 +++++++++++++++++++++++++-------------------------
 1 files changed, 76 insertions(+), 75 deletions(-)

diff --git a/System/MainInterfacePanel/OffLineOnHookModel.cs b/System/MainInterfacePanel/OffLineOnHookModel.cs
index 6b2c19c..9fe2195 100644
--- a/System/MainInterfacePanel/OffLineOnHookModel.cs
+++ b/System/MainInterfacePanel/OffLineOnHookModel.cs
@@ -1,75 +1,76 @@
-锘�//--------------------------------------------------------
-//    [Author]:           绗簩涓栫晫
-//    [  Date ]:           Wednesday, January 03, 2018
-//--------------------------------------------------------
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-using TableConfig;
-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;//鐜╁绛夌骇
-
-    }
-
-
-    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);
-                    }
-                }
-            }
-        }
-    }
-
-}
-
-
-
+锘�//--------------------------------------------------------
+//    [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);
+                    }
+                }
+            }
+        }
+    }
+
+}
+
+
+

--
Gitblit v1.8.0