C# Class PersistentTrails.Utilities

Exibir arquivo Open project: GrJo/KSPPersistentTrails

Public Properties

Property Type Description
AppPath String
CraftPath String
PlugInDataPath String
PlugInIconPath String
TrackPath String
craftFileFormat int
debug DebugMessages
debugMode bool
trackFileFormat int

Public Methods

Method Description
CelestialBodyFromName ( string searchName ) : CelestialBody
ColorFromHSV ( float h, float s, float v, float a = 1 ) : Color
ColorToHSV ( Color color, float &h, float &s, float &v ) : void
LoadImage ( string filename, int width, int height ) : Texture2D
LoadTexture ( Texture2D &tex, string fileName ) : void
QuaternionToString ( Quaternion inValue ) : string
SetTextureColor ( Texture2D texture, int width, int height, Color color ) : void
Vector3ToString ( Vector3 inValue ) : string
distanceString ( float distanceMeters ) : string
makeColor ( string colorString ) : Color
makeUniqueTrackName ( string name, List &trackList, bool renaming ) : string
parseQuaternion ( string inString ) : Quaternion
parseVector3 ( string inString ) : Vector3

Private Methods

Method Description
nameIsUnique ( string name, List &trackList, bool ignoreFirstOccurrence ) : bool

Method Details

CelestialBodyFromName() public static method

public static CelestialBodyFromName ( string searchName ) : CelestialBody
searchName string
return CelestialBody

ColorFromHSV() public static method

public static ColorFromHSV ( float h, float s, float v, float a = 1 ) : Color
h float
s float
v float
a float
return Color

ColorToHSV() public static method

public static ColorToHSV ( Color color, float &h, float &s, float &v ) : void
color Color
h float
s float
v float
return void

LoadImage() public static method

public static LoadImage ( string filename, int width, int height ) : Texture2D
filename string
width int
height int
return UnityEngine.Texture2D

LoadTexture() public static method

public static LoadTexture ( Texture2D &tex, string fileName ) : void
tex UnityEngine.Texture2D
fileName string
return void

QuaternionToString() public static method

public static QuaternionToString ( Quaternion inValue ) : string
inValue UnityEngine.Quaternion
return string

SetTextureColor() public static method

public static SetTextureColor ( Texture2D texture, int width, int height, Color color ) : void
texture UnityEngine.Texture2D
width int
height int
color Color
return void

Vector3ToString() public static method

public static Vector3ToString ( Vector3 inValue ) : string
inValue Vector3
return string

distanceString() public static method

public static distanceString ( float distanceMeters ) : string
distanceMeters float
return string

makeColor() public static method

public static makeColor ( string colorString ) : Color
colorString string
return Color

makeUniqueTrackName() public static method

public static makeUniqueTrackName ( string name, List &trackList, bool renaming ) : string
name string
trackList List
renaming bool
return string

parseQuaternion() public static method

public static parseQuaternion ( string inString ) : Quaternion
inString string
return UnityEngine.Quaternion

parseVector3() public static method

public static parseVector3 ( string inString ) : Vector3
inString string
return Vector3

Property Details

AppPath public_oe static_oe property

public static String AppPath
return String

CraftPath public_oe static_oe property

public static String CraftPath
return String

PlugInDataPath public_oe static_oe property

public static String PlugInDataPath
return String

PlugInIconPath public_oe static_oe property

public static String PlugInIconPath
return String

TrackPath public_oe static_oe property

public static String TrackPath
return String

craftFileFormat public_oe static_oe property

public static int craftFileFormat
return int

debug public_oe static_oe property

public static DebugMessages,PersistentTrails debug
return DebugMessages

debugMode public_oe static_oe property

public static bool debugMode
return bool

trackFileFormat public_oe static_oe property

public static int trackFileFormat
return int