Exemple #1
0
 public BlockInfo DecalInfo(int type)
 {
     return(BlockInfosList.FirstOrDefault(i => i.Type == type && i.Decal));
 }
Exemple #2
0
 public Dictionary <int, BlockInfo> DecalInfos(string cond)
 {
     return(BlockInfosList.Where(i => i.Decal).Where(i => i.FlagsCondition(cond)).ToDictionary(i => i.Type, i => i));
 }
Exemple #3
0
 public IEnumerable <BlockInfo> SimilarTo(BlockInfo block)
 {
     return(BlockInfosList.Where(i => block != i).OrderByDescending(i => i.SameObviousFlags(block) * 100 + i.SameOtherFlags(block) * 10 + (i.Group == block.Group  ? 1 : 0)));
 }