// Token: 0x060037F0 RID: 14320 RVA: 0x0001EB1F File Offset: 0x0001CD1F
 private void InitRefTypes()
 {
     this.CampaignID  = 0UL;
     this.MissionID   = 0UL;
     this.DeckID      = 0UL;
     this.StarsEarned = 0;
     this.Status      = eMissionStatus.None;
 }
        // Token: 0x060037EF RID: 14319 RVA: 0x0010D1A8 File Offset: 0x0010B3A8
        public void DeserializeMessage(byte[] data)
        {
            int num = 0;

            this.CampaignID  = ArrayManager.ReadUInt64(data, ref num);
            this.MissionID   = ArrayManager.ReadUInt64(data, ref num);
            this.DeckID      = ArrayManager.ReadUInt64(data, ref num);
            this.StarsEarned = ArrayManager.ReadInt32(data, ref num);
            this.Status      = ArrayManager.ReadeMissionStatus(data, ref num);
        }
Beispiel #3
0
 private Mission(eTaskType taskType, string missionName, string dllLocation, string className, string launchMethod,
     string shutDownMethod, int launchInterval, int _errorTryInterval, eMissionStatus missionStatus)
 {
     _TaskType = taskType;
     _MissionName = missionName;
     _DllLocation = string.Format(@"{0}{1}", System.AppDomain.CurrentDomain.BaseDirectory, dllLocation); ;
     _ClassName = className;
     _LaunchMethod = launchMethod;
     _ShutDownMethod = shutDownMethod;
     _LaunchInterval = launchInterval;
     _ErrorTryInterval = _errorTryInterval;
     _MissionStatus = missionStatus;
     _MissionOwnerStatus = ThreadState.Unstarted;
 }
Beispiel #4
0
        /// <summary>
        /// 读取xml节点,输出ConfItem
        /// </summary>
        /// <param name="node"></param>
        /// <param name="missionName"></param>
        /// <returns></returns>
        private Mission(XmlNode node, string missionName)
        {
            string location = XMLHelper.GetXmlNodeAttributes(node, "location", true);
            string className = XMLHelper.GetXmlNodeAttributes(node, "classname", true);
            string launchMethod = XMLHelper.GetXmlNodeAttributes(node, "launchmethod", true);
            string shutDownMethod = XMLHelper.GetXmlNodeAttributes(node, "shutdownmethod", true);
            int launchInterval = XMLHelper.GetXmlNodeAttributesToInt(node, "launchinterval", true);
            int errorTryInterval = XMLHelper.GetXmlNodeAttributesToInt(node, "errortryinterval", true);
            string missiondstatus = XMLHelper.GetXmlNodeAttributes(node, "missionstatus", false);

            _TaskType = eTaskType.Normal;
            _MissionName = missionName;
            _DllLocation = string.Format(@"{0}{1}", System.AppDomain.CurrentDomain.BaseDirectory, location);
            _ClassName = className;
            _LaunchMethod = launchMethod;
            _ShutDownMethod = shutDownMethod;
            _LaunchInterval = launchInterval * 1000;
            _ErrorTryInterval = errorTryInterval * 1000;
            _MissionStatus = (eMissionStatus)Enum.Parse(typeof(eMissionStatus), missiondstatus, false);
            _MissionOwnerStatus = ThreadState.Unstarted;
        }