• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# ShapeStorageInfo类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ShapeStorageInfo的典型用法代码示例。如果您正苦于以下问题:C# ShapeStorageInfo类的具体用法?C# ShapeStorageInfo怎么用?C# ShapeStorageInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ShapeStorageInfo类属于命名空间,在下文中一共展示了ShapeStorageInfo类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: __CompilerHint__Line__TileCell

		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;
		}
开发者ID:ifalvarez,项目名称:complices,代码行数:11,代码来源:CompilerHints_GL.cs


示例2: __CompilerHint2__Rect

		public static bool __CompilerHint2__Rect()
		{
			//Ensures abstract super classes for base grids gets created
			var grid = new RectGrid<__CellType>(1, 1, p => p == RectPoint.Zero, x => x, x => x, new List<RectPoint>());

			//Ensures shape infpo classes get created
			var shapeStorageInfo = new ShapeStorageInfo<RectPoint>(new IntRect(), p => true);
			var shapeInfo = new RectShapeInfo<__CellType>(shapeStorageInfo);

			return grid[grid.First()] == null || shapeInfo.Translate(RectPoint.Zero) != null;
		}
开发者ID:johnnythealco,项目名称:HexGridSpaceDemo,代码行数:11,代码来源:CompilerHints.cs


示例3: __CompilerHint1__Diamond__UVCell

        public static bool __CompilerHint1__Diamond__UVCell()
        {
            var grid = new DiamondGrid<UVCell[]>(1, 1);

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

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

            return grid[grid.First()][0] == null || shapeInfo.Translate(DiamondPoint.Zero) != null;
        }
开发者ID:tinyminds,项目名称:glomp,代码行数:11,代码来源:CompilerHints_GL.cs


示例4: __CompilerHint2__Diamond__TileCell

		public static bool __CompilerHint2__Diamond__TileCell()
		{
			//Ensures abstract super classes for base grids gets created
			var grid = new DiamondGrid<TileCell>(1, 1, p => p == DiamondPoint.Zero, x => x, x => x, new List<DiamondPoint>());

			//Ensures shape infpo classes get created
			var shapeStorageInfo = new ShapeStorageInfo<DiamondPoint>(new IntRect(), p => true);
			var shapeInfo = new DiamondShapeInfo<TileCell>(shapeStorageInfo);

			return grid[grid.First()] == null || shapeInfo.Translate(DiamondPoint.Zero) != null;
		}
开发者ID:johnnythealco,项目名称:HexGridBattle001,代码行数:11,代码来源:CompilerHints_GL.cs


示例5: __CompilerHint__FlatTri__TileCell

		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;
		}
开发者ID:ifalvarez,项目名称:complices,代码行数:15,代码来源:CompilerHints_GL.cs


示例6: __CompilerHint1__Diamond

        /**
            Call this method if you use a DiamondGrid.
            Replace	the type __CellType to whatever type you have in your grid.

            You can call the method anywhere in your code.

                if(!__CompilerHint__Diamond()) return;

            This methods always returns true.

            @since 1.6
        */
        public static bool __CompilerHint1__Diamond()
        {
            //Ensures abstract super classes for base grids gets created
            var grid = new DiamondGrid<__CellType[]>(1, 1);

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

            //Ensures shape infpo classes get created
            var shapeStorageInfo = new ShapeStorageInfo<DiamondPoint>(new IntRect(), p => true);
            var shapeInfo = new DiamondShapeInfo<__CellType>(shapeStorageInfo);

            return grid[grid.First()][0] == null || shapeInfo.Translate(DiamondPoint.Zero) != null;
        }
开发者ID:youdonotexist,项目名称:Far-Wide,代码行数:28,代码来源:CompilerHints.cs


示例7: __CompilerHint__Cairo

		/** 
			Call this method if you use a CairoGrid.
			Replace	the type __CellType to whatever type you have in your grid.

			You can call the method anywhere in your code.
			
				if(!__CompilerHint__Cairo()) return;

			This methods always returns true.

			@since 1.6
		*/
		public static bool __CompilerHint__Cairo()
		{
			//Ensures abstract super classes for base grids gets created
			var grid = new PointyHexGrid<__CellType[]>(1, 1);

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

			//Ensures shape infpo classes get created
			var shapeStorageInfo = new ShapeStorageInfo<CairoPoint>(new IntRect(), p => true);
			var shapeInfo = new CairoShapeInfo<__CellType>(shapeStorageInfo);

			return grid[grid.First()][0] == null || shapeInfo.IncIndex(0) != null;
		}
开发者ID:johnnythealco,项目名称:HexGridSpaceDemo,代码行数:28,代码来源:CompilerHints.cs


示例8: __CompilerHint__FlatHex__MeshTileCell

		public static bool __CompilerHint__FlatHex__MeshTileCell()
		{
			var grid = new FlatHexGrid<MeshTileCell[]>(1, 1);

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

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

			return grid[grid.First()][0] == null || shapeInfo.Translate(FlatHexPoint.Zero) != null;
		}
开发者ID:ifalvarez,项目名称:complices,代码行数:11,代码来源:CompilerHints_GL.cs


示例9: __CompilerHint__Cairo__UVCell

		public static bool __CompilerHint__Cairo__UVCell()
		{
			var grid1 = new PointyHexGrid<UVCell[]>(1, 1);

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

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

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

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

			return grid1[grid1.First()][0] == null || grid2[grid2.First()] == null || shapeInfo.IncIndex(0) != null;
		}
开发者ID:ifalvarez,项目名称:complices,代码行数:15,代码来源:CompilerHints_GL.cs


示例10: __CompilerHint__PointyRhomb__SpriteCell

		public static bool __CompilerHint__PointyRhomb__SpriteCell()
		{
			var grid1 = new PointyHexGrid<SpriteCell[]>(1, 1);

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

			var grid2 = new PointyRhombGrid<SpriteCell>(1, 1);

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

			var shapeStorageInfo = new ShapeStorageInfo<PointyRhombPoint>(new IntRect(), p => true);
			var shapeInfo = new PointyRhombShapeInfo<SpriteCell>(shapeStorageInfo);

			return grid1[grid1.First()][0] == null || grid2[grid2.First()] == null || shapeInfo.IncIndex(0) != null;
		}
开发者ID:ifalvarez,项目名称:complices,代码行数:15,代码来源:CompilerHints_GL.cs


示例11: __CompilerHint__Rect__SpriteCell

		public static bool __CompilerHint__Rect__SpriteCell()
		{
			var grid = new RectGrid<SpriteCell[]>(1, 1);

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

			var shapeStorageInfo = new ShapeStorageInfo<RectPoint>(new IntRect(), p => true);
			var shapeInfo = new RectShapeInfo<SpriteCell>(shapeStorageInfo);

			return grid[grid.First()][0] == null || shapeInfo.Translate(RectPoint.Zero) != null;
		}
开发者ID:ifalvarez,项目名称:complices,代码行数:11,代码来源:CompilerHints_GL.cs


示例12: __CompilerHint2__FlatHex__SpriteCell

		public static bool __CompilerHint2__FlatHex__SpriteCell()
		{
			//Ensures abstract super classes for base grids gets created
			var grid = new FlatHexGrid<SpriteCell>(1, 1, p => p == FlatHexPoint.Zero, x => x, x => x, new List<FlatHexPoint>());

			//Ensures shape infpo classes get created
			var shapeStorageInfo = new ShapeStorageInfo<FlatHexPoint>(new IntRect(), p => true);
			var shapeInfo = new FlatHexShapeInfo<SpriteCell>(shapeStorageInfo);

			return grid[grid.First()] == null || shapeInfo.Translate(FlatHexPoint.Zero) != null;
		}
开发者ID:johnnythealco,项目名称:HexGridBattle001,代码行数:11,代码来源:CompilerHints_GL.cs



注:本文中的ShapeStorageInfo类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ShapeType类代码示例发布时间:2022-05-24
下一篇:
C# ShapeRenderMode类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap