public void RemoveMapData(string key) { int i; if (m_indexMap.GetValue(key, out i)) { MapData rd = m_mapDataList[i]; m_indexMap.RemoveValue(key, rd.id); m_mapDataList.RemoveAt(i); } }
public void RemoveCustomer(string key) { int i; if (m_indexMap.GetValue(key, out i)) { CustomerData cd = m_customerList[i]; m_indexMap.RemoveValue(cd.key, cd.id); m_customerList.RemoveAt(i); } }
public void RemoveCookware(string key) { int i; if (m_indexMap.GetValue(key, out i)) { CookwareData cd = m_cookwareList[i]; m_indexMap.RemoveValue(key, cd.id); m_cookwareList.RemoveAt(i); } }
public void RemoveIngredient(string key) { int i; if (m_indexMap.GetValue(key, out i)) { IngredientData ing = m_ingredientList[i]; m_indexMap.RemoveValue(key, ing.id); m_ingredientList.RemoveAt(i); } }
public void RemoveFood(string food) { int index; if (m_indexMap.GetValue(food, out index)) { FoodData fd = m_foodList[index]; m_indexMap.RemoveValue(food, fd.id); m_foodList.RemoveAt(index); } }