BattleInfoPlugin.Models.Repositories.Master.Update C# (CSharp) Method

Update() public method

public Update ( SvData start ) : void
start SvData
return void
        public void Update(SvData<map_start_next> start)
        {
            var mapArea = int.Parse(start.Request["api_maparea_id"]);
            var mapNo = int.Parse(start.Request["api_mapinfo_no"]);
            var infoId = this.MapAreas[mapArea][mapNo].Id;

            var cells = start.Data.api_cell_data
                .Select(cell => new MapCell(cell, mapArea, mapNo, infoId))
                .ToDictionary(x => x.Id, x => x);

            this.MapCells = this.MapCells.Merge(cells);
            Debug.WriteLine(this.MapCells.Values.Count(c => c.MapAreaId == 36 && c.MapInfoId == 361));
            this.Serialize(this.filePath);
        }

Same methods

Master::Update ( kcsapi_start2 start2 ) : void