Exemple #1
0
        public static MissionInProgress ReadMissionInProgressByRecord(IDataRecord record, Mission mission)
        {
            var missionInProgress = MissionInProgress.CreateFromRecord(record, mission);

            ErrorCodes ec;

            //load targets from sql and spawn running target classes
            if ((ec = missionInProgress.ReadTargetsInProgressSql()) != ErrorCodes.NoError)
            {
                Logger.Error("error occured loading the targets from sql: " + ec);
                return(null);
            }

            return(missionInProgress);
        }