Beispiel #1
0
        internal void BindClientToGroupMembers(Habbo data)
        {
            GroupMember m = null;
			List<uint> theMemberlist = new List<uint>(data.GroupList);
			foreach (uint i in theMemberlist)
            {
                m = data.GetGroupMember(i);
				if (m == null)
				{
					continue;
				}
                m.SetNewClient(this);
                this.myGroups.Add(m.Group.ID, m);
            }

            foreach (uint i in data.PendingGroupJoins)
            {
                m = ButterflyEnvironment.GetGame().GetGroupManager().GetGroup(i).GetPendingGroupUser(data.Id);
                if (m != null)
                {
                    m.SetNewClient(this);
                    this.myGroups.Add(m.Group.ID, m);
                }
            }
        }