Example #1
0
            public void Tick(string args, UpdateType type, Action TickAction = null)
            {
                switch (type)
                {
                case UpdateType.Antenna:
                    CustomModules.ForEach(x => x.ProcessCommand(args));
                    Communications.ProcessRawInputString(args);
                    break;

                case UpdateType.Trigger:
                case UpdateType.Terminal:
                case UpdateType.Update1:
                    ShipData.Update();
                    EventScheduler.Tick();
                    Communications.TickStart();

                    switch (args)
                    {
                    default:

                        break;
                    }
                    Planets.Tick();
                    CustomModules.ForEach(x => x.Tick());
                    if (TickAction != null)
                    {
                        TickAction();
                    }
                    Communications.TickEnd();
                    break;
                }
            }