Beispiel #1
0
        public void SubMain(string argument, UpdateType uType)
        {
            if (Runtime.TimeSinceLastRun.Milliseconds < 10 && uType != UpdateType.Antenna && uType != UpdateType.Terminal && uType != UpdateType.Trigger && uType != UpdateType.Mod)
            {
                return;
            }

            if (!Loaded)
            {
                if (loadSpreader.MoveNext())
                {
                    return;
                }
                return;
            }


            /*============|  Argument  |=============*/
            switch (argument)
            {
            case "Timer":
                stopwatch.Toggle();
                break;

            case "SnowMode":
                wheel.ToggleSnowMode();
                break;

            case "Parteh":
                lights.SetCycle(true);
                break;

            case "NoParteh":
                lights.SetCycle(false);
                break;
            }

            /*=====|  Each time the pb is run  |=====*/
            stopwatch.Main();
            RunEnumerator();
            logo.DoTick();
            gyroControl.Main();
        }