Пример #1
0
 public void Unregister(MazeBody being, twin cell_pos)
 {
     if (bodyHeaps.ContainsKey(cell_pos))
     {
         bodyHeaps[cell_pos].Remove(being);
     }
 }
Пример #2
0
 public void Register(MazeBody body, twin cell_pos)
 {
     if (!bodyHeaps.ContainsKey(cell_pos))
     {
         bodyHeaps[cell_pos] = new HashSet <MazeBody>();
     }
     bodyHeaps[cell_pos].Add(body);
 }