using System.Collections.Generic; namespace vnxbqy.UI { public class PhantasmPavilionChatExpressionHandler : IPhantasmPavilionTabHandler { PhantasmPavilionModel model { get { return ModelCenter.Instance.GetModel(); } } public string GetDescriptive(int id) { return EmojiPackConfig.Get(id).Descriptive; } public int GetExpireMinutes(int id) { return EmojiPackConfig.Get(id).ExpireMinutes; } public string GetImage(int id) { return EmojiPackConfig.Get(id).Image; } public string GetName(int id) { return EmojiPackConfig.Get(id).Name; } public int GetSortNum(int id) { return EmojiPackConfig.Get(id).SortNum; } public List GetTableKeys() { return model.StringListToIntList(EmojiPackConfig.GetKeys()); } public int GetUnlockDefault(int id) { return EmojiPackConfig.Get(id).UnlockDefault; } public bool Has(int id) { return EmojiPackConfig.Has(id); } public void SendStarUPPack(int id) { } public void SendUsePack(int id) { model.SendCA230SetChatBubbleBox(id); } public bool TryGetAddStarAttr(int id, int star, out int[] addStarAttrTypeArr, out int[] addStarAttrValueArr) { addStarAttrTypeArr = new int[0]; addStarAttrValueArr = new int[0]; return false; } public bool TryGetEffectID(int id, out int effectID) { effectID = 0; if (!EmojiPackConfig.Has(id)) return false; EmojiPackConfig config = EmojiPackConfig.Get(id); if (!EffectConfig.Has(config.EffectID)) return false; effectID = config.EffectID; return true; } public bool TryGetMaxStarLV(int id, out int maxStarLV) { maxStarLV = 0; return false; } public bool TryGetStarUpNeedItem(int id, int star, out int itemId, out int count) { itemId = 0; count = 0; return false; } public bool TryGetUnLockAttr(int id, out int[] lightAttrTypeArr, out int[] lightAttrValueArr) { lightAttrTypeArr = new int[0]; lightAttrValueArr = new int[0]; return false; } public bool TryGetUnLockNeedItem(int id, out int itemId, out int count) { itemId = 0; count = 0; if (!EmojiPackConfig.Has(id)) return false; EmojiPackConfig config = EmojiPackConfig.Get(id); if (config.UnlockNeedItemList.IsNullOrEmpty()) return false; itemId = config.UnlockNeedItemList[0][0]; count = config.UnlockNeedItemList[0][1]; return true; } } }