C# Class FluffyManager.Utilities_Production

Show file Open project: FluffierThanThou/RW_Manager

Public Methods

Method Description
Copy ( this bill ) : Bill_Production

Creates a shallow and barebone copy of a Bill_Production, or Bill_ProductionWithUft cast to Bill_Production if the input is an Uft Bill.

CountPerWorker ( this job, int workerIndex ) : int

Amount per worker to satsify the bill.

CurrentRecipeUsers ( this rd, Map map ) : List

Get all currently build buildings that use the recipe

GetRecipeUsers ( this rd, bool includeNonBuilding = false ) : List

Get the thingdefs for everything that can potentially be a billgiver for rd.

HasBuildingRecipeUser ( this rd, Map map, bool built = false ) : bool

Does the recipe have a building billgiver, and is it built?

Method Details

Copy() public static method

Creates a shallow and barebone copy of a Bill_Production, or Bill_ProductionWithUft cast to Bill_Production if the input is an Uft Bill.
public static Copy ( this bill ) : Bill_Production
bill this
return Bill_Production

CountPerWorker() public static method

Amount per worker to satsify the bill.
public static CountPerWorker ( this job, int workerIndex ) : int
job this
workerIndex int
return int

CurrentRecipeUsers() public static method

Get all currently build buildings that use the recipe
public static CurrentRecipeUsers ( this rd, Map map ) : List
rd this
map Map
return List

GetRecipeUsers() public static method

Get the thingdefs for everything that can potentially be a billgiver for rd.
public static GetRecipeUsers ( this rd, bool includeNonBuilding = false ) : List
rd this
includeNonBuilding bool
return List

HasBuildingRecipeUser() public static method

Does the recipe have a building billgiver, and is it built?
public static HasBuildingRecipeUser ( this rd, Map map, bool built = false ) : bool
rd this
map Map
built bool
return bool