/// <summary> /// Will automatically detect which side and type /// using functions in Map and SolidObject /// </summary> public CollisionBlock(int x, int y, Side side, ref Map map) { this.gridPos = new Point(x, y); this.ColRec = map.GetColRec(x, y); this.type = map.colGrid[x, y]; this.side = side; }