Example #1
0
        public void SendToAllWhoHaveOwnerRights(ServerMessage message)
        {
            CachedServerMessage data = new CachedServerMessage(message);

            foreach (RoomUnitUser user in this.RoomUserManager.GetRealUsers())
            {
                if (user.Session != null)
                {
                    if (this.HaveOwnerRights(user.Session))
                    {
                        user.Session.SendMessage(data);
                    }
                }
            }
        }
Example #2
0
        public void SendToAllRespectIgnores(ServerMessage message, uint senderId)
        {
            CachedServerMessage data = new CachedServerMessage(message);

            foreach (RoomUnitUser user in this.RoomUserManager.GetRealUsers())
            {
                if (user.Session.GetHabbo() != null)
                {
                    if (!user.Session.GetHabbo().IgnoredUsers.Contains(senderId))
                    {
                        user.Session.SendMessage(data);
                    }
                }
            }
        }
Example #3
0
        public void SendToAll(ServerMessage message, List <uint> ignoreList = null)
        {
            CachedServerMessage data = new CachedServerMessage(message);

            foreach (RoomUnitUser user in this.RoomUserManager.GetRealUsers())
            {
                if (user.Session.GetHabbo() != null)
                {
                    if (ignoreList == null || !ignoreList.Contains(user.Session.GetHabbo().ID))
                    {
                        user.Session.SendMessage(data);
                    }
                }
            }
        }
Example #4
0
 public WrappedServerMessage(CachedServerMessage single)
 {
     this.single = single;
 }
Example #5
0
 public WrappedServerMessage(ServerMessage single)
 {
     this.single = new CachedServerMessage(single);
 }