BattleInfoPlugin.ViewModels.Enemies.EnemyMapViewModel.CreateCellPoint C# (CSharp) Méthode

CreateCellPoint() private méthode

private CreateCellPoint ( Point>.KeyValuePair source ) : CellPointViewModel
source Point>.KeyValuePair
Résultat CellPointViewModel
        private CellPointViewModel CreateCellPoint(KeyValuePair<int, Point> source)
        {
            var data = this.CellDatas.FirstOrDefault(x => x.No == source.Key);
            var cell = Master.Current.MapCells.Values
                .FirstOrDefault(c => c.IdInEachMapInfo == source.Key && c.MapAreaId == this.Info.MapAreaId && c.MapInfoIdInEachMapArea == this.Info.IdInEachMapArea);
            return new CellPointViewModel(
                source.Key.ToString(),
                source.Value,
                data?.ColorNo ?? cell?.ColorNo ?? 0,
                data?.Distance ?? 0);
        }
EnemyMapViewModel