C# Class AutoAsparagus.ASPFuelLine

Inheritance: UnityEngine.MonoBehaviour
Show file Open project: henrybauer/AutoAsparagus

Public Methods

Method Description
AddAsparagusFuelLines ( AvailablePart ap, int textureNum, string texturePath, string textureDisplayName, bool rainbow ) : void
AddOnionFuelLines ( AvailablePart ap, int textureNum, string texturePath, string textureDisplayName, bool rainbow ) : void
AttachFuelLine ( Part sourceTank, Part destTank, AvailablePart ap, int textureNum, string texturePath, string textureDisplayName ) : bool
DeleteAllFuelLines ( string partName ) : int
connectFuelLines ( ) : void
countDecouplersToRoot ( Part p ) : int
findCentralTank ( Part p ) : Part
findRootPart ( Part p ) : Part
getFuelLineTargets ( Part p, string partName ) : List

Private Methods

Method Description
chooseNextTankToConnect ( List tanksToConnect, Part rootPart, string partName ) : Part
distanceBetweenParts ( Part a, Part b ) : float
findParentFuelTank ( Part p ) : Part
findStartofChain ( List tanksToConnect, Part rootPart, string partName ) : Part
fireRayAt ( Part p, Vector3 origin, Vector3 dest, Vector3 &collisionpoint ) : bool
getStartDestPositions ( Part sourceTank, Part destTank, Vector3 midway, Vector3 &startPosition, Vector3 &destPosition ) : void
hasFuelLine ( Part p, string partName ) : bool
isFLpathObstructed ( Part sourceTank, Part destTank, Vector3 midway ) : System.Boolean
isFuelLine ( Part p, string partName ) : System.Boolean
isTargetofFuelLine ( Part target, string partName ) : bool
makeFuelLineChain ( List tanksToConnect, Part startTank, AvailablePart ap, int textureNum, string texturePath, string textureDisplayName, int numberOfTanks ) : Part
nearestNeighborWithoutFuelLine ( Part tank, string partName, List brothers ) : Part
vector3direction ( Vector3 from, Vector3 to ) : Vector3

Method Details

AddAsparagusFuelLines() public static method

public static AddAsparagusFuelLines ( AvailablePart ap, int textureNum, string texturePath, string textureDisplayName, bool rainbow ) : void
ap AvailablePart
textureNum int
texturePath string
textureDisplayName string
rainbow bool
return void

AddOnionFuelLines() public static method

public static AddOnionFuelLines ( AvailablePart ap, int textureNum, string texturePath, string textureDisplayName, bool rainbow ) : void
ap AvailablePart
textureNum int
texturePath string
textureDisplayName string
rainbow bool
return void

AttachFuelLine() public static method

public static AttachFuelLine ( Part sourceTank, Part destTank, AvailablePart ap, int textureNum, string texturePath, string textureDisplayName ) : bool
sourceTank Part
destTank Part
ap AvailablePart
textureNum int
texturePath string
textureDisplayName string
return bool

DeleteAllFuelLines() public static method

public static DeleteAllFuelLines ( string partName ) : int
partName string
return int

connectFuelLines() public static method

public static connectFuelLines ( ) : void
return void

countDecouplersToRoot() public static method

public static countDecouplersToRoot ( Part p ) : int
p Part
return int

findCentralTank() public static method

public static findCentralTank ( Part p ) : Part
p Part
return Part

findRootPart() public static method

public static findRootPart ( Part p ) : Part
p Part
return Part

getFuelLineTargets() public static method

public static getFuelLineTargets ( Part p, string partName ) : List
p Part
partName string
return List