public static void ApplyDefines(GoldPlayerProjectSettings settings)
        {
            List <string> remove = new List <string>();
            List <string> add    = new List <string>();

            if (settings.disableInteraction)
            {
                add.Add(DISABLE_INTERACTION);
            }
            else
            {
                remove.Add(DISABLE_INTERACTION);
            }

            if (settings.disableUI)
            {
                add.Add(DISABLE_UI);
            }
            else
            {
                remove.Add(DISABLE_UI);
            }

            if (settings.disableGraphics)
            {
                add.Add(DISABLE_GRAPHICS);
            }
            else
            {
                remove.Add(DISABLE_GRAPHICS);
            }

            if (settings.disableAnimator)
            {
                add.Add(DISABLE_ANIMATOR);
            }
            else
            {
                remove.Add(DISABLE_ANIMATOR);
            }

            if (settings.disableAudioExtras)
            {
                add.Add(DISABLE_AUDIO_EXTRAS);
            }
            else
            {
                remove.Add(DISABLE_AUDIO_EXTRAS);
            }

            if (settings.disableObjectBob)
            {
                add.Add(DISABLE_OBJECT_BOB);
            }
            else
            {
                remove.Add(DISABLE_OBJECT_BOB);
            }

            if (settings.disableOptimizations)
            {
                add.Add(DISABLE_OPTIMIZATIONS);
            }
            else
            {
                remove.Add(DISABLE_OPTIMIZATIONS);
            }

            GoldPlayerScriptHelpers.AddAndRemoveDefines(add, remove);
            Save();
        }
Example #2
0
        internal static void ApplyDefines(GoldPlayerProjectSettings settings)
        {
            List <string> remove = new List <string>();
            List <string> add    = new List <string>();

            if (settings.disableInteraction)
            {
                add.Add("GOLD_PLAYER_DISABLE_INTERACTION");
            }
            else
            {
                remove.Add("GOLD_PLAYER_DISABLE_INTERACTION");
            }

            if (settings.disableUI)
            {
                add.Add("GOLD_PLAYER_DISABLE_UI");
            }
            else
            {
                remove.Add("GOLD_PLAYER_DISABLE_UI");
            }

            if (settings.disableGraphics)
            {
                add.Add("GOLD_PLAYER_DISABLE_GRAPHICS");
            }
            else
            {
                remove.Add("GOLD_PLAYER_DISABLE_GRAPHICS");
            }

            if (settings.disableAnimator)
            {
                add.Add("GOLD_PLAYER_DISABLE_ANIMATOR");
            }
            else
            {
                remove.Add("GOLD_PLAYER_DISABLE_ANIMATOR");
            }

            if (settings.disableAudioExtras)
            {
                add.Add("GOLD_PLAYER_DISABLE_AUDIO_EXTRAS");
            }
            else
            {
                remove.Add("GOLD_PLAYER_DISABLE_AUDIO_EXTRAS");
            }

            if (settings.disableObjectBob)
            {
                add.Add("GOLD_PLAYER_DISABLE_OBJECT_BOB");
            }
            else
            {
                remove.Add("GOLD_PLAYER_DISABLE_OBJECT_BOB");
            }

            GoldPlayerScriptHelpers.AddAndRemove(add, remove);
            Save(settings);
        }