using System.Collections.Generic; namespace ACE.Server.Physics.Common { public class CellArray { public bool AddedOutside; public bool LoadCells; public Dictionary Cells; public int NumCells; public CellArray() { Cells = new Dictionary(); } public void SetStatic() { AddedOutside = false; LoadCells = false; NumCells = 0; } public void SetDynamic() { AddedOutside = false; LoadCells = true; NumCells = 0; } public void add_cell(uint cellID, ObjCell cell) { if (!Cells.ContainsKey(cellID)) { Cells.Add(cellID, cell); NumCells++; } } public void remove_cell(ObjCell cell) { if (Cells.ContainsKey(cell.ID)) { Cells.Remove(cell.ID); NumCells--; } } } }