## Engine
Class TerrainInfo

source: C:\XIII\Engine\Classes\TerrainInfo.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Info
             |
             +--Engine.TerrainInfo

Direct Known Subclasses:None

class TerrainInfo
extends Engine.Info

Variables
`array` | `EdgeTurnBitmap`
`array` | `ExtraZones`
`int` | `HeightmapX`
`int` | `HeightmapY`
`bool` | `Inverted`
`TerrainLayer` | `Layers[32]`
`array` | `OldHeightmap`
`Texture` | `OldTerrainMap`
`TerrainPrimitive` | `Primitive`
`array` | `QuadMaterialTable`
`array` | `QuadVisibilityBitmap`
`array` | `Sectors`
`int` | `SectorsX`
`int` | `SectorsY`
`array` | `SelectedVertices`
`int` | `ShowGrid`
`Texture` | `TerrainMap`
`vector` | `TerrainScale`
`vector` | `ToHeightmap[4]`
`vector` | `ToWorld[4]`
`array` | `Vertices`

Source Code

    00001	class TerrainInfo extends Info
    00002		noexport
    00003		showcategories(Movement,Collision,Lighting,LightColor,Force)
    00004		native
    00005		placeable;
    00006
    00007	#exec Texture Import File=Textures\Terrain_info.pcx Name=S_TerrainInfo Mips=Off MASKED=1 COMPRESS=DXT1
    00008	#exec Texture Import File=Textures\S_WhiteCircle.pcx Name=S_WhiteCircle Mips=Off MASKED=1 COMPRESS=DXT1
    00009	#exec Texture Import File=Textures\Bad.pcx Name=TerrainBad Mips=Off COMPRESS=DXT1
    00010	#exec Texture Import File=Textures\DecoPaint.pcx Name=DecoPaint Mips=Off COMPRESS=DXT1
    00011
    00012	struct NormalPair
    00013	{
    00014		var vector Normal1;
    00015		var vector Normal2;
    00016	};
    00017
    00018	enum ETexMapAxis
    00019	{
    00020		TEXMAPAXIS_XY,
    00021		TEXMAPAXIS_XZ,
    00022		TEXMAPAXIS_YZ,
    00023	};
    00024
    00025	enum ESortOrder
    00026	{
    00027		SORT_NoSort,
    00028		SORT_BackToFront,
    00029		SORT_FrontToBack
    00030	};
    00031
    00032	struct TerrainLayer
    00033	{
    00034		var() Texture	Texture;
    00035		var() Texture	AlphaMap;
    00036		var() float		UScale;
    00037		var() float		VScale;
    00038		var() float		UPan;
    00039		var() float		VPan;
    00040		var() ETexMapAxis TextureMapAxis;
    00041		var() float		TextureRotation;
    00042		var() Rotator	LayerRotation;
    00043	};
    00044
    00045	struct DecorationLayer
    00046	{
    00047		var() int			ShowOnTerrain;
    00048		var() Texture		ScaleMap;
    00049		var() Texture		DensityMap;
    00050		var() Texture		ColorMap;
    00051		var() StaticMesh	StaticMesh;
    00052		var() rangevector	ScaleMultiplier;
    00053		var() range			FadeoutRadius;
    00054		var() range			DensityMultiplier;
    00055		var() int			MaxPerQuad;
    00056		var() int			Seed;
    00057		var() int			AlignToTerrain;
    00058		var() ESortOrder	DrawOrder;
    00059		var() int			ShowOnInvisibleTerrain;
    00060	};
    00061
    00062
    00063	struct DecoInfo
    00064	{
    00065		var vector	Location;
    00066		var rotator	Rotation;
    00067		var vector	Scale;
    00068		var vector	TempScale;
    00069		var color	Color;
    00070		var int		Distance;
    00071	};
    00072
    00073	struct DecoSectorInfo
    00074	{
    00075		var array<DecoInfo>	DecoInfo;
    00076		var vector			Location;
    00077		var float			Radius;
    00078	};
    00079
    00080	struct DecorationLayerData
    00081	{
    00082		var array<DecoSectorInfo> Sectors;
    00083	};
    00084
    00085
    00086	var() Texture					TerrainMap;
    00087	var() vector					TerrainScale;
    00088	var() TerrainLayer				Layers[32];
    00089	var() bool						Inverted;
    00090
    00091	var native const array<TerrainSector>	Sectors;
    00092	var native const array<vector> Vertices;
    00093	var native const int HeightmapX;
    00094	var native const int HeightmapY;
    00095	var native const int SectorsX;
    00096	var native const int SectorsY;
    00097	var native const TerrainPrimitive Primitive;
    00098	//var native const array<NormalPair> FaceNormals;
    00099	var native const vector ToWorld[4];
    00100	var native const vector ToHeightmap[4];
    00101	var native const array<int>	SelectedVertices;
    00102	var native const int ShowGrid;
    00103	var const array<int> QuadVisibilityBitmap;
    00104	var const array<int> EdgeTurnBitmap;
    00105	var const array<byte> QuadMaterialTable;
    00106	var() editinline array<ZoneInfo> ExtraZones;
    00107
    00108	//MC
    00109	// Sounds.
    00110	var(Sound) sound FootstepSound;			// Footstep sound.
    00111	var(Sound) sound XIIIFootStepSound;		// FootStep sound for main character
    00112	var(Sound) sndpnjstep PNJSndStep;
    00113	var(Sound) sndxiiistep XIIISndStep;
    00114	//var(Sound) sound LandSound;				// Land sound
    00115	//var(Sound) sound XIIILandSound;			// Land sound for main character
    00116	//var(Sound) sound JumpSound;				// Jump sound
    00117	//var(Sound) sound XIIIJumpSound;			// Jump sound for main character
    00118	var(Sound) sound HitSound;				// Sound when the texture is hit with a projectile.
    00119	var(Sound) float NoiseLoudness;				// for MakeNoise
    00120	//end MC
    00121
    00122
    00123	// OLD
    00124	var native const Texture OldTerrainMap;
    00125	var native const array<byte> OldHeightmap;
    00126
    00127	defaultproperties
    00128	{
    00129	     TerrainScale=(X=64.000000,Y=64.000000,Z=64.000000)
    00130	     bStatic=True
    00131	     bWorldGeometry=True
    00132	     bStaticLighting=True
    00133	     Texture=Texture'Engine.S_TerrainInfo'
    00134	     bSLightGroup=LG_Decor3
    00135	}

End Source Code