public static void InjectRealEstateData(string varname) { // temporary CommercialLotSubType type; if (ParserFunctions.TryParseEnum <CommercialLotSubType>(varname, out type, CommercialLotSubType.kCommercialUndefined)) { RealEstateData.VenueData data = default(RealEstateData.VenueData); data.LotType = type; data.BaseCost = 50000; List <int> list; List <int> list2; string weeklyIncomes = "5800,12750,25000"; string upgradeValues = "50000,85000,155000"; ParserFunctions.ParseCommaSeperatedInt(weeklyIncomes, out list); ParserFunctions.ParseCommaSeperatedInt(upgradeValues, out list2); data.WeeklyIncomes = list.ToArray(); data.UpgradeValues = list2.ToArray(); // needed because EA data.UpgradeObjects = new List <Pair <string, int> > [3]; for (int i = 0; i < 3; i++) { data.UpgradeObjects[i] = new List <Pair <string, int> >(); } RealEstateData.sDictionary.Add(type, data); } }