public MyGuiScreenLoginProgress(string playerName, string password, MyGuiScreenBase openAfterSuccessfulLogin, MyGuiScreenBase closeAfterSuccesfulLogin) : base(MyTextsWrapperEnum.LoginInProgressPleaseWait, true) { m_openAfterSuccessfulLogin = openAfterSuccessfulLogin; m_closeAfterSuccesfulLogin = closeAfterSuccesfulLogin; CurrentScreen = this; // Reset everytime LoginResponse = null; m_playerName = playerName; m_password = password; PasswordHash = MyMwcUtils.GetHashedPassword(m_password); }
protected override void ServiceProgressStart(MyMasterServiceClient client) { AddAction(client.BeginRegister(m_playerName, MyMwcUtils.GetHashedPassword(m_password), m_email, m_sendMeNewsletters, null, client), OnRegister); }