コード例 #1
0
 public void Pull()
 {
     if (m_playerMobile == null || m_playerMobile.NetState == null)
     {
         return;
     }
     if (!(SyncDB.PullEmail(((Account)m_playerMobile.Account).Username)))
     {
         m_playerMobile.CloseGump(typeof(emailgump));
         m_playerMobile.SendGump(new emailgump());
     }
     EmailSystem.RemoveEmailCommunicator(this);
 }
コード例 #2
0
 public void Push()
 {
     if (m_playerMobile == null || m_playerMobile.NetState == null)
     {
         return;
     }
     if (SyncDB.PushEmail(((Account)m_playerMobile.Account).Username, m_email))
     {
         m_playerMobile.SendMessage("Your email address has been successfully set.");
     }
     else
     {
         m_playerMobile.SendMessage("There has been a problem setting your email address.");
     }
     EmailSystem.RemoveEmailCommunicator(this);
 }