Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
PQSCity2 Class Reference
Inheritance diagram for PQSCity2:
PQSSurfaceObject PQSMod

Classes

class  LodObject
 

Public Member Functions

override void OnPostSetup ()
 
override void OnSetup ()
 
override void OnSphereActive ()
 
override void OnSphereInactive ()
 
override void OnSphereReset ()
 
override bool OnSphereStart ()
 
override void OnUpdateFinished ()
 
virtual void Orientate ()
 
- Public Member Functions inherited from PQSMod
virtual double GetVertexMaxHeight ()
 
virtual double GetVertexMinHeight ()
 
virtual void OnMeshBuild ()
 
virtual void OnPreUpdate ()
 
virtual void OnQuadBuilt (PQ quad)
 
virtual void OnQuadCreate (PQ quad)
 
virtual void OnQuadDestroy (PQ quad)
 
virtual void OnQuadPreBuild (PQ quad)
 
virtual void OnQuadUpdate (PQ quad)
 
virtual void OnQuadUpdateNormals (PQ quad)
 
virtual void OnSphereStarted ()
 
virtual void OnSphereTransformUpdate ()
 
virtual void OnVertexBuild (PQS.VertexBuildData data)
 
virtual void OnVertexBuildHeight (PQS.VertexBuildData data)
 
void RebuildSphere ()
 

Public Attributes

double alt
 
bool baseRotFacesNorthPole = false
 This option will make it so the PQSCity gameobject its always facing the pole and then rotated by the specified value in Z (Used for launchsites) More...
 
CrashObjectName crashObjectName
 The component used to detect a vessel landing or crashing a launchsite and getting its name. More...
 
string displayobjectName = string.Empty
 The localized object name - should be a localization tag. More...
 
float individualPOIRange = 100
 This POIs individual range More...
 
double lat
 
LaunchSite launchSite
 Contains reference to LaunchSite if this PQSCity2 is part of a LaunchSite. More...
 
double lon
 
string objectName = string.Empty
 The object name - should always be in English. More...
 
LodObject[] objects
 
bool OrientateOnPostSetup = true
 Set to false the PQSCity2 will not Orientate on Start() More...
 
bool OrientateOnStart = true
 Set to false the PQSCity2 will not Orientate on Start() More...
 
Transform PositioningPoint
 Set this to the transform to use for positioning the City. If not set the PQSCity2 Transform will be used. More...
 
bool raycastSurface = false
 True if a raycast - precise snap to the surface of the planet is required. More...
 
double rotation = 0d
 
bool setOnWaterSurface = false
 Set to true will place the PQSCity2 on the surface of any water it is situated in. Otherwise will place it on the surface on the land (even if under water). More...
 
double snapHeightOffset = 0d
 Offset of model when placing on the ground. Only used if snapToSurface is true. More...
 
bool snapToSurface = false
 True if object is to be snapped to the surface of the planet. More...
 
PSystemSetup.SpaceCenterFacility spaceCenterFacility
 Contains reference to SpaceCenterFacility if this PQSCity2 is part of a SpaceCenterFacility. More...
 
Vector3 up = Vector3.up
 
- Public Attributes inherited from PQSMod
bool modEnabled = true
 
int order = 100
 
PQS.ModiferRequirements requirements
 
PQS sphere
 

Protected Member Functions

virtual void OnDestroy ()
 
virtual void OnScenerySettingChanged ()
 
virtual void SetInactive ()
 
virtual void Start ()
 

Protected Attributes

Vector3d planetRelativePosition = Vector3d.zero
 

Properties

CelestialBody celestialBody [get]
 The Celestial Body this PQSCity2 is located on. More...
 
override string DisplaySurfaceObjectName [get]
 Localized name for this object. More...
 
bool InPOIRange [get]
 Whether the PQSCity2 is less than the POIRange from teh active vessel More...
 
bool InVisibleRange [get]
 Will be true or false depending on whether any of the PQSCity2 is in visible range or not. More...
 
bool IsActive [get]
 Will be True if any of the objects in the PQSCity2 are active. Otherwise will be false. More...
 
override Vector3d PlanetRelativePosition [get]
 
double POIRange [get]
 The POIRange from teh active vessel More...
 
bool PositioningCompleted [get]
 
override string SurfaceObjectName [get]
 
- Properties inherited from PQSSurfaceObject
virtual string DisplaySurfaceObjectName [get]
 
virtual Vector3d PlanetRelativePosition [get]
 
virtual string SurfaceObjectName [get]
 

Member Function Documentation

virtual void PQSCity2.OnDestroy ( )
inlineprotectedvirtual
override void PQSCity2.OnPostSetup ( )
inlinevirtual

Reimplemented from PQSMod.

virtual void PQSCity2.OnScenerySettingChanged ( )
inlineprotectedvirtual
override void PQSCity2.OnSetup ( )
inlinevirtual

Reimplemented from PQSMod.

override void PQSCity2.OnSphereActive ( )
inlinevirtual

Reimplemented from PQSMod.

override void PQSCity2.OnSphereInactive ( )
inlinevirtual

Reimplemented from PQSMod.

override void PQSCity2.OnSphereReset ( )
inlinevirtual

Reimplemented from PQSMod.

override bool PQSCity2.OnSphereStart ( )
inlinevirtual

Reimplemented from PQSMod.

override void PQSCity2.OnUpdateFinished ( )
inlinevirtual

Reimplemented from PQSMod.

virtual void PQSCity2.Orientate ( )
inlinevirtual

< add the optional offset

< create pos from normalized pos

virtual void PQSCity2.SetInactive ( )
inlineprotectedvirtual
virtual void PQSCity2.Start ( )
inlineprotectedvirtual

Member Data Documentation

double PQSCity2.alt
bool PQSCity2.baseRotFacesNorthPole = false

This option will make it so the PQSCity gameobject its always facing the pole and then rotated by the specified value in Z (Used for launchsites)

CrashObjectName PQSCity2.crashObjectName

The component used to detect a vessel landing or crashing a launchsite and getting its name.

string PQSCity2.displayobjectName = string.Empty

The localized object name - should be a localization tag.

float PQSCity2.individualPOIRange = 100

This POIs individual range

double PQSCity2.lat
LaunchSite PQSCity2.launchSite

Contains reference to LaunchSite if this PQSCity2 is part of a LaunchSite.

double PQSCity2.lon
string PQSCity2.objectName = string.Empty

The object name - should always be in English.

LodObject [] PQSCity2.objects
bool PQSCity2.OrientateOnPostSetup = true

Set to false the PQSCity2 will not Orientate on Start()

bool PQSCity2.OrientateOnStart = true

Set to false the PQSCity2 will not Orientate on Start()

Vector3d PQSCity2.planetRelativePosition = Vector3d.zero
protected
Transform PQSCity2.PositioningPoint

Set this to the transform to use for positioning the City. If not set the PQSCity2 Transform will be used.

bool PQSCity2.raycastSurface = false

True if a raycast - precise snap to the surface of the planet is required.

double PQSCity2.rotation = 0d
bool PQSCity2.setOnWaterSurface = false

Set to true will place the PQSCity2 on the surface of any water it is situated in. Otherwise will place it on the surface on the land (even if under water).

double PQSCity2.snapHeightOffset = 0d

Offset of model when placing on the ground. Only used if snapToSurface is true.

bool PQSCity2.snapToSurface = false

True if object is to be snapped to the surface of the planet.

PSystemSetup.SpaceCenterFacility PQSCity2.spaceCenterFacility

Contains reference to SpaceCenterFacility if this PQSCity2 is part of a SpaceCenterFacility.

Vector3 PQSCity2.up = Vector3.up

Property Documentation

CelestialBody PQSCity2.celestialBody
get

The Celestial Body this PQSCity2 is located on.

override string PQSCity2.DisplaySurfaceObjectName
get

Localized name for this object.

bool PQSCity2.InPOIRange
get

Whether the PQSCity2 is less than the POIRange from teh active vessel

bool PQSCity2.InVisibleRange
get

Will be true or false depending on whether any of the PQSCity2 is in visible range or not.

bool PQSCity2.IsActive
get

Will be True if any of the objects in the PQSCity2 are active. Otherwise will be false.

override Vector3d PQSCity2.PlanetRelativePosition
get
double PQSCity2.POIRange
get

The POIRange from teh active vessel

bool PQSCity2.PositioningCompleted
get
override string PQSCity2.SurfaceObjectName
get

The documentation for this class was generated from the following file: