public static void AddGuildMember(MobileGuildMember mobileGuildMember) { if (!GuildData.instance.m_guildMemberDictionary.ContainsKey(mobileGuildMember.Guid)) { GuildData.GuildMember guildMember = new GuildData.GuildMember(); guildMember.m_mobileGuildMember = mobileGuildMember; guildMember.m_isLoggedIn = true; GuildData.instance.m_guildMemberDictionary.Add(mobileGuildMember.Guid, guildMember); } }
private void MobileClientGuildMembersOnlineHandler(MobileClientGuildMembersOnline msg) { using (IEnumerator <MobileGuildMember> enumerator = Enumerable.AsEnumerable <MobileGuildMember>(msg.Members).GetEnumerator()) { while (enumerator.MoveNext()) { MobileGuildMember current = enumerator.get_Current(); Debug.Log(string.Concat(new string[] { "Guild member ", current.Name, " (", current.Guid, ") is online." })); GuildData.AddGuildMember(current); } } this.allPanels.adventureMapPanel.m_guildChatSlider_Bottom.UpdateGuildMateRoster(); }