private void PopulatePortraitInfoCache(Hashtable data, PortraitPriority priority) { ArrayList rawPortraitInfo = Hotfix_LT.EBCore.Dot.Array("portraitInfo", data, Johny.ArrayListPool.Claim()); for (var i = 0; i < rawPortraitInfo.Count; i++) { Hashtable player = rawPortraitInfo[i] as Hashtable; SetPortrait(EB.Dot.Long("u", player, -1), EB.Dot.String("p", player, null), priority); } }
public void SetPortrait(long uid, string portraitId, PortraitPriority priority) { if (uid < 0) { return; } if (null == portraitId) { return; } _portraitInfoCache[uid] = portraitId; // TODO: cache invalidation }