Example #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;
        }
Example #2
0
 public Guid AddOne(CellItem item)
 {
     return(Cells.AddOrUpdate(item.Id, item, (id, newItem) => item).Id);
 }