예제 #1
0
        /// <summary>
        /// Sets a player's banner
        /// </summary>
        static public void Social_UpdateBanner(Player player)
        {               //Got a banner?
            if (player._bannerData == null)
            {
                return;
            }

            SC_Banner banner = new SC_Banner();

            banner.player = player;

            player._client.sendReliable(banner);
        }
예제 #2
0
        /// <summary>
        /// Sends all player banners in an arena to a specific player
        /// </summary>
        static public void Social_ArenaBanners(Player player, Arena arena)
        {               //Send each player's banner
            foreach (Player plyr in player._arena.Players)
            {           //Got a banner?
                if (plyr._bannerData == null)
                {
                    continue;
                }

                SC_Banner banner = new SC_Banner();
                banner.player = plyr;

                if (plyr != player)
                {
                    player._client.sendReliable(banner);
                }
            }
        }
예제 #3
0
        /// <summary>
        /// Sends a player banner update to a list of players
        /// </summary>
        static public void Social_ArenaBanners(IEnumerable <Player> players, Player player)
        {               //Got a banner?
            if (player._bannerData == null)
            {
                return;
            }

            //Send each player's banner
            SC_Banner banner = new SC_Banner();

            banner.player = player;

            foreach (Player plyr in player._arena.Players)
            {
                if (plyr != player)
                {
                    plyr._client.sendReliable(banner);
                }
            }
        }