/// <summary> /// Adds a new account data. /// </summary> /// <param name="data"> /// A <see cref="Rift.Data.GameAccount"/> data to add. /// </param> public void AddAccount(GameAccount data) { if (data.Equals(GameAccount.Empty)) { return; } accounts.Add(data); current = accounts.Count - 1; }
/// <summary> /// Returns the string representation for this <see cref="Rift.Services.GameProcessParameters"/>. /// </summary> public override string ToString() { var temp = new StringBuilder(); temp.AppendFormat("-ip:{0} -port:{1} -cc:{2}", ip, port, countryCode); if (account != null && !account.Equals(GameAccount.Empty)) { temp.AppendFormat(" -account:{0} -password:{1}", account.Name, account.Password); } foreach (var flag in flags) { temp.Append(' ').Append(flag); } return(temp.ToString()); }
/// <summary> /// Adds a new account data. /// </summary> /// <param name="data"> /// A <see cref="Rift.Data.GameAccount"/> data to add. /// </param> public void AddAccount(GameAccount data) { if (data.Equals(GameAccount.Empty)) return; accounts.Add(data); current = accounts.Count - 1; }