|
@@ -0,0 +1,43 @@
|
|
|
+using System.Collections;
|
|
|
+using System.Collections.Generic;
|
|
|
+using LitJson;
|
|
|
+using UnityEngine;
|
|
|
+
|
|
|
+public enum GiftType
|
|
|
+{
|
|
|
+ 金币=0,
|
|
|
+ 钻石 = 1,
|
|
|
+ 礼包 = 2,
|
|
|
+ 花朵 = 3,
|
|
|
+ 服装 = 4,
|
|
|
+ 开垦土地=5,
|
|
|
+}
|
|
|
+
|
|
|
+public class ThanksGift
|
|
|
+{
|
|
|
+ #region Config
|
|
|
+
|
|
|
+ private static Dictionary<int, List<KV<GiftType, int>>> GiftDictionary = new Dictionary<int, List<KV<GiftType, int>>>();
|
|
|
+ private static Dictionary<char, GiftType> TypeDictionary = new Dictionary<char, GiftType>
|
|
|
+ {
|
|
|
+ {'g', GiftType.金币},
|
|
|
+ {'d', GiftType.钻石},
|
|
|
+ {'p', GiftType.礼包},
|
|
|
+ {'f', GiftType.花朵},
|
|
|
+ {'c', GiftType.服装},
|
|
|
+ {'s', GiftType.开垦土地},
|
|
|
+ };
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ public static void GetGiftList(JsonData jsonData)
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ private static float CloseRatio = 0.25f;
|
|
|
+ public static void Test(int packID)
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+}
|