Example #1
0
        public static bool __CompilerHint1__Diamond__MeshTileCell()
        {
            var grid = new DiamondGrid<MeshTileCell[]>(1, 1);

            foreach(var point in grid) { grid[point] = new MeshTileCell[1]; }

            var shapeStorageInfo = new ShapeStorageInfo<DiamondPoint>(new IntRect(), p => true);
            var shapeInfo = new DiamondShapeInfo<MeshTileCell>(shapeStorageInfo);

            return grid[grid.First()][0] == null || shapeInfo.Translate(DiamondPoint.Zero) != null;
        }
Example #2
0
        public static bool __CompilerHint__Line__MeshTileCell()
        {
            var grid = new LineGrid <MeshTileCell[]>(1, 1);

            foreach (var point in grid)
            {
                grid[point] = new MeshTileCell[1];
            }

            var shapeStorageInfo = new ShapeStorageInfo <LinePoint>(new IntRect(), p => true);
            var shapeInfo        = new LineShapeInfo <MeshTileCell>(shapeStorageInfo);

            return(grid[grid.First()][0] == null || shapeInfo.Translate(LinePoint.Zero) != null);
        }
Example #3
0
        public static bool __CompilerHint__Cairo__MeshTileCell()
        {
            var grid1 = new PointyHexGrid <MeshTileCell[]>(1, 1);

            foreach (var point in grid1)
            {
                grid1[point] = new MeshTileCell[1];
            }

            var grid2 = new CairoGrid <MeshTileCell>(1, 1);

            foreach (var point in grid2)
            {
                grid2[point] = null;
            }

            var shapeStorageInfo = new ShapeStorageInfo <CairoPoint>(new IntRect(), p => true);
            var shapeInfo        = new CairoShapeInfo <MeshTileCell>(shapeStorageInfo);

            return(grid1[grid1.First()][0] == null || grid2[grid2.First()] == null || shapeInfo.IncIndex(0) != null);
        }
Example #4
0
		public static bool __CompilerHint__Cairo__MeshTileCell()
		{
			var grid1 = new PointyHexGrid<MeshTileCell[]>(1, 1);

			foreach(var point in grid1)	{ grid1[point] = new MeshTileCell[1]; } 

			var grid2 = new CairoGrid<MeshTileCell>(1, 1);

			foreach(var point in grid2)	{ grid2[point] = null; } 

			var shapeStorageInfo = new ShapeStorageInfo<CairoPoint>(new IntRect(), p => true);
			var shapeInfo = new CairoShapeInfo<MeshTileCell>(shapeStorageInfo);

			return grid1[grid1.First()][0] == null || grid2[grid2.First()] == null || shapeInfo.IncIndex(0) != null;
		}