コード例 #1
0
        public PlaylistManager() : base()
        {
            Manager = this;

            //if (Call<int>("getDvarInt", "playlist_enabled", 1) == 0)
            if (_.GetDvarInt("playlist_enabled", 1) == 0)
            {
                return;
            }

            OnNotify("match_ending_very_soon", () =>
            {
                SayNextMap();
            });

            OnInterval(10000, () =>
            {
                ApplyVariables(Rules);

                if (GameType != null)
                {
                    ApplyVariables(GameType.Rules);
                }

                if (Playlist != null)
                {
                    ApplyVariables(Playlist.Rules);
                }

                return true;
            });
        }
コード例 #2
0
        public PlaylistManager() : base()
        {
            Manager = this;

            //if (Call<int>("getDvarInt", "playlist_enabled", 1) == 0)
            if (_.GetDvarInt("playlist_enabled", 1) == 0)
            {
                return;
            }

            OnNotify("match_ending_very_soon", () =>
            {
                SayNextMap();
            });

            OnInterval(10000, () =>
            {
                ApplyVariables(Rules);

                if (GameType != null)
                {
                    ApplyVariables(GameType.Rules);
                }

                if (Playlist != null)
                {
                    ApplyVariables(Playlist.Rules);
                }

                return(true);
            });
        }