예제 #1
0
 private SparseGrid2(GridDefinition def, int validCellCount)
     : base(def, validCellCount)
 {
     m_index = new Dictionary <int, int>(validCellCount);
 }
예제 #2
0
파일: GridCoord.cs 프로젝트: jdauie/cloudae
 public GridCoord(GridDefinition def, ushort row, ushort col)
 {
     m_def = def;
     m_row = row;
     m_col = col;
 }
예제 #3
0
 private SparseGrid1(GridDefinition def, int validCellCount)
     : base(def, validCellCount)
 {
     m_index = new int[Def.IndexSize];
 }
예제 #4
0
 protected SparseGridBase(GridDefinition def, int validCellCount)
     : base(def)
 {
     m_data = new T[validCellCount];
 }
예제 #5
0
 public GridCoord(GridDefinition def, ushort row, ushort col)
 {
     m_def = def;
     m_row = row;
     m_col = col;
 }
예제 #6
0
 protected GridBase(GridDefinition def)
 {
     m_def = def;
 }
예제 #7
0
        public static Grid <T> Create(ushort sizeX, ushort sizeY, bool buffered = false, T fillVal = default(T))
        {
            var def = new GridDefinition(sizeX, sizeY, buffered);

            return(new Grid <T>(def, fillVal));
        }