|
@@ -1,16 +1,13 @@
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using ET;
|
|
|
+using FairyGUI;
|
|
|
|
|
|
namespace GFGGame
|
|
|
{
|
|
|
|
|
|
public class GuideDataManager
|
|
|
{
|
|
|
- // //public static int currentGuideId;
|
|
|
- // private static Dictionary<int, GuideData> _dataDic = new Dictionary<int, GuideData>();
|
|
|
- // //本次登录引导的id缓存
|
|
|
- // private static Dictionary<int, bool> _guideDicAtThisLogin = new Dictionary<int, bool>();
|
|
|
|
|
|
private static Dictionary<int, Dictionary<int, int>> _guideDicIndex = new Dictionary<int, Dictionary<int, int>>();
|
|
|
public static int _currentGuideId;
|
|
@@ -29,22 +26,6 @@ namespace GFGGame
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- // public static void InitServerData(List<GuideData> list)
|
|
|
- // {
|
|
|
- // currentGuideId = 0;
|
|
|
- // _dataDic.Clear();
|
|
|
- // _guideDicAtThisLogin.Clear();
|
|
|
- // if (list != null)
|
|
|
- // {
|
|
|
- // foreach (GuideData data in list)
|
|
|
- // {
|
|
|
- // _dataDic.Add(data.guideId, data);
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
public static async ETTask<bool> TryCompleteGuide(int guideId)
|
|
|
{
|
|
|
if (GameGlobal.skipGuide)
|
|
@@ -54,22 +35,13 @@ namespace GFGGame
|
|
|
if (currentGuideId == guideId)
|
|
|
{
|
|
|
LogServerHelper.SendNodeLog(GuideDataManager.currentGuideId * 100 + 2);
|
|
|
-
|
|
|
- return await StorageSProxy.ReqSetClientValue(ConstStorageId.STORAGE_GUIDE + guideId, 1);
|
|
|
+ bool result = await StorageSProxy.ReqSetClientValue(ConstStorageId.STORAGE_GUIDE + guideId, 1);
|
|
|
+ return result;
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
|
|
|
- // public static bool CheckGuideIsCompletedAtThisLogin(int guideId)
|
|
|
- // {
|
|
|
- // if (_guideDicAtThisLogin.ContainsKey(guideId))
|
|
|
- // {
|
|
|
- // return _guideDicAtThisLogin[guideId];
|
|
|
- // }
|
|
|
- // return false;
|
|
|
- // }
|
|
|
-
|
|
|
public static int _currentGuideIdIndex;
|
|
|
|
|
|
public static int currentGuideIdIndex
|