コード例 #1
0
 private string PaintCells(CellConfig work_cell)
 {
     Dictionary<string, List<ICell>> cells = new Dictionary<string, List<ICell>>();
     foreach(CellType type in Enum.GetValues(typeof(CellType)))
     {
         List<ICell> list_cells = work_cell.dock.Where(x => x.GetType().Equals(type)).ToList();
         cells.Add(type.ToString(), list_cells);
     }
     string string_cells = "";
     foreach(var pair in cells)
     {
         string_cells += "\t" + pair.Key + "\t"+pair.Value.Count.ToString()+"\n";
     }
     return string_cells;    
 }
コード例 #2
0
ファイル: Organism.cs プロジェクト: pandapacka/CellLang
 public void Init()
 {
     cell_stats = new CellConfig();
 }