コード例 #1
0
 /// <summary>
 /// Adds one vault to the specified account.
 /// </summary>
 /// <param name="acc">The account you want to add a new vault to.</param>
 /// <param name="replace">Whether you want the value to be updated in the database immediately.</param>
 public void AddVault(DbAccount acc, bool replace = true)
 {
     if (acc.Vaults == null)
     {
         acc.Vaults = new List <int[]>();
     }
     acc.Vaults.Add(new int[8] {
         -1, -1, -1, -1, -1, -1, -1, -1
     });
     if (replace)
     {
         acc.ReplaceAsync(m_db);
     }
 }