C# Class PersistentTrails.CraftLoader

显示文件 Open project: GrJo/KSPPersistentTrails Class Usage Examples

Public Methods

Method 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

Method Description
serialize ( ) : string

Method Details

assembleCraft() public static method

public static assembleCraft ( string craftName, bool collidersOn ) : GameObject
craftName string
collidersOn bool
return UnityEngine.GameObject

findPartModel() public static method

public static findPartModel ( string partName ) : GameObject
partName string
return UnityEngine.GameObject

getParts() public static method

public static getParts ( Vessel vessel, bool fetchModel ) : List
vessel Vessel
fetchModel bool
return List

getPhysicMaterial() public static method

public static getPhysicMaterial ( ) : PhysicMaterial
return UnityEngine.PhysicMaterial

loadCraftFromFile() public static method

public static loadCraftFromFile ( string fileName ) : List
fileName string
return List

saveCraftToFile() public static method

public static saveCraftToFile ( ) : void
return void

setColliderStateInChildren() public static method

public static setColliderStateInChildren ( GameObject rootObject, bool newValue ) : void
rootObject UnityEngine.GameObject
newValue bool
return void

setLightStateInChildren() public static method

public static setLightStateInChildren ( GameObject rootObject, bool newValue ) : void
rootObject UnityEngine.GameObject
newValue bool
return void