private StatisticValue[] ParseStats(SkyrimSavegame savegame) { List <StatisticValue> stats = new List <StatisticValue>(); var orderedMiscStats = savegame.GetMiscStats().OrderBy(p => p.category).ThenBy(n => n.name); foreach (var ms in orderedMiscStats) { StatisticValue sv = new StatisticValue(); StatisticCategoryType catType = (StatisticCategoryType)ms.category; sv.CategoryId = (int)catType; sv.Name = ms.name; sv.Value = ms.value; stats.Add(sv); } return(stats.ToArray()); }
public StatisticCategory(StatisticCategoryType categoryType) { this.categoryType = categoryType; this.items = new List <String>(); }
public StatisticCategory(StatisticCategoryType categoryType) { this.categoryType = categoryType; this.items = new List<String>(); }