Esempio n. 1
0
        public void SaveAccountToys(SQLTransaction trans)
        {
            PreparedStatement stmt;

            foreach (var pair in _toys)
            {
                stmt = DB.Login.GetPreparedStatement(LoginStatements.REP_ACCOUNT_TOYS);
                stmt.AddValue(0, _owner.GetBattlenetAccountId());
                stmt.AddValue(1, pair.Key);
                stmt.AddValue(2, pair.Value.HasAnyFlag(ToyFlags.Favorite));
                stmt.AddValue(3, pair.Value.HasAnyFlag(ToyFlags.HasFanfare));
                trans.Append(stmt);
            }
        }