C# Class MobileMineralSonar.Building_MobileMineralSonar

Inheritance: Building
Show file Open project: Rikiki123456789/Rimworld Class Usage Examples

Public Properties

Property Type Description
detectedDefList List
detectionChance float
maxScanRange int
powerComp CompPowerTrader
satelliteDish UnityEngine.Material
satelliteDishMatrix UnityEngine.Matrix4x4
satelliteDishRotation float
satelliteDishScale Vector3
scanProgress int
scanRange int
scanRange10 UnityEngine.Material
scanRange20 UnityEngine.Material
scanRange30 UnityEngine.Material
scanRange40 UnityEngine.Material
scanRange50 UnityEngine.Material
scanRangeDynamic UnityEngine.Material
scanRangeDynamicMatrix UnityEngine.Matrix4x4
scanRangeDynamicScale Vector3
scanRangeMatrix10 UnityEngine.Matrix4x4
scanRangeMatrix20 UnityEngine.Matrix4x4
scanRangeMatrix30 UnityEngine.Matrix4x4
scanRangeMatrix40 UnityEngine.Matrix4x4
scanRangeMatrix50 UnityEngine.Matrix4x4
scanRangeScale10 Vector3
scanRangeScale20 Vector3
scanRangeScale30 Vector3
scanRangeScale40 Vector3
scanRangeScale50 Vector3
scanRayDynamic UnityEngine.Material
scanRayDynamicMatrix UnityEngine.Matrix4x4
scanRayDynamicScale Vector3
scanSpot UnityEngine.Material
scanSpotMatrix UnityEngine.Matrix4x4
scanSpotScale Vector3

Public Methods

Method Description
Destroy ( DestroyMode mode = DestroyMode.Vanish ) : void

Destroy the mobile mineral sonar and reset its state when deconstructed.

Draw ( ) : void
DrawDynamicScanRangeAndScanRay ( ) : void

Draw the dynamic scan range and scan ray.

DrawMaxScanRange ( ) : void

Draw the max scan range.

DrawSatelliteDish ( ) : void

Draw the satellite dish.

DrawScanSpotOnThingsWithinScanRange ( ThingDef thingDefParameter ) : void

Draw the scan spots on things of def thingDefParameter within scan range.

ExposeData ( ) : void

Save and load mobile mineral sonar internal state variables (stored in savegame data).

GetInspectString ( ) : string

Build the string giving some basic information that is shown when the mobile mineral sonar is selected.

PerformScanUpdate ( ) : void

Perform the scan update and update the satellite dish rotation.

SpawnSetup ( ) : void

Initialize instance variables.

Tick ( ) : void

Main function: - update the scan range, - draw the satellite dish, - draw the scan range only when the mobile mineral sonar is selected.

TryUpdateScanParameters ( ) : void
UnfogSomeRandomThingAtScanRange ( ThingDef thingDefParameter ) : void

Unfog some of the things of type thingDefParameter at scanRange.

Method Details

Destroy() public method

Destroy the mobile mineral sonar and reset its state when deconstructed.
public Destroy ( DestroyMode mode = DestroyMode.Vanish ) : void
mode DestroyMode
return void

Draw() public method

public Draw ( ) : void
return void

DrawDynamicScanRangeAndScanRay() public method

Draw the dynamic scan range and scan ray.
public DrawDynamicScanRangeAndScanRay ( ) : void
return void

DrawMaxScanRange() public method

Draw the max scan range.
public DrawMaxScanRange ( ) : void
return void

DrawSatelliteDish() public method

Draw the satellite dish.
public DrawSatelliteDish ( ) : void
return void

DrawScanSpotOnThingsWithinScanRange() public method

Draw the scan spots on things of def thingDefParameter within scan range.
public DrawScanSpotOnThingsWithinScanRange ( ThingDef thingDefParameter ) : void
thingDefParameter ThingDef
return void

ExposeData() public method

Save and load mobile mineral sonar internal state variables (stored in savegame data).
public ExposeData ( ) : void
return void

GetInspectString() public method

Build the string giving some basic information that is shown when the mobile mineral sonar is selected.
public GetInspectString ( ) : string
return string

PerformScanUpdate() public method

Perform the scan update and update the satellite dish rotation.
public PerformScanUpdate ( ) : void
return void

SpawnSetup() public method

Initialize instance variables.
public SpawnSetup ( ) : void
return void

Tick() public method

Main function: - update the scan range, - draw the satellite dish, - draw the scan range only when the mobile mineral sonar is selected.
public Tick ( ) : void
return void

TryUpdateScanParameters() public static method

public static TryUpdateScanParameters ( ) : void
return void

UnfogSomeRandomThingAtScanRange() public method

Unfog some of the things of type thingDefParameter at scanRange.
public UnfogSomeRandomThingAtScanRange ( ThingDef thingDefParameter ) : void
thingDefParameter ThingDef
return void

Property Details

detectedDefList public property

public List detectedDefList
return List

detectionChance public static property

public static float detectionChance
return float

maxScanRange public static property

public static int maxScanRange
return int

powerComp public property

public CompPowerTrader powerComp
return CompPowerTrader

satelliteDish public static property

public static Material,UnityEngine satelliteDish
return UnityEngine.Material

satelliteDishMatrix public property

public Matrix4x4,UnityEngine satelliteDishMatrix
return UnityEngine.Matrix4x4

satelliteDishRotation public property

public float satelliteDishRotation
return float

satelliteDishScale public property

public Vector3 satelliteDishScale
return Vector3

scanProgress public property

public int scanProgress
return int

scanRange public property

public int scanRange
return int

scanRange10 public static property

public static Material,UnityEngine scanRange10
return UnityEngine.Material

scanRange20 public static property

public static Material,UnityEngine scanRange20
return UnityEngine.Material

scanRange30 public static property

public static Material,UnityEngine scanRange30
return UnityEngine.Material

scanRange40 public static property

public static Material,UnityEngine scanRange40
return UnityEngine.Material

scanRange50 public static property

public static Material,UnityEngine scanRange50
return UnityEngine.Material

scanRangeDynamic public property

public Material,UnityEngine scanRangeDynamic
return UnityEngine.Material

scanRangeDynamicMatrix public property

public Matrix4x4,UnityEngine scanRangeDynamicMatrix
return UnityEngine.Matrix4x4

scanRangeDynamicScale public property

public Vector3 scanRangeDynamicScale
return Vector3

scanRangeMatrix10 public property

public Matrix4x4,UnityEngine scanRangeMatrix10
return UnityEngine.Matrix4x4

scanRangeMatrix20 public property

public Matrix4x4,UnityEngine scanRangeMatrix20
return UnityEngine.Matrix4x4

scanRangeMatrix30 public property

public Matrix4x4,UnityEngine scanRangeMatrix30
return UnityEngine.Matrix4x4

scanRangeMatrix40 public property

public Matrix4x4,UnityEngine scanRangeMatrix40
return UnityEngine.Matrix4x4

scanRangeMatrix50 public property

public Matrix4x4,UnityEngine scanRangeMatrix50
return UnityEngine.Matrix4x4

scanRangeScale10 public property

public Vector3 scanRangeScale10
return Vector3

scanRangeScale20 public property

public Vector3 scanRangeScale20
return Vector3

scanRangeScale30 public property

public Vector3 scanRangeScale30
return Vector3

scanRangeScale40 public property

public Vector3 scanRangeScale40
return Vector3

scanRangeScale50 public property

public Vector3 scanRangeScale50
return Vector3

scanRayDynamic public static property

public static Material,UnityEngine scanRayDynamic
return UnityEngine.Material

scanRayDynamicMatrix public property

public Matrix4x4,UnityEngine scanRayDynamicMatrix
return UnityEngine.Matrix4x4

scanRayDynamicScale public property

public Vector3 scanRayDynamicScale
return Vector3

scanSpot public static property

public static Material,UnityEngine scanSpot
return UnityEngine.Material

scanSpotMatrix public property

public Matrix4x4,UnityEngine scanSpotMatrix
return UnityEngine.Matrix4x4

scanSpotScale public property

public Vector3 scanSpotScale
return Vector3