Exemplo n.º 1
0
        public static void SendUserList(UserObject userobj)
        {
            userobj.SendPacket(AresTcpPackets.UserListBotItem());
            Users.ForEach(x => { if (x.LoggedIn && x.Vroom == userobj.Vroom)
                                 {
                                     userobj.SendPacket(AresTcpPackets.UserListItem(x));
                                 }
                          });
            userobj.SendPacket(AresTcpPackets.UserListEnd());

            Users.ForEach(x =>
            {
                if (x.LoggedIn && x.Vroom == userobj.Vroom)
                {
                    if (x.Avatar.Length > 0)
                    {
                        userobj.SendPacket(AresTcpPackets.Avatar(x));
                    }

                    if (!String.IsNullOrEmpty(x.PersonalMessage))
                    {
                        userobj.SendPacket(AresTcpPackets.PersonalMessage(x));
                    }
                }
            });
        }
Exemplo n.º 2
0
        public static void SendUserFeatures(UserObject userobj)
        {
            Users.ForEach(x =>
            {
                if (x.LoggedIn && x.Vroom == userobj.Vroom && x.ID != userobj.ID)
                {
                    if (userobj.Avatar.Length > 0)
                    {
                        x.SendPacket(AresTcpPackets.Avatar(userobj));
                    }

                    if (!String.IsNullOrEmpty(userobj.PersonalMessage))
                    {
                        x.SendPacket(AresTcpPackets.PersonalMessage(userobj));
                    }
                }
            });
        }