Show / Hide Table of Contents

Class Product

Scriptable object representing an in-game product.

Inheritance
System.Object
UnityEngine.Object
UnityEngine.ScriptableObject
Product
Mask
Inherited Members
UnityEngine.ScriptableObject.SetDirty()
UnityEngine.ScriptableObject.CreateInstance(System.String)
UnityEngine.ScriptableObject.CreateInstance(System.Type)
UnityEngine.ScriptableObject.CreateInstance<T>()
UnityEngine.Object.GetInstanceID()
UnityEngine.Object.GetHashCode()
UnityEngine.Object.Equals(System.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Instantiate<T>(T)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Destroy(UnityEngine.Object, System.Single)
UnityEngine.Object.Destroy(UnityEngine.Object)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object, System.Boolean)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object)
UnityEngine.Object.FindObjectsOfType(System.Type)
UnityEngine.Object.FindObjectsOfType(System.Type, System.Boolean)
UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object)
UnityEngine.Object.DestroyObject(UnityEngine.Object, System.Single)
UnityEngine.Object.DestroyObject(UnityEngine.Object)
UnityEngine.Object.FindSceneObjectsOfType(System.Type)
UnityEngine.Object.FindObjectsOfTypeIncludingAssets(System.Type)
UnityEngine.Object.FindObjectsOfType<T>()
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>()
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsOfTypeAll(System.Type)
UnityEngine.Object.FindObjectOfType(System.Type)
UnityEngine.Object.FindObjectOfType(System.Type, System.Boolean)
UnityEngine.Object.ToString()
UnityEngine.Object.name
UnityEngine.Object.hideFlags
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: GDA
Assembly: Assembly-CSharp.dll
Syntax
[Serializable]
public abstract class Product : ScriptableObject

Fields

_productProperties

A list of all the miscellaneous properties of a product. Editable from the inspector.

Declaration
[SerializeField]
[JsonProperty]
protected List<Detail> _productProperties
Field Value
Type Description
System.Collections.Generic.List<Detail>

disposalMethod

Declaration
public DisposalMethod disposalMethod
Field Value
Type Description
DisposalMethod

disposalWaste

Declaration
protected Detail disposalWaste
Field Value
Type Description
Detail

productMakeup

The material makeup of the product.

Declaration
public ProductMakeup productMakeup
Field Value
Type Description
ProductMakeup

ProductType

The type of the product or the product family.

Declaration
public string ProductType
Field Value
Type Description
System.String

sprite

Declaration
public Sprite sprite
Field Value
Type Description
UnityEngine.Sprite

useEfficacy

Declaration
protected Detail useEfficacy
Field Value
Type Description
Detail

useLifespan

Declaration
protected Detail useLifespan
Field Value
Type Description
Detail

Properties

DisposalWaste

Declaration
[JsonIgnore]
public virtual Detail DisposalWaste { get; set; }
Property Value
Type Description
Detail

productProperties

Declaration
[JsonIgnore]
public ReadOnlyCollection<Detail> productProperties { get; }
Property Value
Type Description
System.Collections.ObjectModel.ReadOnlyCollection<Detail>

UseEfficacy

Declaration
[JsonIgnore]
public virtual Detail UseEfficacy { get; set; }
Property Value
Type Description
Detail

UseLifespan

Declaration
[JsonIgnore]
public virtual Detail UseLifespan { get; set; }
Property Value
Type Description
Detail

Methods

GetDetail(String)

Retrieves a property of the product from productProperties by its DisplayName.

Declaration
public Detail GetDetail(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
Detail

SetProductProperties(List<Detail>)

Sets the _productProperties to the given list.

Declaration
public void SetProductProperties(List<Detail> details)
Parameters
Type Name Description
System.Collections.Generic.List<Detail> details
In This Article
Back to top Generated by DocFX