Exemple #1
0
        private async Task VGA_InitialSetUpComplete()
        {
#if !DEBUG
            BootSequence.Build("RegularBoot");
            await BootSequence.TryPerformSequence();
#endif
            IsRebooting = false;

            if (!UserProfile.Instance.IsInitialized)
            {
                await TextInterface.RunProfileConfigWizard(InteractionCancellation.Token);

                return;
            }

            StartNetworkUpdates();

            await TryRunSystemProgram("/etc/startup", InteractionCancellation.Token);

            DoPostBootActions();

            while (!InteractionCancellation.IsCancellationRequested)
            {
                var customPromptSuccess = await TryRunSystemProgram("/etc/prompt", InteractionCancellation.Token);

                if (!customPromptSuccess)
                {
                    Terminal.Write(
                        $"[{GetHostName()}] | {CurrentSystemContext.WorkingDirectory.GetAbsolutePath()}\n$ ");
                }

                try
                {
                    var input = Terminal.ReadLine(string.Empty, InteractionCancellation.Token);

                    if (string.IsNullOrWhiteSpace(input))
                    {
                        continue;
                    }

                    await Shell.HandleCommand(input, InteractionCancellation.Token);
                }
                catch (OperationCanceledException)
                {
                    Console.WriteLine("task canceled");
                    return;
                }
            }
        }
        public GameControl(Game game)
            : base(game)
        {
            input = new InputProvider(game);
            particles = new ParticleProvider();
            Stars = new StarField(game, 2, 1, 0.5f);
            FrontPlotter = new PrimitiveDraw(game);
            BackPlotter = new PrimitiveDraw(game);

            Hud = new Hud(game);
            text = new TextInterface(game, new Vector2(1360, 730));

            extensions = new ExtensionsManager();
            
        }
Exemple #3
0
        public static void Main(string[] args)
        {
            TextInterface GameInterface = new TextInterface();

            GameInterface.Run();
        }