Exemple #1
0
        public static bool __CompilerHint__Line__TextureCell()
        {
            var grid = new LineGrid <TextureCell[]>(1, 1);

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

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

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

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

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

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

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

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

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

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

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

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

			return grid1[grid1.First()][0] == null || grid2[grid2.First()] == null || shapeInfo.IncIndex(0) != null;
		}
		public static bool __CompilerHint__Line__TextureCell()
		{
			var grid = new LineGrid<TextureCell[]>(1, 1);

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

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

			return grid[grid.First()][0] == null || shapeInfo.Translate(LinePoint.Zero) != null;
		}