Axiom.Components.Terrain.TerrainGroup.DefineTerrain C# (CSharp) Method

DefineTerrain() public method

Define a 'slot' in the terrain grid - in this case a flat terrain.
public DefineTerrain ( long x, long y, float constantHeight ) : void
x long The coordinates of the terrain slot relative to the centre slot (signed).
y long The coordinates of the terrain slot relative to the centre slot (signed).
constantHeight float /// The constant, uniform height that you want the terrain /// to start at ///
return void
        public void DefineTerrain(long x, long y, float constantHeight)
        {
            TerrainSlot slot = GetTerrainSlot(x, y, true);

            slot.Def.UseImportData();

            slot.Def.ImportData = _defaultImportData;
            slot.Def.ImportData.ConstantHeight = constantHeight;
            slot.Def.ImportData.TerrainAlign = _alignment;
            slot.Def.ImportData.TerrainSize = _terrainSize;
            slot.Def.ImportData.WorldSize = _terrainWorldSize;
        }
        /// <summary>

Same methods

TerrainGroup::DefineTerrain ( long x, long y ) : void
TerrainGroup::DefineTerrain ( long x, long y, Image image ) : void
TerrainGroup::DefineTerrain ( long x, long y, Image image, List layers ) : void
TerrainGroup::DefineTerrain ( long x, long y, ImportData importData ) : void
TerrainGroup::DefineTerrain ( long x, long y, float data, List layers ) : void
TerrainGroup::DefineTerrain ( long x, long y, string filename ) : void