public string GetGoodName(GoodType good) { string key = good.ToString(); //return csvData[key][Language]; return(csvData[key]["Chinese"]); }
private int ComboBoxContains(GoodType obj) { for (int i = 0; i < TypeComboBox.Items.Count; i++) { if (TypeComboBox.Items[i].ToString() == obj.ToString()) return i; } return -1; }
public void InvestorFeedback() { if (investors.Count < 1) { return; } if (reward == 0) { reward = GoodInvestmentDataSystem.Singleton.GetReward(goodType.ToString()); } int interest = reward / investors.Count; for (int i = 0; i < investors.Count; ++i) { investors[i].Earn(interest); } investors.Clear(); }
static public string BoatSprite(GoodType good) { return(spriteFolder + "Boats/" + good.ToString()); }