Show / Hide Table of Contents

Class ProductMakeup

Information on the make-up of a Product

Inheritance
System.Object
ProductMakeup
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GDA
Assembly: Assembly-CSharp.dll
Syntax
[Serializable]
public class ProductMakeup

Fields

materialComposition

A list of ResourceUsage defining the resource usage of 1 unit of the product.

Declaration
public List<ResourceUsage> materialComposition
Field Value
Type Description
System.Collections.Generic.List<ResourceUsage>

overrideProductionEnegry

Whether to ovveride the calculated production energy of the product with a predefined value.

Declaration
public bool overrideProductionEnegry
Field Value
Type Description
System.Boolean

productionEnergy

If overrideProductionEnegry false: The energy required to produce 1 unit of the product, not including the energy needed to produce the resources used. If overrideProductionEnegry true: The energy required to produce 1 unit of the product, including the energy needed to produce the resources used.

Declaration
public float productionEnergy
Field Value
Type Description
System.Single

Methods

GetEnergyConsumptionOfProduction()

The total energy needed to produce 1 unit of the product.

Declaration
public float GetEnergyConsumptionOfProduction()
Returns
Type Description
System.Single

GetTotalProductionWastage()

The total waste produced by 1 unit of the product.

Declaration
public float GetTotalProductionWastage()
Returns
Type Description
System.Single

GetTotalResourceConsumption()

The total weight of resources consumed in the production of 1 unit of the product.

Declaration
public float GetTotalResourceConsumption()
Returns
Type Description
System.Single

GetWeight()

The total weight of 1 unit of the product

Declaration
public float GetWeight()
Returns
Type Description
System.Single
In This Article
Back to top Generated by DocFX