BattleInfoPlugin.Models.CellTypeExtensions.GetCellType C# (CSharp) Метод

GetCellType() публичный статический Метод

public static GetCellType ( this cell, CellType>.IReadOnlyDictionary knownTypes ) : CellType
cell this
knownTypes CellType>.IReadOnlyDictionary
Результат CellType
        public static CellType GetCellType(this MapCell cell, IReadOnlyDictionary<MapCell, CellType> knownTypes)
        {
            var result = CellType.None;
            if (knownTypes.ContainsKey(cell)) result = result | knownTypes[cell];
            var cellMaster = Repositories.Master.Current.MapCells[cell.Id];
            result = result | cellMaster.ColorNo.ToCellType();
            return result;
        }
CellTypeExtensions