Ejemplo n.º 1
0
 public Mail(CharacterController character, ulong nId)
 {
     mCharacter        = character;
     mDbData           = new DBMail_One();
     mDbData.Guid      = nId;
     mDbData.StartTime = DateTime.Now.ToBinary();
     mDbData.State     = 0;
 }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
0
 //构造邮件
 public Mail(CharacterController character, DBMail_One dbdata)
 {
     mCharacter = character;
     mDbData    = dbdata;
 }