public void SaveCharacter(ref DBGameDatabase database, Character character) { database.UpdateCharacter(character); database.UpdateAchievement(character.CharacterId, character.Achievement); database.UpdateCraft(character.CharacterId, character.Craft); database.UpdateCurrency(character.CharacterId, character.Currency); database.UpdateHotbar(character.CharacterId, character.Hotbar); database.UpdateSpell(character.CharacterId, character.Spell); database.UpdateSpellBuff(character.CharacterId, character.SpellBuff); database.UpdateTitle(character.CharacterId, character.Title); database.UpdateEquipment(character.CharacterId, character.Equipment); database.UpdateInventory(character.CharacterId, character.Inventory); database.UpdateWarehouse(character.CharacterId, character.Warehouse); database.UpdateVariable(character.CharacterId, character.Variable); }