Exemple #1
0
        public void UpdateOneRP(Guid id, float r, Point p)
        {
            var cell = Cells.GetOrAdd(id, CellItem.Create(r, p));

            cell.R        = r;
            cell.Position = p;
            Cells[id]     = cell;
        }
Exemple #2
0
 public Guid AddOne(CellItem item)
 {
     return(Cells.AddOrUpdate(item.Id, item, (id, newItem) => item).Id);
 }