Example #1
0
 public TerrainPaintBrushCatalogResource(uint version,
                                         uint brushVersion,
                                         Common common,
                                         BrushOperation normalOperation, BrushOperation oppositeOperation, TGIBlock profileTexture,
                                         BrushOrientation orientation,
                                         float width, float strength, byte baseTextureValue, float wiggleAmount,
                                         TGIBlock brushTexture,
                                         TerrainType terrain, CategoryType category)
     : base(version,
            brushVersion,
            common,
            normalOperation,
            oppositeOperation,
            profileTexture,
            orientation,
            width,
            strength,
            baseTextureValue,
            wiggleAmount
            )
 {
     this.brushTexture = (TGIBlock)brushTexture.Clone(OnResourceChanged);
     this.terrain      = terrain;
     this.category     = category;
 }
 public TerrainPaintBrushCatalogResource(int APIversion,
     uint version,
     uint brushVersion,
     Common common,
     BrushOperation normalOperation, BrushOperation oppositeOperation, TGIBlock profileTexture, BrushOrientation orientation,
     float width, float strength, byte baseTextureValue, float wiggleAmount,
     TGIBlock brushTexture,
     TerrainType terrain, CategoryType category
     )
     : base(APIversion,
         version,
         brushVersion,
         common,
         normalOperation,
         oppositeOperation,
         profileTexture,
         orientation,
         width,
         strength,
         baseTextureValue,
         wiggleAmount
     )
 {
     this.brushTexture = (TGIBlock)brushTexture.Clone(OnResourceChanged);
     this.terrain = terrain;
     this.category = category;
 }
 /// <summary>
 /// Create a ChunkEntry from an existing <see cref="TGIBlock"/> and an existing <see cref="ARCOLBlock"/>.
 /// </summary>
 /// <param name="APIversion">Unused; the requested API version.</param>
 /// <param name="handler">The change event handler.</param>
 /// <param name="tgiBlock">An existing <see cref="T:TGIBlock"/>.</param>
 /// <param name="rcolBlock">An existing <see cref="ARCOLBlock"/>.</param>
 public ChunkEntry(int APIversion, EventHandler handler, TGIBlock tgiBlock, ARCOLBlock rcolBlock)
     : base(APIversion, handler)
 {
     this.tgiBlock  = tgiBlock.Clone(handler) as TGIBlock;
     this.rcolBlock = rcolBlock.Clone(handler) as ARCOLBlock;
 }