public Mail(CharacterController character, ulong nId) { mCharacter = character; mDbData = new DBMail_One(); mDbData.Guid = nId; mDbData.StartTime = DateTime.Now.ToBinary(); mDbData.State = 0; }
public void PushNewMailByDb(DBMail_One dbmail) { if (DateTime.FromBinary(dbmail.OverTime) < DateTime.Now) { return; } var nextId = GetNextId(); dbmail.Guid = nextId; var mail = new Mail(mCharacter, dbmail); Mails.Add(dbmail.Guid, mail); mDbData.mData.Add(dbmail); AddChild(mail); }
//构造邮件 public Mail(CharacterController character, DBMail_One dbdata) { mCharacter = character; mDbData = dbdata; }