public void UpdateIllustration(IllustrationProto proto) { for (int i = 0, count = proto.stars.Count; i < count; i++) { string key = string.Format("{0},{1}", proto.heroNo, proto.stars[i]); if (!IllustrationDictionary.ContainsKey(key)) { IllustrationDictionary.Add(key, true); } } }
public void UpdateIllustrationList(List <IllustrationProto> protos, bool clear) { if (clear) { IllustrationDictionary.Clear(); } for (int i = 0, count = protos.Count; i < count; i++) { UpdateIllustration(protos[i]); } }
public bool isHeroGotInIllustration(int heroModelId, int star) { string key = string.Format("{0},{1}", heroModelId, star); return(IllustrationDictionary.ContainsKey(key)); }