Esempio n. 1
0
 public HMail(string filePath)
 {
     _filePath  = filePath;
     _mailBytes = HMail.Read(_filePath);
     _from_l    = HHelper.ToInt32(_mailBytes, 15);
     _subj_l    = HHelper.ToInt32(_mailBytes, 19 + _from_l + 10);
     _body_l    = Math.Max(0, HHelper.ToInt32(_mailBytes, 19 + _from_l + 14 + _subj_l));
     if (this.MessageFlags_Syst)
     {
         _syst_l          = HHelper.ToInt32(_mailBytes, 19 + _from_l + 14 + _subj_l + 4 + _body_l + 1 + 4);
         _systSkipOffset += 8 + _syst_l;
     }
     if (this.MessageFlags_Plan)
     {
         _plan_l          = HHelper.ToInt32(_mailBytes, 19 + _from_l + 14 + _subj_l + 4 + _body_l + 1 + _systSkipOffset + 4);
         _planSkipOffset += 8 + _plan_l;
     }
 }
Esempio n. 2
0
 static public bool IsShipLog(string filePath) // Same as above but filePath input.
 {
     return(IsShipLog(HMail.Read(filePath)));
 }
Esempio n. 3
0
 static public bool IsCityReport(string filePath) // Same as above but filePath input.
 {
     return(IsCityReport(HMail.Read(filePath)));
 }
Esempio n. 4
0
 static public bool IsUni4(string filePath)
 {
     return(IsUni4(HMail.Read(filePath)));
 }
Esempio n. 5
0
 static public bool IsOfficerTenFour(string filePath) // Same as above but filePath input.
 {
     return(IsOfficerTenFour(HMail.Read(filePath)));
 }
Esempio n. 6
0
 static public bool IsEventNotice(string filePath) // Same as above but filePath input.
 {
     return(IsEventNotice(HMail.Read(filePath)));
 }