Example #1
0
        /// <summary>
        /// Checks to see if a particular DLC is active and enabled.
        /// </summary>
        /// <param name="dlcID">The DLC ID to check.</param>
        /// <returns>true if it is turned on, or false otherwise.</returns>
        public static bool IsDlcEnabled(string dlcID)
        {
            bool enabled;

            if (string.IsNullOrEmpty(dlcID))
            {
                enabled = true;
            }
            else if (!DLC_ENABLED.TryGetValue(dlcID, out enabled))
            {
                enabled = DlcManager.IsContentSettingEnabled(dlcID);
                DLC_ENABLED.Add(dlcID, enabled);
            }
            return(enabled);
        }