C# Class KronalUtils.KRSVesselShot

Show file Open project: bigorangemachine/ksp-kronalutils Class Usage Examples

Public Properties

Property Type Description
Effects ShaderMaterial>.IDictionary
MaterialBluePrint ShaderMaterial
MaterialColorAdjust ShaderMaterial
MaterialEdgeDetect ShaderMaterial
MaterialFXAA ShaderMaterial
calculatedHeight int
calculatedWidth int
editorOrientation string
uiBoolVals bool>.Dictionary
uiFloatVals float>.Dictionary

Private Properties

Property Type Description
CalcShipBounds UnityEngine.Bounds
LoadShaders void
MakeValidFileName string
PartModified void
ReplacePartShaders void
RestorePartShaders void
SaveTexture void
SetupCameras void
Texture UnityEngine.Texture
UpdateShipBounds void

Public Methods

Method Description
Execute ( ) : void
Explode ( ) : void
GenTexture ( Vector3 direction, int imageWidth = -1, int imageHeight = -1 ) : void
GetShipSize ( ) : Vector3
KRSVesselShot ( ) : System
RotateShip ( float degrees ) : void
Update ( int width = -1, int height = -1 ) : void
setFacility ( ) : void

Private Methods

Method Description
CalcShipBounds ( ) : Bounds
LoadShaders ( ) : void
MakeValidFileName ( string name ) : string
PartModified ( Part>.GameEvents data ) : void
ReplacePartShaders ( Part part ) : void
RestorePartShaders ( Part part ) : void
SaveTexture ( String fileName ) : void
SetupCameras ( ) : void
Texture ( ) : Texture
UpdateShipBounds ( ) : void

Method Details

Execute() public method

public Execute ( ) : void
return void

Explode() public method

public Explode ( ) : void
return void

GenTexture() public method

public GenTexture ( Vector3 direction, int imageWidth = -1, int imageHeight = -1 ) : void
direction Vector3
imageWidth int
imageHeight int
return void

GetShipSize() public method

public GetShipSize ( ) : Vector3
return Vector3

KRSVesselShot() public method

public KRSVesselShot ( ) : System
return System

RotateShip() public method

public RotateShip ( float degrees ) : void
degrees float
return void

Update() public method

public Update ( int width = -1, int height = -1 ) : void
width int
height int
return void

setFacility() public method

public setFacility ( ) : void
return void

Property Details

Effects public property

public IDictionary Effects
return ShaderMaterial>.IDictionary

MaterialBluePrint public property

public ShaderMaterial,KronalUtils MaterialBluePrint
return ShaderMaterial

MaterialColorAdjust public property

public ShaderMaterial,KronalUtils MaterialColorAdjust
return ShaderMaterial

MaterialEdgeDetect public property

public ShaderMaterial,KronalUtils MaterialEdgeDetect
return ShaderMaterial

MaterialFXAA public property

public ShaderMaterial,KronalUtils MaterialFXAA
return ShaderMaterial

calculatedHeight public property

public int calculatedHeight
return int

calculatedWidth public property

public int calculatedWidth
return int

editorOrientation public property

public string editorOrientation
return string

uiBoolVals public property

public Dictionary uiBoolVals
return bool>.Dictionary

uiFloatVals public property

public Dictionary uiFloatVals
return float>.Dictionary