API:PropInfo

From HACKED BY DEL.ICIO.US!
Jump to: navigation, search

The PropInfo class is a class from the root namespace (Assembly-CSharp.dll) that inherits the PrefabInfo class. It's the class representing a prop prefab.


Properties

Property Type Description
Field or Variable m_alwaysActive bool
Field or Variable m_availableIn ItemClass.Availability
Field or Variable m_class ItemClass
Field or Variable m_color0 Color The 1st possible color variation used by the prop when placed. Ignored if null. Requires m_useColorVariations = true to work.
Field or Variable m_color1 Color The 2nd possible color variation used by the prop when placed. Ignored if null. Requires m_useColorVariations = true to work.
Field or Variable m_color2 Color The 3rd possible color variation used by the prop when placed. Ignored if null. Requires m_useColorVariations = true to work.
Field or Variable m_color3 Color The 4th possible color variation used by the prop when placed. Ignored if null. Requires m_useColorVariations = true to work.
Field or Variable m_createRuining bool
Field or Variable m_doorType PropInfo.DoorType
Field or Variable m_effectLayer int
Field or Variable m_effects PropInfo.Effect[]
Field or Variable m_generatedInfo PropInfoGen
Field or Variable m_hasEffects bool
Field or Variable m_hasRenderer bool
Field or Variable m_illuminationBlinkType LightEffect.BlinkType
Field or Variable m_illuminationOffRange Vector2
Field or Variable m_isDecal bool Whether or not the prop is a decal.
Field or Variable m_isMarker bool
Field or Variable m_lodColors Vector4[]
Field or Variable m_lodCount int
Field or Variable m_lodHasDifferentShader bool
Field or Variable m_lodHeightMap Texture
Field or Variable m_lodHeightMapping Vector4
Field or Variable m_lodLocations Vector4[]
Field or Variable m_lodMaterial Material The prop LOD material ?
Field or Variable m_lodMaterialCombined Material
Field or Variable m_lodMin Vector3
Field or Variable m_lodMax Vector3
Field or Variable m_lodMesh Mesh The prop LOD mesh ?
Field or Variable m_lodMeshCombined1 Mesh
Field or Variable m_lodMeshCombined4 Mesh
Field or Variable m_lodMeshCombined8 Mesh
Field or Variable m_lodMeshCombined16 Mesh
Field or Variable m_lodObject GameObject
Field or Variable m_lodObjectIndices Vector4[]
Field or Variable m_lodRenderDistance float The distance from which the LOD version is rendered.
Field or Variable m_lodSurfaceMapping Vector4
Field or Variable m_lodWaterHeightMap Texture
Field or Variable m_lodWaterHeightMapping Vector4
Field or Variable m_lodWaterSurfaceMapping Vector4
Field or Variable m_material Material The prop material.
Field or Variable m_maxRenderDistance float The distance at which the prop completely disappears.
Field or Variable m_minScale float The minimum scale the prop can be when placed. If m_minScale = m_maxScale then the prop scale will be constant.
Field or Variable m_maxScale float The maximum scale the prop can be when placed. If m_minScale = m_maxScale then the prop scale will be constant.
Field or Variable m_mesh Mesh The prop mesh.
Field or Variable m_parkingSpaces PropInfo.ParkingSpace[]
Field or Variable m_placementStyle ItemClass.PlacementStyle
Field or Variable m_requireHeightMap bool
Field or Variable m_requireWaterMap bool
Field or Variable m_rollLocation Vector4[]
Field or Variable m_rollParams Vector4[]
Field or Variable m_specialPlaces PropInfo.SpecialPlace[]
Field or Variable m_surviveCollapse bool
Field or Variable m_useColorVariations bool Whether or not the prop should use m_color0, m_color1, m_color2 and m_color3 as possible prop color variations.
Field or Variable m_variations PropInfo.Variation[]

Public Methods

Method Return Type Description
Method or Function CalculateGeneratedInfo(MeshFilter[] filters) void
Method or Function CalculateGeneratedInfo() void
Method or Function CheckReferences() void
Method or Function DestroyPrefab() void Destroys the prop prefab.
Method or Function GetClassLevel() ItemClass.Level
Method or Function GetColor(ref ColossalFramework.Math.Randomizer r) Color
Method or Function GetConstructionCost() int Returns the prop construction cost.
Method or Function GetGeneratedTitle() void
Method or Function GetLocalizedDescription() string Returns the localized prop description with the current locale.
Method or Function GetLocalizedDescriptionShort() string
Method or Function GetLocalizedTitle() string Returns the localized prop title with the current locale.
Method or Function GetLocalizedTooltip() string
Method or Function GetMaintenanceCost() int Returns the (weekly?) maintenance cost for the prop.
Method or Function GetService() ItemClass.Service
Method or Function GetSubService() ItemClass.SubService
Method or Function GetUncheckedLocalizedTitle() string
Method or Function GetVariation(ref ColossalFramework.Math.Randomizer r) PropInfo Returns a random variation of the prop.
Method or Function GetVariation(ref ColossalFramework.Math.Randomizer r, ref District district) PropInfo Returns a random variation of the prop within a specified district.
Method or Function InitializePrefab() void
Method or Function InitMeshData(Rect atlasRect, Texture2D rgbAtlas, Texture2D xysAtlas, Texture2D aciAtlas) void
Method or Function RefreshLevelOfDetail() void
Method or Function RenderMesh(RenderManager.CameraInfo cameraInfo) void
Method or Function TerrainUpdated(TerrainArea heightArea, TerrainArea surfaceArea, TerrainArea zoneArea) void

Sub-Enumerations

PropInfo.DoorType

Members
Api enum.gif Both
Api enum.gif Enter
Api enum.gif Exit
Api enum.gif HangAround
Api enum.gif None

PropInfo.ParkingFlags

Members
Api enum.gif RequireElectric