Exemple #1
0
        public WipeDegreesMission(string targetName, OS _os)
        {
            WipeDegreesMission wipeDegreesMission = this;

            this.ownerName = targetName;
            Action init = (Action)null;

            init = (Action)(() =>
            {
                if (_os.netMap.academicDatabase == null)
                {
                    _os.delayer.Post(ActionDelayer.NextTick(), init);
                }
                else
                {
                    closure_0.database = (AcademicDatabaseDaemon)_os.netMap.academicDatabase.getDaemon(typeof(AcademicDatabaseDaemon));
                }
            });
            init();
        }
Exemple #2
0
        public static void SendStartingEmailForActiveExtensionNextFrame(object os_obj)
        {
            OS os = (OS)os_obj;

            if (!string.IsNullOrWhiteSpace(ExtensionLoader.ActiveExtensionInfo.StartingMissionPath))
            {
                os.delayer.Post(ActionDelayer.NextTick(), (Action)(() =>
                {
                    ActiveMission activeMission = (ActiveMission)ComputerLoader.readMission(ExtensionLoader.ActiveExtensionInfo.FolderPath + "/" + ExtensionLoader.ActiveExtensionInfo.StartingMissionPath);
                    os.currentMission = activeMission;
                    activeMission.sendEmail(os);
                    activeMission.ActivateSuppressedStartFunctionIfPresent();
                    os.saveGame();
                }));
            }
            if (os.Flags.HasFlag("ExtensionFirstBootComplete"))
            {
                return;
            }
            os.Flags.AddFlag("ExtensionFirstBootComplete");
        }
Exemple #3
0
        public AddDegreeMission(string targetName, string degreeName, string uniName, float desiredGPA, OS _os)
        {
            AddDegreeMission addDegreeMission = this;

            this.ownerName  = targetName;
            this.degreeName = degreeName;
            this.uniName    = uniName;
            this.desiredGPA = desiredGPA;
            Action init = (Action)null;

            init = (Action)(() =>
            {
                if (_os.netMap.academicDatabase == null)
                {
                    _os.delayer.Post(ActionDelayer.NextTick(), init);
                }
                else
                {
                    closure_0.database = (AcademicDatabaseDaemon)_os.netMap.academicDatabase.getDaemon(typeof(AcademicDatabaseDaemon));
                }
            });
            init();
        }