C# Class PersistentTrails.CraftLoader

Afficher le fichier Open project: GrJo/KSPPersistentTrails Class Usage Examples

Méthodes publiques

Méthode Description
assembleCraft ( string craftName, bool collidersOn ) : GameObject
findPartModel ( string partName ) : GameObject
getParts ( Vessel vessel, bool fetchModel ) : List
getPhysicMaterial ( ) : PhysicMaterial
loadCraftFromFile ( string fileName ) : List
saveCraftToFile ( ) : void
setColliderStateInChildren ( GameObject rootObject, bool newValue ) : void
setLightStateInChildren ( GameObject rootObject, bool newValue ) : void

Private Methods

Méthode Description
serialize ( ) : string

Method Details

assembleCraft() public static méthode

public static assembleCraft ( string craftName, bool collidersOn ) : GameObject
craftName string
collidersOn bool
Résultat UnityEngine.GameObject

findPartModel() public static méthode

public static findPartModel ( string partName ) : GameObject
partName string
Résultat UnityEngine.GameObject

getParts() public static méthode

public static getParts ( Vessel vessel, bool fetchModel ) : List
vessel Vessel
fetchModel bool
Résultat List

getPhysicMaterial() public static méthode

public static getPhysicMaterial ( ) : PhysicMaterial
Résultat UnityEngine.PhysicMaterial

loadCraftFromFile() public static méthode

public static loadCraftFromFile ( string fileName ) : List
fileName string
Résultat List

saveCraftToFile() public static méthode

public static saveCraftToFile ( ) : void
Résultat void

setColliderStateInChildren() public static méthode

public static setColliderStateInChildren ( GameObject rootObject, bool newValue ) : void
rootObject UnityEngine.GameObject
newValue bool
Résultat void

setLightStateInChildren() public static méthode

public static setLightStateInChildren ( GameObject rootObject, bool newValue ) : void
rootObject UnityEngine.GameObject
newValue bool
Résultat void