// Update an attribute. public void Update(ItemAttribute itemAttribute) { ItemAttribute currentAttribute = this.FindOneById(itemAttribute.id); if (currentAttribute != null) { currentAttribute.name = itemAttribute.name; dbTools.Update(currentAttribute); } }
public void Update(ComponentType element) { ComponentType currentElement = this.FindOneById(element.id); if (currentElement != null) { currentElement.name = element.name; dbTools.Update(currentElement); } }
public void Update(ComponentRank element) { ComponentRank currentElement = this.FindOneById(element.id); if (currentElement != null) { currentElement.rank = element.rank; dbTools.Update(currentElement); } }
public void Update(Rarity element) { Rarity currentElement = this.FindOneById(element.id); if (currentElement != null) { currentElement.name = element.name; currentElement.color = element.color; currentElement.level = element.level; dbTools.Update(currentElement); } }
public void Update(Component element) { Component currentElement = this.FindOneById(element.id); if (currentElement != null) { currentElement.name = element.name; currentElement.componentRankId = element.componentRankId; currentElement.componentTypeId = element.componentTypeId; currentElement.rarityId = element.rarityId; dbTools.Update(currentElement); } }