C# Class FishIndustry.Building_AquacultureBasin

Inheritance: Building_WorkTable
Afficher le fichier Open project: Rikiki123456789/Rimworld Class Usage Examples

Méthodes publiques

Свойство Type Description
bluebladeTexture UnityEngine.Material
breedingDuratinInTicks int
breedingIsFinished bool
breedingProgressInTicks int
breedingSpeciesDef ThingDef
breedingSpeciesMatrix UnityEngine.Matrix4x4
breedingSpeciesScale Vector3
breedingSpeciesTexture UnityEngine.Material
fishesHealthInPercent int
foodIsAvailable bool
mashgonTexture UnityEngine.Material
microFungusFadingFactor float
microFungusMatrix UnityEngine.Matrix4x4
microFungusRemainingDurationInTicks int
microFungusScale Vector3
microFungusTexture UnityEngine.Material
nextBubbleThrowTick int
nextFeedingDateInTicks int
powerComp CompPowerTrader
tailTeethTexture UnityEngine.Material
temperature float
waterQuality float

Méthodes publiques

Méthode Description
ComputeDrawingParameters ( ) : void

Throw bubbles according to the current water quality.

Draw ( ) : void

Draw an icon of the currently breeding species and the micro fungus infestation when active.

ExposeData ( ) : void

Save and load variables (stored in savegame data).

GetFoodFromAquacultureHopper ( ) : bool

Check if there is enough food in one of the adjacent aquaculture hoppers and consume it if available.

GetInspectString ( ) : string

Get the string displayed in the inspection panel.

GetProduction ( ) : Thing

Gather the aquaculture basin production and restart a new breeding cycle of the same species.

IsAcceptableFeedstock ( ThingDef def ) : bool
IsEnoughFoodInHopper ( ) : bool

Check if there is enough food in the adjacent aquaculture hoppers.

KillBredSpecies ( ) : void

The bred species is killed.

ResetBillsIfNecessary ( ) : void

Reset the aquaculture bills if the user has messed with it (cancelled a bill for example). We need to set custom Bill_Production_AquacultureBasin to call the StartNewBreedCycle function upon bill completion.

SpawnSetup ( ) : void

Initialize instance variables.

StartMicroFungusInfestation ( int infestationDuration ) : void

Start a micro fungus infestation.

StartNewBreedCycle ( ThingDef breedingSpeciesDef ) : void

Start a new breeding cycle of the given species.

ThrowBubble ( IntVec3 cell ) : Mote

Throw a bubble.

Tick ( ) : void

Breed some fishes: - update the remaining microfungus infestation duration. - try to get some food from an adjacent aquaculture hopper. - update the water quality. - update the bred fishes health. - reset the bills if necessary. - compute the drawing parameters (bubbles generation).

TryFeedFishes ( ) : void

Try to feed the fishes.

UpdateFishesHealth ( ) : void

Update the fishes heatlh. Health decreases when: - water quality is too bad. - there is no food available.

UpdateWaterQuality ( ) : void

Update the water quality: - water quality decrease when aquaculture basin is unpowered or temperature is not in optimal range. - water quality recovers when aquaculture basin is powered.

Method Details

ComputeDrawingParameters() public méthode

Throw bubbles according to the current water quality.
public ComputeDrawingParameters ( ) : void
Résultat void

Draw() public méthode

Draw an icon of the currently breeding species and the micro fungus infestation when active.
public Draw ( ) : void
Résultat void

ExposeData() public méthode

Save and load variables (stored in savegame data).
public ExposeData ( ) : void
Résultat void

GetFoodFromAquacultureHopper() public méthode

Check if there is enough food in one of the adjacent aquaculture hoppers and consume it if available.
public GetFoodFromAquacultureHopper ( ) : bool
Résultat bool

GetInspectString() public méthode

Get the string displayed in the inspection panel.
public GetInspectString ( ) : string
Résultat string

GetProduction() public méthode

Gather the aquaculture basin production and restart a new breeding cycle of the same species.
public GetProduction ( ) : Thing
Résultat Thing

IsAcceptableFeedstock() public static méthode

public static IsAcceptableFeedstock ( ThingDef def ) : bool
def ThingDef
Résultat bool

IsEnoughFoodInHopper() public méthode

Check if there is enough food in the adjacent aquaculture hoppers.
public IsEnoughFoodInHopper ( ) : bool
Résultat bool

KillBredSpecies() public méthode

The bred species is killed.
public KillBredSpecies ( ) : void
Résultat void

ResetBillsIfNecessary() public méthode

Reset the aquaculture bills if the user has messed with it (cancelled a bill for example). We need to set custom Bill_Production_AquacultureBasin to call the StartNewBreedCycle function upon bill completion.
public ResetBillsIfNecessary ( ) : void
Résultat void

SpawnSetup() public méthode

Initialize instance variables.
public SpawnSetup ( ) : void
Résultat void

StartMicroFungusInfestation() public méthode

Start a micro fungus infestation.
public StartMicroFungusInfestation ( int infestationDuration ) : void
infestationDuration int
Résultat void

StartNewBreedCycle() public méthode

Start a new breeding cycle of the given species.
public StartNewBreedCycle ( ThingDef breedingSpeciesDef ) : void
breedingSpeciesDef ThingDef
Résultat void

ThrowBubble() public static méthode

Throw a bubble.
public static ThrowBubble ( IntVec3 cell ) : Mote
cell IntVec3
Résultat Mote

Tick() public méthode

Breed some fishes: - update the remaining microfungus infestation duration. - try to get some food from an adjacent aquaculture hopper. - update the water quality. - update the bred fishes health. - reset the bills if necessary. - compute the drawing parameters (bubbles generation).
public Tick ( ) : void
Résultat void

TryFeedFishes() public méthode

Try to feed the fishes.
public TryFeedFishes ( ) : void
Résultat void

UpdateFishesHealth() public méthode

Update the fishes heatlh. Health decreases when: - water quality is too bad. - there is no food available.
public UpdateFishesHealth ( ) : void
Résultat void

UpdateWaterQuality() public méthode

Update the water quality: - water quality decrease when aquaculture basin is unpowered or temperature is not in optimal range. - water quality recovers when aquaculture basin is powered.
public UpdateWaterQuality ( ) : void
Résultat void

Property Details

bluebladeTexture public_oe static_oe property

public static Material,UnityEngine bluebladeTexture
Résultat UnityEngine.Material

breedingDuratinInTicks public_oe property

public int breedingDuratinInTicks
Résultat int

breedingIsFinished public_oe property

public bool breedingIsFinished
Résultat bool

breedingProgressInTicks public_oe property

public int breedingProgressInTicks
Résultat int

breedingSpeciesDef public_oe property

public ThingDef breedingSpeciesDef
Résultat ThingDef

breedingSpeciesMatrix public_oe property

public Matrix4x4,UnityEngine breedingSpeciesMatrix
Résultat UnityEngine.Matrix4x4

breedingSpeciesScale public_oe property

public Vector3 breedingSpeciesScale
Résultat Vector3

breedingSpeciesTexture public_oe property

public Material,UnityEngine breedingSpeciesTexture
Résultat UnityEngine.Material

fishesHealthInPercent public_oe property

public int fishesHealthInPercent
Résultat int

foodIsAvailable public_oe property

public bool foodIsAvailable
Résultat bool

mashgonTexture public_oe static_oe property

public static Material,UnityEngine mashgonTexture
Résultat UnityEngine.Material

microFungusFadingFactor public_oe property

public float microFungusFadingFactor
Résultat float

microFungusMatrix public_oe property

public Matrix4x4,UnityEngine microFungusMatrix
Résultat UnityEngine.Matrix4x4

microFungusRemainingDurationInTicks public_oe property

public int microFungusRemainingDurationInTicks
Résultat int

microFungusScale public_oe property

public Vector3 microFungusScale
Résultat Vector3

microFungusTexture public_oe static_oe property

public static Material,UnityEngine microFungusTexture
Résultat UnityEngine.Material

nextBubbleThrowTick public_oe property

public int nextBubbleThrowTick
Résultat int

nextFeedingDateInTicks public_oe property

public int nextFeedingDateInTicks
Résultat int

powerComp public_oe property

public CompPowerTrader powerComp
Résultat CompPowerTrader

tailTeethTexture public_oe static_oe property

public static Material,UnityEngine tailTeethTexture
Résultat UnityEngine.Material

temperature public_oe property

public float temperature
Résultat float

waterQuality public_oe property

public float waterQuality
Résultat float