Ejemplo n.º 1
0
		public static bool __CompilerHint__Line__TileCell()
		{
			var grid = new LineGrid<TileCell[]>(1, 1);

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

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

			return grid[grid.First()][0] == null || shapeInfo.Translate(LinePoint.Zero) != null;
		}
Ejemplo n.º 2
0
        public static bool __CompilerHint__Line__TileCell()
        {
            var grid = new LineGrid <TileCell[]>(1, 1);

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

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

            return(grid[grid.First()][0] == null || shapeInfo.Translate(LinePoint.Zero) != null);
        }
Ejemplo n.º 3
0
		public static bool __CompilerHint__FlatTri__TileCell()
		{
			var grid1 = new PointyHexGrid<TileCell[]>(1, 1);

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

			var grid2 = new FlatTriGrid<TileCell>(1, 1);

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

			var shapeStorageInfo = new ShapeStorageInfo<FlatTriPoint>(new IntRect(), p => true);
			var shapeInfo = new FlatTriShapeInfo<TileCell>(shapeStorageInfo);

			return grid1[grid1.First()][0] == null || grid2[grid2.First()] == null || shapeInfo.IncIndex(0) != null;
		}
Ejemplo n.º 4
0
        public static bool __CompilerHint__FlatTri__TileCell()
        {
            var grid1 = new PointyHexGrid <TileCell[]>(1, 1);

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

            var grid2 = new FlatTriGrid <TileCell>(1, 1);

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

            var shapeStorageInfo = new ShapeStorageInfo <FlatTriPoint>(new IntRect(), p => true);
            var shapeInfo        = new FlatTriShapeInfo <TileCell>(shapeStorageInfo);

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