public CompileValue GetValue(CompileCategory category, int index) { if ((int)category < (int)CompileThresholds.Gather) { CompileDataset dataset = Datasets[(int)category]; return(index >= 0 && index < dataset.collection.Count ? dataset.collection[index] : null); } return(null); }
public CompileValue GetValue(CompileCategory category, string fileName) { CompileDataset dataset = Datasets[(int)category]; if (dataset.dictionary.ContainsKey(fileName)) { return(dataset.dictionary[fileName]); } return(null); }
private void ReadCompileUnit(BinaryReader reader, List <UnitValue> list, uint index) { var name = reader.ReadString(); var compileData = new UnitValue(name, index); for (CompileCategory category = 0; (int)category < (int)CompileThresholds.Display; ++category) { compileData.SetValue(category, reader.ReadUInt32()); } list.Add(compileData); }
public List <CompileValue> GetCollection(CompileCategory category) { return(Datasets[(int)category].collection); }
public UnitTotal GetTotal(CompileCategory category) { return((int)category < (int)CompileThresholds.Display && (int)category < Totals.Count ? Totals[(int)category] : null); }
public ObservableCollection <CompileValue> GetCollection(CompileCategory category) { return(_datasets[(int)category].collection); }