using ProtoCSStruct; using Sog; using System; using System.Collections.Generic; using System.Linq; namespace Game { /// /// 活动榜 /// public class ActRankTigger { private static Action[] m_actRank_Event = new Action[((int)ActRankType.Size)]; public static void RegisterAll() { m_actRank_Event[(int)ActRankType.None] = TiggerNone; m_actRank_Event[(int)ActRankType.MainlandLevel] = TiggerMainLand; } /// /// 单个触发 /// /// /// public static void TiggerActRank(PlayerOnGame player, ActRankType type, int score, bool updateData = false) => m_actRank_Event[(int)type](player, score, updateData); //整体触发 public static void TiggerNone(PlayerOnGame player, int num, bool updateData = false) { TraceLog.Error("PopBagCondition.TiggerNone select none player:{0}", player.UserID); } public static void TiggerMainLand(PlayerOnGame player, int mainland, bool updateData = false) { if (mainland <= 0) return; TraceLog.Trace("PopBagCondition.TiggerMainLand select player:{0} mainlan:{1}", player.UserID, mainland); } } }