public void RefreshLines() { int count = 0; var vehicleList = VWUtils.LoadBasicAssets(CitizenWealthDefinition.LOW); LogUtils.DoLog("{0} vehicleList = [{1}] (s={2})", GetType(), string.Join(",", vehicleList.Select(x => x.ToString()).ToArray()), vehicleList.Count); foreach (string prefabName in vehicleList) { AddToList(prefabName, ref count).RefreshData(true);; } RemoveExtraLines(count); LogUtils.DoLog("{0} final count = {1}", GetType(), count); ReSort(); m_LinesUpdated = true; }
private void LoadBasicAssets() { m_basicAssetsList = VWUtils.LoadBasicAssets(Definition); AssetList.IntersectWith(m_basicAssetsList); }